U2C_RESULT U2C_GetIoDirection( HANDLE hDevice, ULONG* pValue );
The U2C_GetIoDirection() function obtains current input/output direction of the GPIO port pins.
Parameters:
Handle to the U2C-12 device.
A pointer to unsigned long to be filled with the direction of the GPIO pins. pValue is treated as unsigned long 0xXXCCBBAA, where CC, BB and AA correspond to the C, B and A port pins:
Return values:
U2C_SUCCESS
The GPIO pins direction was successfully read.
U2C_HARDWARE_NOT_FOUND
U2C-12 device referenced by hDevice handle was not found.