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:
Handle to the GPIO-24 adapter.
Specifies the command to be sent.
Pointer to GPIO_EVENT structure to be filled with the response details.
Return values:
Function call succeeded.
Invalid device handle has been provided.
Failed to perform the transaction.
Library has not been initialized.