This structure is used with the general purpose I/O API calls.
typedef struct _GPIO_DESC
{
UINT state;
UINT smask;
UINT dir;
UINT dmask;
} GPIO_DESC;
The following table describes each field. All fields are 32 bits in size, with each bit representing an I/O signal. I/O signal #1 is represented by bit #0, signal #2 = bit #1, etc.
| state | each bit represents the state of an I/O signal |
| smask | each bit identifies an I/O signal for the state field to operate on |
| dir | each bit specifieds an I/O signal direction (0=input 1=output) |
| dmask | each bit identifies an I/O signal for the dir field to operate on |
See Also:
| Previous | Contents | Next |