GetDirection Method

int GetDirection(int port)

Summary

This method retrieves the current direction register for the specified digital I/O port. See the SetDirection Method for further description of the direction register.

Parameters

  • port - The port number (0-5).

Return Value

This method returns an integer. The return value is the port's current direction register.

See Also

GetDirectionBit Method, SetDirection Method, SetDirectionBit Method