19 static const uint32_t cStandardIdMax{0x7ff};
20 static const uint32_t cEXtendedIdMax{0x1fffffff};
26 std::array<uint8_t, cDataLengthMax> mData;
41 const std::vector<uint8_t> &data);
46 uint32_t
GetId() const noexcept;
CAN transmission packet frame.
Definition: can_frame.h:13
bool IsExtended() const noexcept
Indicate whether the frame is extended or standard.
static const size_t cDataLengthMax
Maximum CAN frame data length.
Definition: can_frame.h:16
CanFrame(uint32_t id, bool extended, bool remote, const std::vector< uint8_t > &data)
Constructor.
size_t GetDataLength() const noexcept
Get frame data length (DLC)
uint32_t GetId() const noexcept
Get frame CAN ID.
bool IsRemote() const noexcept
Indicate whether the frame is remote transmission request (RTR) or data.
const std::array< uint8_t, cDataLengthMax > & GetData() const noexcept
Get frame data.