Product Comparison: USB I2C | USB SPI | USB GPIO

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


2.2.3. GPIO_Transaction()

GPIO_RESULT GPIO_Transaction(
      HGPIO hDevice,
      GPIO_COMMAND Command,
      GPIO_EVENT* pResponse
);

The GPIO_Transaction() function sends synchronous command, waits for GPIO-24 adapter response and returns the response details. After sending synchronous command, control will only be returned to the application when the response has been received. Response will be stored in buffer pointed by pResponse parameter.

Parameters:

hDevice

Handle to the GPIO-24 adapter.

Command

Specifies the command to be sent.

pResponse

Pointer to GPIO_EVENT structure to be filled with the response details.

Return values:

GPIO_S_SUCCESS

Function call succeeded.

GPIO_E_HANDLE

Invalid device handle has been provided.

GPIO_E_FAIL

Failed to perform the transaction.

GPIO_E_NOT_INITIALIZED

Library has not been initialized.