GetDirectionBit Method

int GetDirectionBit(int port, int bit)

Summary

This method retrieves the value of a single bit of a port's direction register. It is provided simply for convenience, since it internally calls the GetDirection Method to determine the value of the specified bit.

Parameters

  • port - Specifies the port number (0-5).

  • bit - Specifies the bit number (0-7) within the port.

Return Value

This method returns an integer. The return value is the value of the specified direction bit of the specified port. Zero indicates the bit is configured for input and nonzero indicates it is configured for output.

See Also

GetDirection Method, SetDirection Method, SetDirectionBit Method