libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Entry< T > Struct Template Reference

app_framework 的硬件注册片段 Hardware-registration fragment of app_framework More...

#include <hardware.hpp>

Data Fields

T & object
 被注册的设备对象引用 / Reference to the device object being registered.
 
std::initializer_list< const char * > aliases
 指向同一设备的别名集合 / Alias set pointing to the same device.
 

Detailed Description

template<typename T>
struct LibXR::Entry< T >

app_framework 的硬件注册片段 Hardware-registration fragment of app_framework

Note
这一组类型只负责“设备对象通过别名注册并按类型查找”,不处理模块执行调度。 This group is responsible only for registering device objects under aliases and looking them up by type; it does not handle application execution scheduling. 硬件条目模板 / Hardware entry template
Template Parameters
T设备类型 / Device type
Note
aliases 中的每个别名都必须是非空字符串指针。 Every alias in aliases must be a non-null string pointer.

Definition at line 29 of file hardware.hpp.

Field Documentation

◆ aliases

template<typename T >
std::initializer_list<const char*> LibXR::Entry< T >::aliases

指向同一设备的别名集合 / Alias set pointing to the same device.

Definition at line 33 of file hardware.hpp.

◆ object

template<typename T >
T& LibXR::Entry< T >::object

被注册的设备对象引用 / Reference to the device object being registered.

Definition at line 31 of file hardware.hpp.


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