Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
zcan_filter Struct Reference

CAN filter structure. More...

#include <can.h>

Data Fields

uint32_t id: 29
 
uint32_t rtr: 1
 
uint32_t id_type: 1
 
uint32_t id_mask: 29
 
uint32_t rtr_mask: 1
 

Detailed Description

CAN filter structure.

Field Documentation

◆ id

uint32_t zcan_filter::id

CAN identifier to match.

◆ id_mask

uint32_t zcan_filter::id_mask

CAN identifier matching mask. If a bit in this mask is 0, the value of the corresponding bit in the id field is ignored by the filter.

◆ id_type

uint32_t zcan_filter::id_type

Standard or extended CAN identifier. Use can_ide enum for assignment.

◆ rtr

uint32_t zcan_filter::rtr

Match data frame or Remote Transmission Request (RTR) frame.

◆ rtr_mask

uint32_t zcan_filter::rtr_mask

Data frame/Remote Transmission Request (RTR) bit matching mask. If this bit is 0, the value of the rtr field is ignored by the filter.


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