libxr 1.0
Want to be the best embedded framework
|
FDCAN 通信接口,扩展 CAN 功能,支持灵活数据速率(FD)CAN 消息 (FDCAN communication interface that extends CAN functionality by supporting Flexible Data-Rate (FD) CAN messages). More...
#include <can.hpp>
Public Member Functions | |
FDCAN (const char *name_tp="can", const char *name_fd_tp="fdcan", Topic::Domain *domain=nullptr) | |
构造 FDCAN 对象,可指定主题名称和通信域 (Constructs an FDCAN object with optional topic names and domain). | |
struct | __attribute__ ((packed)) |
FD CAN 消息结构 (Structure representing an FD CAN message). | |
virtual ErrorCode | AddMessage (const FDPack &pack)=0 |
添加 FD CAN 消息到系统 (Adds an FD CAN message to the system). | |
virtual ErrorCode | AddMessage (const ClassicPack &pack)=0 |
添加 CAN 消息到系统 (Adds a CAN message to the system). | |
![]() | |
CAN (const char *name_tp="can", Topic::Domain *domain=nullptr) | |
构造 CAN 对象,可指定主题名称和通信域 (Constructs a CAN object with an optional topic name and domain). | |
struct | __attribute__ ((packed)) |
经典 CAN 消息结构 (Structure representing a classic CAN message). | |
Data Fields | |
FDPack | |
Topic | fd_tp_ |
FD CAN 消息的主题 (Topic for FD CAN messages). | |
![]() | |
ClassicPack | |
Topic | classic_tp_ |
经典 CAN 消息的主题 (Topic for classic CAN messages). | |
Additional Inherited Members | |
![]() | |
enum class | Type : uint8_t { STANDARD = 0 , EXTENDED = 1 , REMOTE_STANDARD = 2 , REMOTE_EXTENDED = 3 } |
CAN 消息类型 (Enumeration of CAN message types). More... | |
FDCAN 通信接口,扩展 CAN 功能,支持灵活数据速率(FD)CAN 消息 (FDCAN communication interface that extends CAN functionality by supporting Flexible Data-Rate (FD) CAN messages).
|
inline |
构造 FDCAN 对象,可指定主题名称和通信域 (Constructs an FDCAN object with optional topic names and domain).
name_tp | 经典 CAN 消息的主题名称 (Topic name for classic CAN messages). |
name_fd_tp | FD CAN 消息的主题名称 (Topic name for FD CAN messages). |
domain | 可选的通信域 (Optional domain for message communication). |
Definition at line 73 of file can.hpp.
添加 CAN 消息到系统 (Adds a CAN message to the system).
Implements LibXR::CAN.
Reimplemented in LibXR::STM32CANFD.
添加 FD CAN 消息到系统 (Adds an FD CAN message to the system).
Implemented in LibXR::STM32CANFD.
Topic LibXR::FDCAN::fd_tp_ |