PDIO_INT_CALLBACK


Function

Interrupt callback type.

Format

PDIO_INT_CALLBACK ( Id, Message, wParam, lParam, Param )

Parameters

Id [C:short] [Python: ctypes.c_short]
The device ID retrieved from DioInit is passed.

Message [C:short] [Python: ctypes.c_short]
The message ID that becomes the cause of invoking the callback function is passed.

Definition

Value

DIOM_INTERRUPT

1300H

wParam [C:long] [Python: ctypes.c_long]
Interrupt bit number is passed.

lParam [C:long] [Python: ctypes.c_long]
Interrupt logic is passed.

Definition

Value

[Dec]

Description

DIO_INT_RISE

1

Input value 0->1

DIO_INT_FALL

2

Input value 1->0

Param [C:void *] [Python: ctypes.c_void_p]
The optional parameter passed through DioSetInterruptCallBackProc is passed.

Return Value

None

Remarks

Please define the substance of interrupt call back function in this format.

See Also

DioSetInterruptEvent
DioSetInterruptCallBackProc
Interrupt