Function Reference
37
Error and Event Handling Functions
When the exception occurs, your program may need to take some
algorithm to recover the problem. The following functions are oper-
ation-system depended functions. You should care about the
restriction in the operation-system.
DOS Environment
CanInstallCallBack()
Purpose
Install callback function of event under DOS
environment
Prototype
C/C++ (DOS)
void far*CanInstallCallBack(int handle, int
index, void (far* proc)() );
Parameters
handle : handle retrieve from CanOpen-
Driver()
Index : event type
void (far *proc)() : Call-back function
The suggested prototype of the call-back
function is like void (far ErrorWarning)();
Return Value
Previous call back function (NULL when
there is no Call back installed)
Remarks
Install the call-back function for event han-
dling
In normal state, all hardware interrupt of
cPCI/PCI-7841 wouldn’t be set except
receive and transmit interrupt. After calling
the CanInstallCallBack(), the corresponding
interrupt would be activated. The interrupt
Index
Type
2
Error Warning
3
Data Overrun
4
Wake Up
5
Error Passive
6
Arbitration Lost
7
Bus Error
Содержание NuCOM cPCI-7841
Страница 4: ......
Страница 14: ...6 Introduction ...