libxr
Embedded C++ framework for bare-metal, RTOS and Linux
Loading...
Searching...
No Matches
LibXR::CAN::ClassicPack Struct Reference

经典 CAN 帧数据结构 / Classic CAN frame structure. More...

#include <can.hpp>

Public Attributes

uint32_t id
 
Type type
 帧类型 / Frame type.
 
uint8_t dlc
 有效数据长度(0~8) / Data length code (0–8).
 
uint8_t data [8]
 数据载荷 / Data payload (up to 8 bytes).
 

Detailed Description

经典 CAN 帧数据结构 / Classic CAN frame structure.

Definition at line 128 of file can.hpp.

Member Data Documentation

◆ data

uint8_t LibXR::CAN::ClassicPack::data[8]

数据载荷 / Data payload (up to 8 bytes).

Definition at line 134 of file can.hpp.

◆ dlc

uint8_t LibXR::CAN::ClassicPack::dlc

有效数据长度(0~8) / Data length code (0–8).

Definition at line 133 of file can.hpp.

◆ id

uint32_t LibXR::CAN::ClassicPack::id

CAN ID(11/29 bit 或 ErrorID) / CAN ID (11/29 bits or ErrorID).

Definition at line 130 of file can.hpp.

◆ type

Type LibXR::CAN::ClassicPack::type

帧类型 / Frame type.

Definition at line 132 of file can.hpp.


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