Product Comparison: USB I2C | USB SPI | USB GPIO

USB-I/O Interface Adapter GPIO-24. Programmer's Reference Manual.


2.2.1. GPIO_SendCommand()

GPIO_RESULT GPIO_SendCommand(
      HGPIO hDevice,
      GPIO_COMMAND Command
);

The GPIO_SendCommand() function sends the specified asynchronous command to GPIO-24 adapter. The application does not wait until GPIO-24 adapter executes the command and sends the response. Control is returned to the application immediately after the command is sent.

Parameters:

hDevice

Handle to the device to send command to.

Command

Specifies the command to be sent.

Return values:

GPIO_S_SUCCESS

The command was successfully sent.

GPIO_E_HANDLE

Invalid device handle has been provided.

GPIO_E_FAIL

Failed to send command.

GPIO_E_NOT_INITIALIZED

Library has not been initialized.