Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
CAN filter structure. More...
#include <can.h>
Data Fields | |
uint32_t | id: 29 |
uint32_t | res0: 1 |
uint32_t | rtr: 1 |
uint32_t | id_type: 1 |
uint32_t | id_mask: 29 |
uint32_t | res1: 1 |
uint32_t | rtr_mask: 1 |
uint32_t | res2: 1 |
CAN filter structure.
Used to pass can identifier filter information to the driver. rtr_mask and *_id_mask are used to mask bits of the rtr and id fields. If the mask bit is 0, the value of the corresponding bit in the id or rtr field don't care for the filter matching.
uint32_t zcan_filter::id |
target state of the identifier
uint32_t zcan_filter::id_mask |
identifier mask
uint32_t zcan_filter::id_type |
Indicates the identifier type (standard or extended) use can_ide enum for assignment
uint32_t zcan_filter::res0 |
uint32_t zcan_filter::res1 |
uint32_t zcan_filter::res2 |
uint32_t zcan_filter::rtr |
target state of the rtr bit
uint32_t zcan_filter::rtr_mask |
rtr bit mask