context_hub_t 結構體參考資料
#include <
context_hub.h
>
資料欄位 |
|
| const char * | name |
| const char * | 供應商 |
| const char * | toolchain |
| 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