Linux Kernel
3.7.1
|
#include <can.h>
Data Fields | |
canid_t | can_id |
canid_t | can_mask |
struct can_filter - CAN ID based filter in can_register(). : relevant bits of CAN ID which are not masked out. : CAN mask (see description)
Description: A filter matches, when
<received_can_id> & mask == can_id & mask
The filter can be inverted (CAN_INV_FILTER bit set in can_id) or it can filter for error message frames (CAN_ERR_FLAG bit set in mask).