![Tews Technologies TIP810-SW-42 Скачать руководство пользователя страница 33](http://html1.mh-extra.com/html/tews-technologies/tip810-sw-42/tip810-sw-42_user-manual_1093635033.webp)
TIP810-SW-42 - VxWorks Device Driver
Page 33 of 36
4.4.8 FIO_T810_ENABLE_LISTENONLY
NAME
FIO_T810_ENABLE_LISTENONLY - Enable listen only mode
DESCRIPTION
This ioctl function enables the listen only facility of the SJA1000 CAN controller.
In this mode the CAN controller would give no acknowledge to the CAN-bus, even if a message is
received successfully. Message transmission is not possible. All other functions can be used like in
normal mode.
This mode can be used for software driver bit rate detection and 'hot-plugging'.
The optional argument pointer can be omitted for 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_ENABLE_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)