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
Prototype
Parameters
Return Value
Remarks
Function Reference
Install callback function of event under DOS
environment
C/C++ (DOS)
void far*CanInstallCallBack(int handle, int
index, void (far* proc)() );
handle : handle retrieve from CanOpen-
Driver()
Index : event type
Index
Type
2
Error Warning
3
Data Overrun
4
Wake Up
5
Error Passive
6
Arbitration Lost
7
Bus Error
void (far *proc)() : Call-back function
The suggested prototype of the call-back
function is like void (far ErrorWarning)();
Previous call back function (NULL when
there is no Call back installed)
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
37
Need help?
Do you have a question about the NuCOM PCI-7841 and is the answer not in the manual?