eth32_get_direction

int eth32_get_direction(eth32 handle, int port, int *direction);

Summary

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.

Parameters

  • 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.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

See Also

eth32_get_direction_bit, eth32_set_direction, eth32_set_direction_bit