int eth32_get_direction_bit(eth32 handle, int port, int bit, int *direction);
This function retrieves the value of a single bit of a port's direction register. It is provided simply for convenience, since it internally calls the eth32_get_direction function to determine the value of the specified bit.
handle - The value returned by the eth32_open function.
port - Specifies the port number (0-5).
bit - Specifies the bit number (0-7) within the port.
direction - Pointer to a variable which will receive the value of the specified direction bit of 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.