TIP810-SW-42 - VxWorks Device Driver
Page 26 of 36
EXAMPLE
#include
“tip810.h”
int
fd;
int
result;
T810_FILTER filter;
/* Not relevant because all bits are "don't care" */
filter.acceptance_code = 0x0;
/* Mark all bit position don't care */
filter.acceptance_mask = 0xffffffff;
/* Single Filter Mode */
filter.single_filter = 1;
// TRUE
result = ioctl(fd, FIO_T810_SET_FILTER, (int)&filter);
if (result < 0) {
/* handle ioctl error */
}
SEE ALSO
SJA1000 Product Specification Manual –
6.4.15 ACCEPTANCE FILTER (PeliCAN Mode)