int MSXExxxx__DigitalIOGetPortDirections ( xsd__unsignedLong  ulPort,
struct MSXExxxx__unsignedLongResponse Response 
)

Reads the current digital I/O direction for the selected 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 Current digital I/O direction. Each bit indicates if the channel is used as an input or an output. Example:

  • 1: I/O 0 of the selected port is configured as output, all the other I/Os of the selected port are configured as input
  • 3: I/Os 0 and 1 of the selected port are configured as output, all the other I/Os of the selected port are configured as input
Return values:
0 SOAP_OK
Others See SOAP error