Specifications
Page | 72
DeviceIoControl(hFile, IOCTL_GPIO_GETIRQ, &id, sizeof(DWORD), &irq,
sizeof(DWORD), NULL, NULL);
Where "id" is GPIO pin number, "irq" returns IRQ number
5. Close GPIO device
CloseHandle(hFile);
Note:
GPIO pin definition: 0~191 MPU Bank1~6 GPIO pin, 192~209 TPS65930 GPIO
0~17.
GPIO interrupt mode is used for drivers, applications cannot set this mode.
For definition of the IOCTL code and GPIO modes, please refer to the CD file
[\wince_6\inc\gpio.h] User should include the header file.