Back to I/O and Power Commands
CMD_IOPWR_SETBIT

Command:              CMD_IOPWR_SETBIT
Destination:          SD_IOPWR
Destination Channel:  1

Description
Clients use this command to set digital output values. The indication of whether or not to set each bit is stored sequentially in the command data byte starting at bit 0, the least significant bit.

Command data format

Digital Outputs To Set to 1 padding
1 byte 3 bytes

Digital Outputs To Set to 1

A one or zero for each output should be stored sequentially in the data byte starting with bit 0, the least significant byte. A value of one will cause the digital output to be set; a value of zero will leave the state as is.

This command allows a single digital output to be set without regard to the current state of the other digital outputs.


Response data format

No response data

Response return codes
RESP_OK Execution of the command was successful.
RESP_UNSUPPORTED The command is not supported
RESP_AUTH_FAIL The client ID specified in the source channel field is not authorized to execute this command. (This response may be the result of the client not having registered with the CMD_SERVER_REG command.)
RESP_UNKNOWN_ERR An unknown error occurred.


|Top|