I want to use a GPIO pin as an interrupt source.
Configuring this is described in the help files:
if ( DeviceIoControl(hGPIO, IOCTL_GPIO_WAIT_FOR_IRQ, …) )
But how do I get the event which wakes up my thread waiting on the irq.
Does anybody has sample code for doing this?
I found the solution myself.
Above DeviceIoControl call isn’t the configuration.
This is already the ‘blocking’ call for the irq.
The event is handled inside the DeviceIoControl call.
It is not necessary to know about it.
Can you tell where did you find out the pin & port value for the GPIOMessage structure needed for this call of DeviceIoControl ?
In the helpfile.