int eth32_get_direction(eth32 handle, int port, int *direction);
This function retrieves the current direction register for the specified digital I/O port. See the eth32_set_direction function for further description of the direction register.
handle - The value returned by the eth32_open function.
port - The port number (0-5).
direction - Pointer to a variable which will receive the contents of the direction register for the specified port.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.