For control systems that have built in switchers (for example, DMPS3), this collection will contain the inputs of the switcher.
Since it is a collection of the interface, the programmer will need to read the CardInputOutputType property
to know what the base class of the input is, cast it to that, and then work with it from there.
The SwitcherInputs collection will be null for devices that do not have switchers. The index into the SwitcherInputs can also be referenced
by the following enums:
CrestronControlSystem..::..eDmps3200cInputs for DMPS-200-C and
CrestronControlSystem..::..eDmps3300c300cAecInputs for DMPS-300-C and DMPS-300-C-AEC.
To make use of a specific input, you will need to check against the type present in the interface and cast/use it from there. Example follows:
| Copy |
---|
ushort HdmiAudioChannelsFeedback(ICardInputOutputType MyCard)
{
ushort NumberOfHdmiChannels = 0;
if(MyCard.CardInputOutputType == eCardInputOutputType.Dmps3HdmiVgaBncInput)
{
NumberOfHdmiChannels = ((Dmps3HdmiVgaBncInput)MyCard).HdmiAudioChannelsFeedback.UShortValue;
}
return (NumberOfHdmiChannels);
}
ushort NumHdmiChannels = HdmiAudioChannelsFeedback(SwitcherInputs[eDmps3200cInputs.Hdmi2)); |
Namespace: Crestron.SimplSharpProAssembly: SimplSharpPro (in SimplSharpPro.exe)
Syntax
See Also