24#ifndef LELY_IO2_CAN_MSG_HPP_
25#define LELY_IO2_CAN_MSG_HPP_
68operator~(CanFlag rhs) {
69 return static_cast<CanFlag
>(~static_cast<int>(rhs));
73operator&(CanFlag lhs, CanFlag rhs) {
74 return static_cast<CanFlag
>(
static_cast<int>(lhs) &
static_cast<int>(rhs));
78operator^(CanFlag lhs, CanFlag rhs) {
79 return static_cast<CanFlag>(
static_cast<int>(lhs) ^
static_cast<int>(rhs));
83operator|(CanFlag lhs, CanFlag rhs) {
84 return static_cast<CanFlag>(
static_cast<int>(lhs) |
static_cast<int>(rhs));
88operator&=(CanFlag& lhs, CanFlag rhs) {
89 return lhs = lhs & rhs;
93operator^=(CanFlag& lhs, CanFlag rhs) {
94 return lhs = lhs ^ rhs;
98operator|=(CanFlag& lhs, CanFlag rhs) {
99 return lhs = lhs | rhs;
@ CAN_FLAG_IDE
The Identifier Extension (IDE) flag.
@ CAN_FLAG_RTR
The Remote Transmission Request (RTR) flag (unavailable in CAN FD format frames).
@ CAN_FLAG_FDF
The FD Format (FDF) flag, formerly known as Extended Data Length (EDL).
@ CAN_FLAG_BRS
The Bit Rate Switch (BRS) flag (only available in CAN FD format frames).
@ CAN_FLAG_ESI
The Error State Indicator (ESI) flag (only available in CAN FD format frames).
This header file is part of the I/O library; it contains the CAN frame declarations.
@ BRS
Bit Rate Switch support is enabled.
@ FDF
FD Format (formerly Extended Data Length) support is enabled.
CanFlag
The error flags of a CAN bus, which are not mutually exclusive.
@ RTR
The Remote Transmission Request (RTR) flag (unavailable in CAN FD format frames).
@ IDE
The Identifier Extension (IDE) flag.
@ ESI
The Error State Indicator (ESI) flag (only available in CAN FD format frames).