Dimax English Dimax French Dimax English Dimax Translations
USB-I2C/SPI/GPIO Interface Adapter - U2C-12
Reference Manual

U2C_SingleIoRead


U2C_RESULT U2C_SingleIoRead (
            HANDLE hDevice,
             ULONG IoNumber,
             BOOL* pValue
);
 

The U2C_SingleIoRead function obtains the value of the specified GPIO pin.

Parameters:
hDevice Handle to the U2C-12 device.
IoNumber The number of the GPIO pin to obtain value from:
  • Numbers 0..7 correspond to Port A pins 0..7
  • Numbers 8..15 correspond to Port B pins 0..7
  • Number 16..23 correspond to Port C pins 0..7
pValue A pointer to boolean to be filled with the GPIO pin state.
Return values:
U2C_SUCCESS The GPIO pin state 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.
            Copyright DIMAX 2002-2012