CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
ctre::phoenix::platform::can::canframe_t Struct Reference

"plain old data" container for holding a CAN Frame Event. More...

#include <ctre/phoenix/platform/canframe.hpp>

Public Attributes

uint32_t arbID
 ArbID of the CAN frame.
 
uint64_t hwTimestampUs
 Hardware timestamp if receive event. Zero otherwise.
 
uint64_t swTimestampUs
 Software timestamp if receive event. Zero otherwise.
 
uint8_t data [64]
 Data bytes.
 
uint32_t flags
 CAN flags, such as FD and BRS.
 
uint8_t len
 Number of bytes in payload.
 

Detailed Description

"plain old data" container for holding a CAN Frame Event.

Assignment of this type resolves to a copy-by-value.

Member Data Documentation

◆ arbID

uint32_t ctre::phoenix::platform::can::canframe_t::arbID

ArbID of the CAN frame.

◆ data

uint8_t ctre::phoenix::platform::can::canframe_t::data[64]

Data bytes.

◆ flags

uint32_t ctre::phoenix::platform::can::canframe_t::flags

CAN flags, such as FD and BRS.

◆ hwTimestampUs

uint64_t ctre::phoenix::platform::can::canframe_t::hwTimestampUs

Hardware timestamp if receive event. Zero otherwise.

◆ len

uint8_t ctre::phoenix::platform::can::canframe_t::len

Number of bytes in payload.

◆ swTimestampUs

uint64_t ctre::phoenix::platform::can::canframe_t::swTimestampUs

Software timestamp if receive event. Zero otherwise.


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