|
DS_STATUS
|
DS1M12_SetDeviceChannelState
|
(DS_HANDLE dsHandle, BOOL bChannelAActiveState, BOOL bChannelBActiveState)
|
Parameters
|
dsHandle
|
Handle of a DS1M12.
|
|
bChannelAActiveState
|
Controls the state of the channel A. The state of channel A is indicated by its LED, switched on (TRUE) or off (FALSE).
Switched on indicates that channel A is in the active state i.e. data is being returned from channel A is currently being displayed. Switched off indicates that channel A is in the inactive state ie no data will be returned from channel A. |
|
bChannelBActiveState
|
Controls the state of the channel B. The state of channel B is indicated by its LED, switched on (TRUE) or off (FALSE). Switched on indicates that channel B is in the active state ie data is being returned from channel B is currently being displayed.
Switched off indicates that channel B is in the inactive state ie no data will be returned from channel B. |
Return Value
Returns DS_SUCCESS if successful, otherwise the return value will be one of the following error codes:
DS_INVALID_HANDLE
DS_FAILED_TO_COMPLETE_COMMAND
DS_FAILED_TO_SYNCHRONIZE_DEVICE
DS_IO_ERROR
Remarks
The LEDs are used to indicate to a user whether a channel is active or not. If a LED is switched on, this indicates that this channel is active, if the LED is switched OFF, this indicates that this channel is not active.
The DS1M12 FPGA must be programmed prior to calling this function. To program the DS1M12, call DS1M12_ProgramDevice.