设备控制 Helper
公共头文件:
#include "brookesia/service_helper/system/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::DeviceInfoList
Runtime capability snapshot for the device control service.
-
using BoardInfo = hal::system::BoardInfoIface::Info
Static board information.
-
using PowerBatteryInfo = hal::power::BatteryIface::Info
Static battery information.
-
using PowerBatteryState = hal::power::BatteryIface::State
Runtime battery state snapshot.
-
using PowerBatteryChargeConfig = hal::power::BatteryIface::ChargeConfig
Battery charge configuration.
-
using CameraDeviceInfos = std::vector<hal::video::CameraIface::DeviceInfo>
Camera device information list.
-
struct NetworkConnectivityInfo
Current network connectivity snapshot.
-
using Capabilities = hal::DeviceInfoList