![Tews Technologies TIP810-SW-42 User Manual Download Page 27](http://html1.mh-extra.com/html/tews-technologies/tip810-sw-42/tip810-sw-42_user-manual_1093635027.webp)
TIP810-SW-42 - VxWorks Device Driver
Page 27 of 36
4.4.3 FIO_T810_SET_BUSON
NAME
FIO_T810_SET_BUSON - Enter the bus on state
DESCRIPTION
This ioctl function sets the specified CAN controller into the Bus On state.
After an abnormal rate of occurrences of errors on the CAN bus or after driver startup, the CAN
controller enters the Bus Off state. This control function resets the "reset mode" bit in the mode
register. The CAN controller begins the busoff recovery sequence and resets the transmit and receive
error counters. If the CAN controller counts 128 packets of 11 consecutive recessive bits on the CAN
bus, the Bus Off state is exited.
The optional argument can be omitted for this ioctl function.
Before the driver is able to communicate over the CAN bus after driver startup, this control
function must be executed.
EXAMPLE
#include
“tip810.h”
int fd;
int result;
result = ioctl(fd, FIO_T810_SET_BUSON, 0);
if (result == ERROR) {
/* handle ioctl error */
}
ERRORS
This ioctl function returns no specific error codes.
SEE ALSO
SJA1000 Product Specification Manual –
6.4.3 MODE REGISTER (MOD)