![Tews Technologies TIP810-SW-42 Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/tews-technologies/tip810-sw-42/tip810-sw-42_user-manual_1093635028.webp)
TIP810-SW-42 - VxWorks Device Driver
Page 28 of 36
4.4.4 FIO_T810_SET_BUSOFF
NAME
FIO_T810_SET_BUSOFF - Enter the bus off state
DESCRIPTION
This ioctl function sets the specified CAN controller into the Bus Off state.
After execution of this control function the CAN controller is completely removed from the CAN bus
and cannot communicate until the control function T810_IOCBUSON is executed. The optional
argument pointer is not used by this ioctl function.
EXAMPLE
#include
“tip810.h”
int fd;
int result;
result = ioctl(fd, FIO_T810_SET_BUSOFF, 0);
if (result == ERROR) {
/* handle ioctl error */
}
ERRORS
S_t810Drv_NOBUSOFF
Unable to enter the BUSOFF mode.
SEE ALSO
SJA1000 Product Specification Manual –
6.4.3 MODE REGISTER (MOD)