U2C_RESULT U2C_SingleIoWrite( HANDLE hDevice, ULONG IoNumber, BOOL Value );
The U2C_SingleIoWrite() function sets the output value of the specified GPIO pin. Pin must be configured as output using U2C_SetIoDirection() orU2C_SetSingleIoDirection() functions first.
Parameters:
Handle to the U2C-12 device.
The number of the GPIO pin to set output value to:
The GPIO pin new output value.
Return values:
U2C_SUCCESS
The GPIO pin output value 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.