Hd |
This class will trigger BaseEvent, AttributeChange, CecChange, WindowLayoutChange, OverlayPropertiesChange, DeviceInformationChange, StreamChange and OutputStreamChange events.
public sealed class HdWp4k401C : GenericDevice, IComPorts
The HdWp4k401C type exposes the following members.
| Name | Description | |
|---|---|---|
| HdWp4k401C | Constructor for HdWp4k401C that uses Ethernet as interface. |
| Name | Description | |
|---|---|---|
| ComPorts | Collection of serial COM ports on the device. | |
| ConnectedIpList |
A property containing the list of the ConnectedIpInformation objects which contain information about the devices that are connected to this IP ID.
This property is only valid for an ethernet device. If this is not an ethernet device, then this property will return null.
If this is an ethernet device, the list will be non-null. It will be empty if no devices are connected.
The order of items in this list is not guaranteed.
(Inherited from GenericDevice) | |
| Description |
Get/Set the description of this device.
(Inherited from GenericBase) | |
| Disposed |
Property to indicate if the device has been disposed.
(Inherited from GenericDevice) | |
| HdWpWindowLayout |
Window Layout present on this device.
This property will trigger BaseEvent with DMOutputEventIds. | |
| ID |
Property to get the ID of the device.
(Inherited from GenericDevice) | |
| ImageProperties |
Image Overlay present on this device.
This property will trigger OverlayPropertiesChange with OverlayEventIds. | |
| Inputs |
Inputs present on this device.
This property will trigger BaseEvent with DMInputEventIds, AttributeChange with VideoAttributeEventIds, StreamChange with DMInputEventIds, CecChange with CecEventIds. | |
| IsOnline |
Property to get the current online state of the device.
(Inherited from GenericDevice) | |
| Name |
Get the name of this device.
(Inherited from GenericBase) | |
| NumberOfComPorts | Number of serial COM ports this device supports. | |
| Outputs |
Outputs present on this device.
This property will trigger BaseEvent with DMOutputEventIds, AttributeChange with VideoAttributeEventIds, DeviceInformationChange with ConnectedDeviceEventIds, StreamChange with DMOutputEventIds, OutputStreamChange with EndpointOutputStreamEventIds, CecChange with CecEventIds. | |
| Parent |
The parent that a given object was added to.
(Inherited from GenericBase) | |
| Registerable |
Property to indicate that this device can be registered.
(Inherited from GenericDevice) | |
| Registered |
Property to get the current registration state of the device.
(Inherited from GenericDevice) | |
| RegistrationFailureReason |
Property to get the Registration Failure Reason, this will match the return value from the call to register.
(Inherited from GenericDevice) | |
| SIMPLDeviceImplementation |
Internal protected member used for actual device control.
(Inherited from GenericDevice) | |
| TextProperties |
Text Overlay present on this device.
This property will trigger OverlayPropertiesChange with OverlayEventIds. | |
| Type |
Property to determine to type of device this is.
(Inherited from GenericDevice) | |
| UnRegistrationFailureReason |
Property to get the Unregistration Failure Reason, this will match the return value from the call to unregister.
(Inherited from GenericDevice) | |
| UserSpecifiedObject |
Can be assigned anything that user wants.
(Inherited from GenericBase) | |
| XioEndpointStubSIMPLDevice |
The SIMPL "stub" Device that the XiO Director creates for an endpoint to send the 1C/0E to the
correct place in hierarchy.
(Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| Dispose |
Clean up of resources.
(Inherited from GenericBase) | |
| Dispose(Boolean) |
Method to perform the actual disposing of the device.
(Inherited from GenericDevice) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Destructor of the device.
(Inherited from GenericDevice) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| OnBaseEvent(Int32) |
Protected member used to fire the BaseEvent with the default extended information.
(Inherited from GenericBase) | |
| OnBaseEvent(Int32, UInt16) |
Protected member used to fine the BaseEvent with extended event information.
(Inherited from GenericBase) | |
| Register |
Register this device with the system.
(Inherited from GenericDevice) | |
| ToString |
Return the name of the device.
(Inherited from GenericDevice) | |
| UnRegister |
Unregister this device with the system. This function can not be called from the device's own SigChange event handler.
On successful unregistration, if this device supports the OnlineStatusChange event, it will trigger indicating the device when offline. (Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| BaseEvent |
Generic base event, triggered when the there are no other handlers available
for a specific EventID.
(Inherited from GenericBase) | |
| IpInformationChange |
Event that tells what IP Address is connected/disconnected from an IP ID for a non-UDP device.
This is only valid for an Ethernet device. An exception will be thrown if it is not.
(Inherited from GenericDevice) | |
| OnlineStatusChange |
Event triggered when the Online status of the device changes.
(Inherited from GenericDevice) |
static HdWp4k401C _hdWp4k401C; static Tt1xx _tt1x1; static Tt1xx _tt1x2; static Tt1xx _tt1x3; static Tt1xx _tt1x4; public ControlSystemHdWp4k401C() { //Register console commands CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a HD-WP-4K-401-C CreateDevice command", ConsoleAccessLevelEnum.AccessOperator); } //Method to create HD-WP-4K-401-C device. public void CreateDeviceCmd(String args) { //Initialize the HD-WP-4K-401-C device _hdWp4k401C = new HdWp4k401C(0x18, this); _tt1x1 = new Tt1xx(1, _hdWp4k401C); _tt1x2 = new Tt1xx(2, _hdWp4k401C); _tt1x3 = new Tt1xx(3, _hdWp4k401C); _tt1x4 = new Tt1xx(4, _hdWp4k401C); _tt1x1.ButtonStateChange += Tt1xxButtonStateChangeEvent; _tt1x2.ButtonStateChange += Tt1xxButtonStateChangeEvent; _tt1x3.ButtonStateChange += Tt1xxButtonStateChangeEvent; _tt1x4.ButtonStateChange += Tt1xxButtonStateChangeEvent; //Register the HD-WP-4K-401-C with the Control System //This will enable the gateway connection ("127.0.0.1") in the system at the //ID specified above that the HD-WP-4K-401-C will connect to. _hdWp4k401C.Register(); _hdWp4k401C.BaseEvent += HdWp4k401CSigChange; _hdWp4k401C.HdWpWindowLayout.WindowLayoutChange += HdWpWindowLayoutChange; _hdWp4k401C.Outputs.HdmiOut.StreamChange += HdWp4k401COutputsHdmiOutSigChange; } //Method to handle the Window Layout sig change events static void HdWpWindowLayoutChange(object device, GenericEventArgs args) { if (args.EventId == WindowLayoutEventIds.WindowTitlesEnabledEventId) { CrestronConsole.PrintLine("Event {0} occurred for {1}", WindowLayoutEventIds.WindowTitlesEnabledEventId, _hdWp4k401C.HdWpWindowLayout.ToString()); } } //Method to handle the TT1XX Button State change events static void Tt1xxButtonStateChangeEvent(GenericBase device, ButtonEventArgs args) { CrestronConsole.PrintLine("{0} device {1} state changed to {2}\r\n", device.ToString(),args.Button.Name, args.NewButtonState); } //Method to handle the Outputs-HDMI Output sig change events static void HdWp4k401COutputsHdmiOutSigChange(Stream stream, StreamEventArgs args) { if (args.EventId == DMOutputEventIds.HotplugDetectedEventId) { CrestronConsole.PrintLine("Event {0} occurred for {1}", DMOutputEventIds.HotplugDetectedEventId, _hdWp4k401C.Outputs.HdmiOut.ToString()); } } //Method to handle the Outputs sig change events static void HdWp4k401CSigChange(GenericBase device, BaseEventArgs args) { if (args.EventId == DMOutputEventIds.ResolutionEventId) { CrestronConsole.PrintLine("Event {0} occurred for {1}", DMOutputEventIds.ResolutionEventId, _hdWp4k401C.Outputs.ToString()); } }