IoT::CAN

struct Filter

File Information

Library: IoT/CAN
Package: CANEndpoint
Header: IoT/CAN/CANEndpoint.h

Description

A simple filter for CAN messages.

A filter matches if received_id && mask == id && mask.

The filter condition can be inverted by setting the invert flag to true.

Enumerations

Anonymous

CAN_FILTER_MASK_SFF = 0x000007FFU

Standard Frame Format mask

CAN_FILTER_MASK_EFF = 0x1FFFFFFFU

Extended Frame Format mask

CAN_FILTER_FLAG_RTR = 0x40000000U

RTR Flag for ID and/or mask

CAN_FILTER_FLAG_EFF = 0x80000000U

Extended Frame Flag for ID and/or mask

Constructors

Filter inline

Filter();

Variables

id

Poco::UInt32 id;

11-bit or 29-bit CAN ID. For a 29-bit ID must be or-ed with CAN_FILTER_FLAG_EFF.

invert

bool invert;

Invert filter condition.

mask

Poco::UInt32 mask;

Mask for CAN ID (CAN_FILTER_MASK_SFF, CAN_FILTER_MASK_EFF, CAN_FILTER_MASK_RTR, or custom).

Securely control IoT edge devices from anywhere   Connect a Device