Function Reference 37Error and Event Handling FunctionsWhen the exception occurs, your program may need to take somealgorithm to recover the problem. The following functions are oper-ation-system depended functions. You should care about therestriction in the operation-system.DOS EnvironmentCanInstallCallBack()Purpose Install callback function of event under DOSenvironmentPrototype C/C++ (DOS)void far*CanInstallCallBack(int handle, intindex, void (far* proc)() );Parameters handle : handle retrieve from CanOpen-Driver()Index : event typevoid (far *proc)() : Call-back functionThe suggested prototype of the call-backfunction is like void (far ErrorWarning)();Return Value Previous call back function (NULL whenthere is no Call back installed)Remarks Install the call-back function for event han-dlingIn normal state, all hardware interrupt ofcPCI/PCI-7841 wouldn’t be set exceptreceive and transmit interrupt. After callingthe CanInstallCallBack(), the correspondinginterrupt would be activated. The interruptIndex Type2 Error Warning3 Data Overrun4 Wake Up5 Error Passive6 Arbitration Lost7 Bus Error