Ts |
This class will trigger SigChange, AttributeChange, CecChange, DeviceInformationChange, InputStreamChange, DeviceExtenderSigChange events.
public sealed class Ts1542C : Ts1542
The Ts1542C type exposes the following members.
| Name | Description | |
|---|---|---|
| BooleanInput |
Collection of Boolean Inputs sent to the device.
(Inherited from BasicTriList) | |
| BooleanOutput |
Collection of Boolean Outputs received from the device.
(Inherited from BasicTriList) | |
| 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) | |
| DmIn |
DM Input present on this Ts1542C device
This property will trigger InputStreamChange with DMInputEventIds, AttributeChange with VideoAttributeEventIds, and CecChange with CecEventIds. | |
| ExtenderAnnotationReservedSigs |
Property to access the DVP4 Annotation functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderApplicationControlReservedSigs |
Property to access the Application Control functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderAudioReservedSigs |
Property to access the Audio functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderAuthenticationReservedSigs |
Property to access the Authentication functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderAutoUpdateReservedSigs |
Property to access the Auto Update functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderEthernetReservedSigs |
Property to access the Ethernet functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderScreenSaverReservedSigs |
Property to access the Screen Saver functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderSystem2ReservedSigs |
Property to access the System2 functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderSystem3ReservedSigs |
Property to access the System3 functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderSystemReservedSigs |
Property to access the System functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderTouchDetectionReservedSigs |
Extender to access the touch detection functionality on this device.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderVoiceControlReservedSigs |
Property to access the Voice Control functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ExtenderVoipReservedSigs |
Property to access the VOIP functionality of the TS 1542 Touch Screen.
This property will trigger DeviceExtenderSigChange event. (Inherited from Ts1542) | |
| ID |
Property to get the ID of the device.
(Inherited from GenericDevice) | |
| IsOnline |
Property to get the current online state of the device.
(Inherited from GenericDevice) | |
| Name |
Get the name of this device.
(Inherited from GenericBase) | |
| 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) | |
| SmartObjects |
Collection containing the loaded SmartObjects of this device.
(Inherited from BasicTriListWithSmartObject) | |
| StringInput |
Collection of String Inputs sent to the device.
(Inherited from BasicTriList) | |
| StringOutput |
Collection of String Outputs received from the device.
(Inherited from BasicTriList) | |
| 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) | |
| UShortInput |
Collection of Integer Inputs sent to the device.
(Inherited from BasicTriList) | |
| UShortOutput |
Collection of Integer Outputs received from the device.
(Inherited from BasicTriList) | |
| 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) | |
| LoadSmartObjects(ISmartObject) |
Load the smart objects to this device that are already loaded for the specified device.
(Inherited from BasicTriListWithSmartObject) | |
| LoadSmartObjects(Stream) |
Load a smart object given a reference to a stream for the SGD file.
(Inherited from BasicTriListWithSmartObject) | |
| LoadSmartObjects(String) |
Load a smart object given a SGD Filename with an absolute path.
(Inherited from BasicTriListWithSmartObject) | |
| 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) | |
| SigChange |
Event triggered when cue information is received from a device.
When processing this event, it will hold off other cues from being received from the device.
If one desires to continue processing the data and receive more information, launch a new thread
and allow this event to exit.
(Inherited from BasicTriList) |
static Ts1542C _ts1542c; static int _count; public ControlSystemTs1542() { //Register console commands CrestronConsole.AddNewConsoleCommand(AllAudioOnCmd, "AllAudioOn", "This is a Ts1542 AllAudioOn command", ConsoleAccessLevelEnum.AccessOperator); CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a Ts1542 CreateDevice command", ConsoleAccessLevelEnum.AccessOperator); } // Sig callback used to read Audio Reserved Sig information received from the Touch Panel. static void ExtenderAudioReservedSigs_DeviceExtenderSigChange(DeviceExtender currentDeviceExtender, SigEventArgs args) { CrestronConsole.PrintLine("Audio Reserved Sig {0}", args.Sig.Number); if (args.Sig == _ts1542c.ExtenderAudioReservedSigs.AllAudioVolumeFeedback) { CrestronConsole.PrintLine("AllAudioVolumeFeedback: {0}", args.Sig.UShortValue); } } // Method to create TS 1542C device public void CreateDeviceCmd(String args) { //Initialize the TS 1542C device _ts1542c = new Ts1542C(0x16, this); _ts1542c.ExtenderAudioReservedSigs.Use(); _ts1542c.ExtenderEthernetReservedSigs.Use(); _ts1542c.ExtenderSystemReservedSigs.Use(); _ts1542c.ExtenderSystem3ReservedSigs.Use(); _ts1542c.ExtenderVoipReservedSigs.Use(); _ts1542c.ExtenderVoiceControlReservedSigs.Use(); _ts1542c.ExtenderScreenSaverReservedSigs.Use(); _ts1542c.ExtenderApplicationControlReservedSigs.Use(); _ts1542c.ExtenderSystem2ReservedSigs.Use(); _ts1542c.ExtenderAuthenticationReservedSigs.Use(); _ts1542c.ExtenderAnnotationReservedSigs.Use(); //Register the TS 1542C with the Control system //This will enable the gateway connection ("127.0.0.1") in the system at the //ID specified above that the TS 1542 will connect to. _ts1542c.Register(); _ts1542c.SigChange += Ts1542CSigChange; //Reserved sig handler initialization _ts1542c.ExtenderAudioReservedSigs.DeviceExtenderSigChange += ExtenderAudioReservedSigs_DeviceExtenderSigChange; } // Method to set the Audio to ON state public void AllAudioOnCmd(String args) { CrestronConsole.ConsoleCommandResponse("Enable Audio\r\n"); _ts1542c.ExtenderAudioReservedSigs.AllAudioOn(); } // Sig callback used to read information received from the TS 1542C. static void Ts1542CSigChange(GenericBase currentDevice, SigEventArgs args) { if (args.Event == eSigEvent.BoolChange) { var tempBooleanSig = args.Sig as BoolOutputSig; if (tempBooleanSig != null) { if (tempBooleanSig.Number <= 16000) { //This means Boolean "cue" changed on the TS 1542C //Just print some information for now. CrestronConsole.PrintLine("Boolean Sig {0}'s state {1}", tempBooleanSig.Number, tempBooleanSig.BoolValue); _ts1542c.StringInput[tempBooleanSig.Number].StringValue = string.Format("Press {0} {1}", tempBooleanSig.Number, _count++); _ts1542c.BooleanInput[50].BoolValue = true; } else { CrestronConsole.PrintLine("Boolean Sig {0} is not processed", tempBooleanSig.Number); } } } else if (args.Event == eSigEvent.UShortChange) { var tempIntegerSig = args.Sig as UShortOutputSig; if (tempIntegerSig != null) { if (tempIntegerSig.Number <= 16000) { //This means Integer "cue" changed on the _ts1542c //Just print some information for now. CrestronConsole.PrintLine("Integer Sig {0}'s state {1}", tempIntegerSig.Number, tempIntegerSig.UShortValue); _ts1542c.UShortInput[tempIntegerSig.Number].UShortValue = tempIntegerSig.UShortValue; } else { CrestronConsole.PrintLine("Integer Sig {0} is not processed", tempIntegerSig.Number); } } } else if (args.Event == eSigEvent.StringChange) { var tempStringSig = args.Sig as StringOutputSig; if (tempStringSig != null) { if (tempStringSig.Number <= 16000) { //This means String "cue" changed on the TS 1542C //Just print some information for now. CrestronConsole.PrintLine("String Sig {0}'s state {1}", tempStringSig.Number, tempStringSig.StringValue); _ts1542c.StringInput[tempStringSig.Number].StringValue = tempStringSig.StringValue; } else { CrestronConsole.PrintLine("String Sig {0} is not processed", tempStringSig.Number); } } } }