Cangettxerrorcount(); Cansettxerrorcount() - ADLINK Technology NuCOM PCI-7841 User Manual

Dual-port isolated can interface card
Table of Contents

Advertisement

#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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuCOM PCI-7841 and is the answer not in the manual?

This manual is also suitable for:

Nucom cpci-7841Nucom pm-7841

Table of Contents