Canseterrorwarninglimit() – ADLINK PCI-7841/cPCI-7841 User Manual

Page 39

Advertising
background image

Function Reference

31

Remarks

Get the information about the type and
location of errors on the bus.
When a bus error occurs, if your program
installed the call-back function or error-han-
dling event. The error-bit position would be
captured into the card. The value would be
fixed in the card until your program read it
back.

See Also

CanGetErrorWarningLimit(),
CanSetErrorWarningLimit()

Usage

C/C++

#include “pci7841.h
int handle = CanOpenDriver(0, 0);//open the port

0 of card 0

….
BYTE data = CanGetErrorCode();
CanCloseDriver(handle);

CanSetErrorWarningLimit()

Purpose

Set the Error Warning Limit

Prototype

C/C++
void CanSetErrorWarningLimit(int handle,
BYTE value)

Parameters

handle : handle retrieve from CanOpen-
Driver()
Value : Error Warning Limit

Return Value

none

Remarks

Set the error warning limit. If your program
has installed the error warning event or call-
back function. The error warning will be sig-
naled after the value of error counter pass-
ing the limit you set.

See Also

CanGetErrorWarningLimit()

Usage

C/C++

#include “pci7841.h
int handle = CanOpenDriver(0, 0);//open the port

0 of card 0

….

Advertising