|
Read the selected digital I/O port.
- Parameters:
-
[in] | ulPort | Selected digital I/O port (0 to MSXExxxx__DigitalIOGetNumberOfPorts)
Please read the documentation of the MSXExxxx__DigitalIOGetNumberOfPorts for the description of a port. |
[in] | ulOption1 | Reserved. Set to 0 |
[out] | Response |
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)
ulValue Digital I/O state. Each bit indicates the state of one digital I/O channel.
- D0 : 0: Digital I/O 0/32 is low. 1: Digital I/O 0/32 is high
- ...
- D31 : 0: Digital I/O 31/63 is low. 1: Digital I/O 31/63 is high
|
- Return values:
-
| 0 | SOAP_OK |
| Others | See SOAP error |
|