Chapter 36 Interrupt API | PCI-DMC-A01 / PCI-DMC-B01
36-6 Revised March, 2012
36.6 _DMC_01_link_ interrupt
FORMAT
I16 PASCAL _DMC_01_link_interrupt (U16 CardNo, void (__stdcall *callbackAddr)
(U16 CardNo, U16 NodeID))
Purpose
Sets a handler procedure. When interrupt occurs, enter this handler.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
lpCallBackProc U16 Handler Default interrupt handler
Example
U16 CardNo=0
__stdcall *callbackAddr
I16 status = _DMC_01_link_interrupt (CardNo, , CallBack);
void _stdcall CallBack(U16 CardNo, U16 NodeID)
{
U16 i;
i = CardNo + NodeID;
}