/// <summary> /// Returns the TriggeredStrobeChannelObject for the selected channel /// </summary> /// <param name="selectedChannel">The channel to return.</param> /// <returns>selected channel object</returns> public TriggeredStrobeChannelObject Channel(Enums.Channels selectedChannel) { return(_channels[(int)selectedChannel - 1]); }
/// <summary> /// Returns the ContinuousStrobeChannelObject for the selected channel /// </summary> /// <param name="selectedChannel">The channel to return.</param> /// <returns>selected channel object</returns> public ContinuousStrobeChannelObject Channel(Enums.Channels selectedChannel) { return(_channels[(int)selectedChannel - 1]); }
/// <summary> /// Sets the TriggeredStrobeChannelObject for the selected channel /// </summary> /// <param name="selectedChannel">The channel to assign the TriggeredStrobeChannelObject to.</param> /// <param name="channelObject">The TriggeredStrobeChannelObject to assign.</param> public void Channel(Enums.Channels selectedChannel, TriggeredStrobeChannelObject channelObject) { _obj._channels[(int)selectedChannel - 1] = channelObject; }
/// <summary> /// Returns the ContinuousStrobeChannelProtocol for the selected channel /// </summary> /// <param name="selectedChannel">The channel to return.</param> /// <returns>selected channel object</returns> public ContinuousStrobeChannelProtocol Channel(Enums.Channels selectedChannel) { return(_ledChannels[(int)selectedChannel - 1]); }
/// <summary> /// Sets the ContinuousStrobeChannelObject for the selected channel /// </summary> /// <param name="selectedChannel">The channel to assign the ContinuousStrobeChannelObject to.</param> /// <param name="channelObject">The ContinuousStrobeChannelObject to assign.</param> public void Channel(Enums.Channels selectedChannel, ContinuousStrobeChannelObject channelObject) { _obj._channels[(int)selectedChannel - 1] = channelObject; }
/// <summary> /// Creates a new TriggeredStrobeChannelProtocol for the given port and channel /// </summary> /// <param name="port">The port for the TriggeredStrobeChannelProtocol to use.</param> /// <param name="selectedChannel">The channel for the TriggeredStrobeChannelProtocol to use.</param> /// <param name="echoComTraffic">When True, the protocol object will echo com traffic to the subscribed message functions.</param> public TriggeredStrobeChannelProtocol(ILegacyProtocol port, Enums.Channels selectedChannel, bool echoComTraffic = false) { _port = port; _echoComTraffic = echoComTraffic; _channel = selectedChannel; }
/// <summary> /// Returns the LedChannelObject for the selected channel /// </summary> /// <param name="selectedChannel">The channel to return.</param> /// <returns>selected channel object</returns> public LedChannelObject Channel(Enums.Channels selectedChannel) { return(_ledChannels[(int)selectedChannel - 1]); }
/// <summary> /// Sets the LedChannelObject for the selected channel /// </summary> /// <param name="selectedChannel">The channel to assign the LedChannelObject to.</param> /// <param name="channelObject">The LedChannelObject to assign.</param> public void Channel(Enums.Channels selectedChannel, LedChannelObject channelObject) { _obj._ledChannels[(int)selectedChannel - 1] = channelObject; }
/// <summary> /// Returns the TriggeredStrobeChannelProtocol for the selected channel /// </summary> /// <param name="selectedChannel">The channel to return.</param> /// <returns>selected channel object</returns> public TriggeredStrobeChannelProtocol Channel(Enums.Channels selectedChannel) { return(_ledChannels[(int)selectedChannel - 1]); }
/// <summary> /// Returns the LedChannelProtocol for the selected channel /// </summary> /// <param name="selectedChannel">The channel to return.</param> /// <returns>selected channel object</returns> public LedChannelProtocol Channel(Enums.Channels selectedChannel) { return(_ledChannels[(int)selectedChannel - 1]); }