![Tews Technologies TIP810-SW-42 User Manual Download Page 35](http://html1.mh-extra.com/html/tews-technologies/tip810-sw-42/tip810-sw-42_user-manual_1093635035.webp)
TIP810-SW-42 - VxWorks Device Driver
Page 35 of 36
4.4.10
FIO_T810_SET_LIMIT
NAME
FIO_T810_SET_LIMIT - Set new error warning limit
DESCRIPTION
This ioctl function sets a new error warning limit in the corresponding CAN controller register. The
default value (after hardware reset) is 96.
The new error warning limit will be set in an unsigned char variable. A pointer to this variable is passed
by the argument
arg
to the driver.
This
ioctl
command
will
be
accepted
only
in
reset
mode
(BUSOFF).
Enter
FIO_T810_SET_BUSOFF first otherwise you will get an error (S_t810Drv_NOBUSOFF).
EXAMPLE
#include
“tip810.h”
int fd;
int result;
unsigned char limit;
limit = 200;
result = ioctl(fd, FIO_T810_SET_LIMIT, (int)&limit);
if (result == ERROR) {
/* handle ioctl error */
}
ERRORS
S_t810Drv_NOBUSOFF
The CAN controller is in operating mode. This
mode can be changed only in reset mode.
SEE ALSO
SJA1000 Product Specification Manual –
6.4.3 MODE REGISTER (MOD)