|
If selected channel is an output, then this function returns the current output state.
- Parameters:
-
[in] | ulChannel | Selected digital I/O channel (0 to MX370x__ExtDigitalIOGetNumberOfChannels - 1) |
[in] | ulOption1 | Reserved. Set to 0 |
[out] | Response |
sResponse.iReturnValue
- 0: Means the remote function performed OK
- -1: Means an system error occurred
- -2: Channel selection wrong
- -3: Error when reading the channel state
- -100: Internal system error occurred. See value of syserrno
sResponse.syserrno system-error code (the value of the libc "errno" code)
ulValue Digital I/O channel state
- 0: Digital I/O channel is low
- 1: Digital I/O channel is high
|
- Return values:
-
| 0 | SOAP_OK |
| Others | See SOAP error |
|