Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
zcan_filter Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ id

uint32_t zcan_filter::id

target state of the identifier

◆ id_mask

uint32_t zcan_filter::id_mask

identifier mask

◆ id_type

uint32_t zcan_filter::id_type

Indicates the identifier type (standard or extended) use can_ide enum for assignment

◆ res0

uint32_t zcan_filter::res0

◆ res1

uint32_t zcan_filter::res1

◆ res2

uint32_t zcan_filter::res2

◆ rtr

uint32_t zcan_filter::rtr

target state of the rtr bit

◆ rtr_mask

uint32_t zcan_filter::rtr_mask

rtr bit mask


The documentation for this struct was generated from the following file: