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]
The message number that caused the callback function call is passed.
Definition |
Value |
CNTM_CARRY_BORROW |
0x1142 |
wParam [ C, C++ : long] [Python: ctypes.c_long]
Channel number is passed when carray/borrow occurs.
lParam [ C, C++ : long] [Python: ctypes.c_long]
Notification factor is passed when carray/borrow occurs.
Notification Factor can be gived by the following logic sum.
Carry : CNT_CB_CARRY
Borrow : CNT_CB_BORROW
Param [ C, C++ : void *] [Python: ctypes.c_void_p]
The parameter which is passed in CntSetCarryBorrowCallbackProc is passed.
Return Value
None
Remarks
You should write the substance definition for interrupt callback function in this format.
See Also
CntSetCarryBorrowEvent CntSetCarryBorrowCallbackProc