context_hub_module_t结构参考
context_hub_module_t结构参考
#include < context_hub.h >
资料栏位 | |
结构hw_module_t | 常见的 |
int(* | get_hubs )(结构context_hub_module_t *模块,const结构context_hub_t **列表) |
int(* | subscribe_messages )(uint32_t的hub_id, context_hub_callback CBK,无效*饼干) |
int(* | send_message )(uint32_t hub_id,const struct hub_message_t * msg) |
详细说明
每个硬件模块必须具有名为HAL_MODULE_INFO_SYM的数据结构,并且该数据结构的字段必须以hw_module_t开头,后跟模块特定的信息。
在文件context_hub.h的第391行定义。
现场文件
struct hw_module_t通用 |
在文件context_hub.h的第392行定义。
int(* get_hubs)(结构context_hub_module_t *模块,const结构context_hub_t **列表) |
int(* send_message)(uint32_t hub_id,const struct hub_message_t * msg) |
int(* subscription_messages)(uint32_t hub_id, context_hub_callback cbk,无效* cookie) |
该结构的文档是从以下文件生成的:
- 硬件/ libhardware /包含/硬件/ context_hub.h