TIP810-SW-42 - VxWorks Device Driver
Page 34 of 36
4.4.9 FIO_T810_DISABLE_ LISTENONLY
NAME
FIO_T810_DISABLE_ LISTENONLY - Disable listen only mode
DESCRIPTION
This ioctl function disables the listen only facility of the SJA1000 CAN controller, which was before
enabled with the ioctl command FIO_T810_ENABLE_ LISTENONLY.
The optional argument pointer can be omitted in this ioctl function.
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;
result = ioctl(fd, FIO_T810_DISABLE_LISTENONLY, 0);
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)