GPIO interrupt handling with 9M2443

Hello,

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?

Thanks
Hermann

Hello again,

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.

Hermann

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.

ms-help://MS.VSCC.v80/MS.VSIPCC.v80/WCE-UG_Help/WCE-UG_Help/GPIO_(General_Purpose_InputOutput)_pins2.html

Hermann