#include "pci7841.h
int handle = CanOpenDriver(0, 0);//open the port
0 of card 0
....
BYTE error_count = CanGetRxErrorCount();
CanCloseDriver(handle);
CanGetTxErrorCount()
Purpose
Prototype
Parameters
Return Value
Remarks
See Also
Usage
#include "pci7841.h
int handle = CanOpenDriver(0, 0);//open the port
0 of card 0
....
BYTE error_count = CanGetTxErrorCount(handle);
CanCloseDriver(handle);
CanSetTxErrorCount()
Purpose
Prototype
Function Reference
Get the current value of the transmit error
counter
C/C++
BYTE CanGetTxErrorCount(int handle)
handle : handle retrieve from CanOpen-
Driver()
value
This function reflects the current of the
transmit error counter. After hardware reset
happened, the value would set to 127. A
bus-off event occurs when the value
reaches 255. You can call the CanSetTxEr-
rorCount() to set the value from 0 to 254 to
clear the bus-off event.
CanRcvMsg()
C/C++
Set the current value of the transmit error
counter
C/C++
void CanSetTxErrorCount(int handle, BYTE
value)
33
Need help?
Do you have a question about the NuCOM PCI-7841 and is the answer not in the manual?