
#ifndef _GPIO_H_
#define _GPIO_H_

#define WM_GIO_IRQ            0xAAAA  // Windows message to inform process
#define IOCTL_SET_INPUT_MODE       0  // Set GPIO as input mode
#define IOCTL_SET_OUTPUT_MODE      1  // Set GPIO as output mode
#define IOCTL_SET_INT_MODE         2  // Set GPIO to generate interrupt
#define IOCTL_ENABLE_INT           3  // Enable GPIO to generate interrupt
#define IOCTL_DISABLE_INT          4  // Disable GPIO to generate interrupt
#define IOCTL_SET_CALLBACK_HANDLE  5  // Set handle for GPIO to send window message when IRQ generated

#endif
