Function
Interrupt callback type
Format
CallBackProc ( Id, Message, wParam, lParam, Param )
Parameters
Id [ C, C++ : short] [Python: ctypes.c_short]
Specifies the device ID retrieved from CntInit.
Message [ C, C++ : short] [Python: ctypes.c_short]
Specifies the message number as the factor to call the callback function.
Definition |
Value |
CNTM_COUNTUP_CH0 |
0x1100 |
CNTM_COUNTUP_CH1 |
0x1101 |
CNTM_COUNTUP_CH2 |
0x1102 |
CNTM_COUNTUP_CH3 |
0x1103 |
CNTM_COUNTUP_CH4 |
0x1104 |
CNTM_COUNTUP_CH5 |
0x1105 |
CNTM_COUNTUP_CH6 |
0x1106 |
CNTM_COUNTUP_CH7 |
0x1107 |
wParam [ C, C++ : long] [Python: ctypes.c_long]
Count direction is passed when count-match occurs.
lParam [ C, C++ : long] [Python: ctypes.c_long]
Count compare value is passed.
Param [ C, C++ : void *] [Python: ctypes.c_void_p]
The parameter which is passed in CntSetCountMatchCallBackProc is passed.
Return Value
None
Remarks
You should write the substance definition for interrupt callback function in this format.
See Also
CntSetCountMatchEvent CntSetCountMatchCallBackProc Count-match