Structures

There are a few data structures defined by the API that are passed to or from functions. Each is described below.

eth32_event

The eth32_event structure holds all of the information about an event that has fired. It is passed from the API to your code when information about an event is retrieved, for example, with the eth32_dequeue_event function.

typedef struct
{
	int id;
	int type;
	int port;
	int bit;
	int prev_value;
	int value;
	int direction;
} eth32_event;
        

eth32_handler

The eth32_handler structure is used to specify how events should be handled when they occur.

typedef struct
{
	int type;
	int maxqueue;
	int fullqueue;
	eth32_eventfn eventfn;
	void *extra;
	HWND window;
	unsigned int msgid;
	WPARAM wparam;
	LPARAM lparam;
} eth32_handler;