U2C_RESULT U2C_GetSingleIoDirection( HANDLE hDevice, ULONG IoNumber, BOOL* pbOutput );
The U2C_GetSingleIoDirection() function obtains input/output direction of the specified GPIO pin.
Parameters:
Handle to the U2C-12 device.
The number of the GPIO pin to obtain direction:
A pointer to the boolean to be filled with the direction of the GPIO pin:
Return values:
U2C_SUCCESS
The GPIO pin direction was successfully read.
U2C_HARDWARE_NOT_FOUND
U2C-12 device referenced by hDevice handle was not found.
U2C_BAD_PARAMETER
IoNumber is out of range.