modm API documentation
modm::can::Message Struct Reference


struct  Flags

Public Member Functions

constexpr Message (uint32_t inIdentifier=0, uint8_t inLength=0)
constexpr Message (uint32_t inIdentifier, uint8_t inLength, const uint64_t &inData, bool extended=false)
constexpr Message (uint32_t inIdentifier, uint8_t inLength, const uint8_t *inData, bool extended=false)
constexpr Message (const modm::can::Message &rhs)
constexpr uint32_t getIdentifier () const
constexpr void setIdentifier (uint32_t id)
constexpr uint8_t getCapacity () const
constexpr void setFlexibleData (bool fd=true)
constexpr bool isFlexibleData () const
constexpr bool isBitRateSwitching () const
constexpr void setExtended (bool extended=true)
constexpr bool isExtended () const
constexpr void setRemoteTransmitRequest (bool rtr=true)
constexpr bool isRemoteTransmitRequest () const
constexpr void setDataLengthCode (uint8_t inDlc)
constexpr void setLength (uint8_t inLength)
constexpr uint8_t getLength () const
constexpr uint8_t getDataLengthCode () const
uint8_t modm_aligned (4) data[capacity]
constexpr bool operator== (const modm::can::Message &rhs) const
constexpr modm::can::Message & operator= (const modm::can::Message &rhs)
constexpr bool operator< (const modm::can::Message &rhs) const

Public Attributes

uint32_t identifier
struct modm::can::Message::Flags flags
uint8_t dlc
uint8_t length

Static Public Attributes

static constexpr uint8_t capacity = 8
static constexpr uint8_t dlcConversionTable [] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 20, 24, 32, 48, 64}

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