PDIO_TRG_CALLBACK


Function

Trigger callback type.

Format

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

Parameters

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

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

Definition

Value

DIOM_TRIGGER

1340H

wParam [ C, C++:long] [Python: ctypes.c_long]
Trigger bit number is passed.

lParam [ C, C++:long] [Python: ctypes.c_long]
Trigger logic is passed.

Definition

Value

[Dec]

Description

DIO_TRG_RISE

1

Input value 0->1

DIO_TRG_FALL

2

Input value 1->0

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

Return Value

None

Remarks

The optional parameter passed through DioSetInterruptCallBackProc is passed.

See Also

DioSetTrgEvent
DioSetTrgCallBackProc
Trigger_Function