TIP810-SW-42 - VxWorks Device Driver
Page 32 of 36
4.4.7 FIO_T810_DISABLE_SELFTEST
NAME
FIO_T810_DISABLE_SELFTEST - Disable self test mode
DESCRIPTION
This ioctl function disables the self test facility of the SJA1000 CAN controller, which was before
enabled with the ioctl command FIO_T810_ENABLE_SELFTEST.
The optional argument pointer can be omitted for this 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_SELFTEST, 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)