Public Member Functions | Static Public Attributes | Private Attributes | List of all members
can::FrameMaskFilter Class Reference

#include <filter.h>

Inheritance diagram for can::FrameMaskFilter:
Inheritance graph
[legend]

Public Member Functions

 FrameMaskFilter (uint32_t can_id, uint32_t mask=MASK_RELAXED, bool invert=false)
 
virtual bool pass (const can::Frame &frame) const
 
- Public Member Functions inherited from can::FrameFilter
virtual ~FrameFilter ()
 

Static Public Attributes

static const uint32_t MASK_ALL = 0xffffffff
 
static const uint32_t MASK_RELAXED = ~Frame::EXTENDED_MASK
 

Private Attributes

const bool invert_
 
const uint32_t mask_
 
const uint32_t masked_id_
 

Detailed Description

Definition at line 17 of file filter.h.

Constructor & Destructor Documentation

◆ FrameMaskFilter()

can::FrameMaskFilter::FrameMaskFilter ( uint32_t  can_id,
uint32_t  mask = MASK_RELAXED,
bool  invert = false 
)
inline

Definition at line 21 of file filter.h.

Member Function Documentation

◆ pass()

virtual bool can::FrameMaskFilter::pass ( const can::Frame frame) const
inlinevirtual

Implements can::FrameFilter.

Definition at line 24 of file filter.h.

Member Data Documentation

◆ invert_

const bool can::FrameMaskFilter::invert_
private

Definition at line 31 of file filter.h.

◆ mask_

const uint32_t can::FrameMaskFilter::mask_
private

Definition at line 29 of file filter.h.

◆ MASK_ALL

const uint32_t can::FrameMaskFilter::MASK_ALL = 0xffffffff
static

Definition at line 19 of file filter.h.

◆ MASK_RELAXED

const uint32_t can::FrameMaskFilter::MASK_RELAXED = ~Frame::EXTENDED_MASK
static

Definition at line 20 of file filter.h.

◆ masked_id_

const uint32_t can::FrameMaskFilter::masked_id_
private

Definition at line 30 of file filter.h.


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


socketcan_interface
Author(s): Mathias L├╝dtke
autogenerated on Tue May 4 2021 02:50:18