HardFOC Core
API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
hf::can::CanFrame Struct Reference

One CAN or CAN FD frame; len is a byte count, never a DLC code. More...

#include <HfCanPort.h>

Public Member Functions

constexpr bool IsExtended () const noexcept
 
constexpr bool IsRemote () const noexcept
 
constexpr bool IsFd () const noexcept
 

Public Attributes

uint32_t id {0}
 
uint8_t len {0}
 
uint8_t flags {0}
 
uint8_t data [kFdMaxLen] {}
 
uint32_t ts_us {0}
 RX timestamp (µs, port clock); ignored on TX.
 

Detailed Description

One CAN or CAN FD frame; len is a byte count, never a DLC code.

Member Function Documentation

◆ IsExtended()

constexpr bool hf::can::CanFrame::IsExtended ( ) const
inlineconstexprnoexcept

◆ IsFd()

constexpr bool hf::can::CanFrame::IsFd ( ) const
inlineconstexprnoexcept

◆ IsRemote()

constexpr bool hf::can::CanFrame::IsRemote ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ data

uint8_t hf::can::CanFrame::data[kFdMaxLen] {}

◆ flags

uint8_t hf::can::CanFrame::flags {0}

◆ id

uint32_t hf::can::CanFrame::id {0}

◆ len

uint8_t hf::can::CanFrame::len {0}

◆ ts_us

uint32_t hf::can::CanFrame::ts_us {0}

RX timestamp (µs, port clock); ignored on TX.


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