int MSXExxxx__DigitalIOGetPortAvailableDirections ( xsd__unsignedLong  ulPort,
xsd__unsignedLong  ulOption1,
struct MSXExxxx__DigitalIOGetPortAvailableDirectionsResponse Response 
)

Returns the available directions for the selected port (input or output).

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)
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
Return values:
0 SOAP_OK
Others See SOAP error