CTRE Phoenix 6 C++ 24.3.0
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. More...
 
uint64_t hwTimestampUs
 Hardware timestamp if receive event. Zero otherwise. More...
 
uint64_t swTimestampUs
 Software timestamp if receive event. Zero otherwise. More...
 
uint8_t data [64]
 Data bytes. More...
 
uint32_t flags
 CAN flags, such as FD and BRS. More...
 
uint8_t len
 Number of bytes in payload. More...
 

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: