| Accessories |
|---|
| I2C Cable for U2C-12 with Clips and Crocodile |
| Documentation |
|---|
|
|
|
|
|
|
| Related products |
|---|
| USB-IO Interface Adapter - GPIO-24 |
U2C_RESULT U2C_SetSingleIoDirection( HANDLE hDevice, ULONG IoNumber, BOOL bOutput );
The U2C_SetSingleIoDirection() function configures input/output direction of the specified GPIO pin.
Parameters:
Handle to the U2C-12 device.
The number of the GPIO pin to change direction:
The direction of the GPIO pin:
Return values:
U2C_SUCCESS
The GPIO pin direction was successfully modified.
U2C_HARDWARE_NOT_FOUND
U2C-12 device referenced by hDevice handle was not found.
U2C_BAD_PARAMETER
IoNumber is out of range.