context_hub_t 结构体参考文档
#include <
context_hub.h
>
数据字段 |
|
| const char * | name |
| const char * | 供应商 |
| const char * | 工具链 |
| uint32_t | platform_version |
| uint32_t | toolchain_version |
| uint32_t | hub_id |
| 浮点数 | peak_mips |
| 浮点数 | stopped_power_draw_mw |
| 浮点数 | sleep_power_draw_mw |
| 浮点数 | peak_power_draw_mw |
| const struct connected_sensor_t * | connected_sensors |
| uint32_t | num_connected_sensors |
| const struct hub_app_name_t | os_app_name |
| uint32_t | max_supported_msg_len |
详细说明
情境中心的定义。设备可以包含多个低功耗域。在这种情况下,请为每个集线器添加一条条目。不过,设备可以声明一个情境感知中心,并在内部将其管理为多个情境感知中心
定义位于文件 context_hub.h 的 225 行 。
字段文档
| const struct connected_sensor_t * connected_sensors |
定义位于文件 context_hub.h 的 238 行 。
| uint32_t hub_id |
定义位于文件 context_hub.h 的 231 行 。
| uint32_t max_supported_msg_len |
定义位于文件 context_hub.h 的 242 行 。
| const char* name |
定义位于文件 context_hub.h 的 226 行 。
| uint32_t num_connected_sensors |
定义位于文件 context_hub.h 的 239 行 。
| const struct hub_app_name_t os_app_name |
定义位于文件 context_hub.h 的 241 行 。
| float peak_mips |
定义位于文件 context_hub.h 的 233 行。
| float peak_power_draw_mw |
定义位于文件 context_hub.h 的 236 行。
| uint32_t platform_version |
定义位于文件 context_hub.h 的 229 行 。
| float sleep_power_draw_mw |
定义位于文件 context_hub.h 的 235 行。
| float stopped_power_draw_mw |
定义位于文件 context_hub.h 的 234 行。
| const char* toolchain |
定义位于文件 context_hub.h 的 228 行 。
| uint32_t toolchain_version |
定义位于文件 context_hub.h 的 230 行 。
| const char* vendor |
定义位于文件 context_hub.h 的 227 行 。
此结构体的文档是根据以下文件生成的:
- hardware/libhardware/include/hardware/ context_hub.h