设备控制 Helper
公共头文件:
#include "brookesia/service_helper/device.hpp"
概述
本页用于查看 Device helper 的原始 Doxygen API,包括公共类型、枚举、方法与相关宏定义。Device helper 面向应用层封装设备控制与状态获取类接口,是通过 service 调用 HAL 设备能力的标准入口。
API 参考
Header File
Classes
-
class Device : public esp_brookesia::service::helper::Base<Device>
Helper schema definitions for the device control service.
Public Types
-
using Capabilities = hal::Capabilities
Runtime capability snapshot for the device control service.
-
using BoardInfo = hal::BoardInfoIface::Info
Static board information.
-
using StorageFsInfo = hal::StorageFsIface::Info
Storage file system information.
-
using PowerBatteryInfo = hal::PowerBatteryIface::Info
Static battery information.
-
using PowerBatteryState = hal::PowerBatteryIface::State
Runtime battery state snapshot.
-
using PowerBatteryChargeConfig = hal::PowerBatteryIface::ChargeConfig
Battery charge configuration.
-
using Capabilities = hal::Capabilities