sResponse.iReturnValue
- 0: The remote function performed OK
- -1: System error occurred
- -2: The ulPort parameter is wrong
- -100: Internal system error occurred. See value of syserrno
sResponse.syserrno system error code (the value of the libc "errno" code)
ulInputs Digital inputs availability. Each bit indicates if the channel can be used as an input. Example:
- 1: I/O 0 of the selected port can be used as an input
- 4: I/O 2 of the selected port can be used as an input
- 3: I/Os 0 and 1 of the selected port can be used as input
ulOutputs Digital outputs availability. Each bit indicates if the channel can be used as an output. Example:
- 1: I/O 0 of the selected port can be used as an output
- 4: I/O 2 of the selected port can be used as an output
- 3: I/Os 0 and 1 of the selected port can be used as output
|