You are here

Device communication functions

Functions referenced in current section use GPIO_COMMAND and GPIO_EVENT structures.

The declaration of the GPIO_COMMAND structure is:

typedef struct _GPIO_COMMAND
{
        unsigned char command[8];
} GPIO_COMMAND, *PGPIO_COMMAND;

Members:

command

8-byte array filled with a command to be sent to GPIO-24 adapter.

The declaration of the GPIO_EVENT structure is:

typedef struct _GPIO_EVENT
{
        unsigned char event[8];
        LARGE_INTEGER timestamp;
        HGPIO device;    
} GPIO_EVENT, *PGPIO_EVENT;

Members:

event

8-byte array to be filled with an event or response received from GPIO-24 adapter.

timestamp

Timestamp filled with the RDTSC (Read Time Stamp Counter) high-resolution timer value at the moment the event was received by USB host.

device

Handle to the device that has generated the event, or HGPIO_DLL_NOTIFICATION constant value if the event was generated internally by the DLL.