/AliOS-Things-master/components/ble_host/bt_host/ali_vendormodel_profile/ |
A D | ali_vendormodel_profile.c | 53 static void attention_on(struct bt_mesh_model *model) in attention_on() 58 static void attention_off(struct bt_mesh_model *model) in attention_off() 92 static void gen_onoff_get(struct bt_mesh_model *model, in gen_onoff_get() 108 static void gen_onoff_set_unack(struct bt_mesh_model *model, in gen_onoff_set_unack() 148 static void gen_onoff_set(struct bt_mesh_model *model, in gen_onoff_set() 167 static void lightness_get(struct bt_mesh_model *model, in lightness_get() 173 static void lightness_set(struct bt_mesh_model *model, in lightness_set() 179 static void lightness_set_unack(struct bt_mesh_model *model, in lightness_set_unack() 185 static void lightness_status(struct bt_mesh_model *model, in lightness_status() 215 static void lightness_last_get(struct bt_mesh_model *model, in lightness_last_get() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/sig_model/include/sig_model/ |
A D | light_lightness_cli.h | 30 …ss_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 31 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_li… 32 …ar_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 33 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model,set_lig… 34 …ef_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 35 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model,set_lig… 36 …ge_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 37 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model,set_lig… 38 …st_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model);
|
A D | light_ctl_cli.h | 31 …tl_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 33 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model,set_lig… 35 …mp_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 37 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model,set_lig… 39 …ef_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 41 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_li… 43 …ge_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 45 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_li…
|
A D | generic_level_cli.h | 26 …el_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 28 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_le… 30 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_le… 32 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_le…
|
A D | generic_onoff_cli.h | 26 …ff_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model); 27 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_on… 28 int ble_mesh_generic_onoff_cli_publish(struct bt_mesh_model *model, set_onoff_arg *send_arg, bool a…
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/api/mesh/ |
A D | health_srv.h | 26 int (*fault_get_cur)(struct bt_mesh_model *model, u8_t *test_id, 31 int (*fault_get_reg)(struct bt_mesh_model *model, u16_t company_id, 36 int (*fault_clear)(struct bt_mesh_model *model, u16_t company_id); 39 int (*fault_test)(struct bt_mesh_model *model, u8_t test_id, 43 void (*attn_on)(struct bt_mesh_model *model); 46 void (*attn_off)(struct bt_mesh_model *model); 73 struct bt_mesh_model *model;
|
A D | access.h | 65 struct bt_mesh_model *models; 66 struct bt_mesh_model *vnd_models; 161 …void (*func)(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf); 178 #define BT_MESH_MODEL_NONE ((struct bt_mesh_model[]){}) 268 struct bt_mesh_model *mod; 304 int (*update)(struct bt_mesh_model *mod); 326 struct bt_mesh_model { struct 396 int bt_mesh_model_publish(struct bt_mesh_model *model); 405 struct bt_mesh_elem *bt_mesh_model_elem(struct bt_mesh_model *mod); 407 struct bt_mesh_model *bt_mesh_model_find_vnd(struct bt_mesh_elem *elem, u16_t company, u16_t id); [all …]
|
A D | cfg_srv.h | 26 struct bt_mesh_model *model; 80 u8_t bt_mesh_mod_bind(struct bt_mesh_model *model, u16_t key_idx); 81 u8_t bt_mesh_mod_sub_add(struct bt_mesh_model *model, u16_t sub_addr); 82 u8_t bt_mesh_mod_pub_set(struct bt_mesh_model *model, u16_t pub_addr);
|
A D | ctrl_relay.h | 78 struct bt_mesh_model *model; 84 int ctrl_relay_init(struct bt_mesh_model *model); 86 void ctrl_relay_conf_set(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_s… 87 void ctrl_relay_conf_get(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_s…
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | health_srv.c | 43 static void health_get_registered(struct bt_mesh_model *mod, in health_get_registered() 76 static size_t health_get_current(struct bt_mesh_model *mod, in health_get_current() 116 static void health_fault_get(struct bt_mesh_model *model, in health_fault_get() 150 static void health_fault_clear(struct bt_mesh_model *model, in health_fault_clear() 191 static void health_fault_test(struct bt_mesh_model *model, in health_fault_test() 244 static void attention_get(struct bt_mesh_model *model, in attention_get() 266 static void attention_set(struct bt_mesh_model *model, in attention_set() 292 static void health_period_get(struct bt_mesh_model *model, in health_period_get() 320 static void health_period_set(struct bt_mesh_model *model, in health_period_set() 346 static int health_pub_update(struct bt_mesh_model *mod) in health_pub_update() [all …]
|
A D | access.c | 45 int (*const init)(struct bt_mesh_model *model, bool primary); 67 struct bt_mesh_model *model = &elem->models[j]; in bt_mesh_model_foreach() 73 struct bt_mesh_model *model = &elem->vnd_models[j]; in bt_mesh_model_foreach() 80 bt_s32_t bt_mesh_model_pub_period_get(struct bt_mesh_model *mod) in bt_mesh_model_pub_period_get() 118 static bt_s32_t next_period(struct bt_mesh_model *mod) in next_period() 143 struct bt_mesh_model *mod = user_data; in publish_sent() 163 static int publish_retransmit(struct bt_mesh_model *mod) in publish_retransmit() 409 struct bt_mesh_model *model; in bt_mesh_elem_find_group() 467 static bool model_has_key(struct bt_mesh_model *mod, u16_t key) in model_has_key() 572 struct bt_mesh_model *models = NULL, *model = NULL; in bt_mesh_model_recv() [all …]
|
A D | cfg_srv.c | 137 struct bt_mesh_model *mod; in comp_add_elem() 515 struct bt_mesh_model *mod; in genie_mesh_setup() 1096 struct bt_mesh_model *mod; in mod_pub_get() 1141 struct bt_mesh_model *mod; in mod_pub_set() 1284 struct bt_mesh_model *mod; in mod_pub_va_set() 1359 struct bt_mesh_model *mod; in mod_pub_va_set() 1430 struct bt_mesh_model *mod; in mod_sub_add() 1474 struct bt_mesh_model *mod; in mod_sub_del() 1542 struct bt_mesh_model *mod; in mod_sub_overwrite() 1606 struct bt_mesh_model *mod; in mod_sub_del_all() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | access.h | 25 struct bt_mesh_model *bt_mesh_model_find_vnd(struct bt_mesh_elem *elem, u16_t company, u16_t id); 26 struct bt_mesh_model *bt_mesh_model_find(struct bt_mesh_elem *elem, u16_t id); 28 u16_t *bt_mesh_model_find_group(struct bt_mesh_model *mod, u16_t addr); 32 void bt_mesh_model_foreach(void (*func)(struct bt_mesh_model *mod, struct bt_mesh_elem *elem, bool … 36 bt_s32_t bt_mesh_model_pub_period_get(struct bt_mesh_model *mod); 45 struct bt_mesh_model *bt_mesh_model_get(bool vnd, u8_t elem_idx, u8_t mod_idx);
|
A D | settings.h | 20 void bt_mesh_store_mod_bind(struct bt_mesh_model *mod); 21 void bt_mesh_store_mod_sub(struct bt_mesh_model *mod); 22 void bt_mesh_store_mod_pub(struct bt_mesh_model *mod);
|
A D | foundation.h | 122 int bt_mesh_cfg_srv_init(struct bt_mesh_model *model, bool primary); 123 int bt_mesh_health_srv_init(struct bt_mesh_model *model, bool primary); 125 int bt_mesh_cfg_cli_init(struct bt_mesh_model *model, bool primary); 126 int bt_mesh_health_cli_init(struct bt_mesh_model *model, bool primary); 132 void bt_mesh_attention(struct bt_mesh_model *model, u8_t time);
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/sig_model/srv/ |
A D | light_lightness_srv.c | 15 static int _light_lightness_prepare_publication(struct bt_mesh_model *model); 67 int ble_mesh_light_lightness_publication(struct bt_mesh_model *model) in ble_mesh_light_lightness_publication() 97 static void _light_lightness_status(struct bt_mesh_model *model, in _light_lightness_status() 190 static void _light_lightness_get(struct bt_mesh_model *model, in _light_lightness_get() 198 static void _light_lightness_set(struct bt_mesh_model *model, in _light_lightness_set() 207 static void _light_lightness_set_unack(struct bt_mesh_model *model, in _light_lightness_set_unack() 354 static void _light_lightness_linear_get(struct bt_mesh_model *model, in _light_lightness_linear_get() 367 static void _light_lightness_linear_set(struct bt_mesh_model *model, in _light_lightness_linear_set() 425 static void _light_lightness_last_get(struct bt_mesh_model *model, in _light_lightness_last_get() 495 static void _light_lightness_range_get(struct bt_mesh_model *model, in _light_lightness_range_get() [all …]
|
A D | light_ctl_srv.c | 69 int ble_mesh_light_ctl_publication(struct bt_mesh_model *model) in ble_mesh_light_ctl_publication() 100 static void _ctl_status(struct bt_mesh_model *model, in _ctl_status() 222 static void _ctl_get(struct bt_mesh_model *model, in _ctl_get() 231 static void _ctl_set(struct bt_mesh_model *model, in _ctl_set() 244 static void _ctl_set_unack(struct bt_mesh_model *model, in _ctl_set_unack() 305 static void _ctl_default_get(struct bt_mesh_model *model, in _ctl_default_get() 372 static void _ctl_default_set(struct bt_mesh_model *model, in _ctl_default_set() 487 static void _ctl_temp_status(struct bt_mesh_model *model, in _ctl_temp_status() 633 static bool _ctl_temp_action(struct bt_mesh_model *model) 680 static void _ctl_temp_get(struct bt_mesh_model *model, in _ctl_temp_get() [all …]
|
A D | generic_onoff_srv.c | 10 static int _generic_onoff_perpare_publication(struct bt_mesh_model *model); 22 static void _generic_onoff_prepear_buf(struct bt_mesh_model *model, struct net_buf_simple *msg, boo… in _generic_onoff_prepear_buf() 45 static void _generic_onoff_status(struct bt_mesh_model *model, in _generic_onoff_status() 61 static E_MESH_ERROR_TYPE _generic_onoff_analyze(struct bt_mesh_model *model, u16_t src_addr, struct… in _generic_onoff_analyze() 139 static int _generic_onoff_perpare_publication(struct bt_mesh_model *model) in _generic_onoff_perpare_publication() 158 int ble_mesh_generic_onoff_publication(struct bt_mesh_model *model) in ble_mesh_generic_onoff_publication() 195 static void _generic_onoff_get(struct bt_mesh_model *model, in _generic_onoff_get() 204 static void _generic_onoff_set(struct bt_mesh_model *model, in _generic_onoff_set() 217 static void _generic_onoff_set_unack(struct bt_mesh_model *model, in _generic_onoff_set_unack()
|
A D | generic_level_srv.c | 12 static int _generic_level_prepare_publication(struct bt_mesh_model *model); 41 static void _generic_level_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, bool is… in _generic_level_status() 135 static int _generic_level_prepare_publication(struct bt_mesh_model *model) in _generic_level_prepare_publication() 154 int ble_mesh_generic_level_publication(struct bt_mesh_model *model) in ble_mesh_generic_level_publication() 183 static void _generic_level_get(struct bt_mesh_model *model, in _generic_level_get() 192 static void _generic_level_set(struct bt_mesh_model *model, in _generic_level_set() 205 static void _generic_level_set_unack(struct bt_mesh_model *model, in _generic_level_set_unack() 297 static void _generic_delta_set(struct bt_mesh_model *model, in _generic_delta_set() 310 static void _generic_delta_set_unack(struct bt_mesh_model *model, in _generic_delta_set_unack() 391 static void _generic_move_set(struct bt_mesh_model *model, in _generic_move_set() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/sig_model/cli/ |
A D | light_lightness_cli.c | 16 int light_lightness_cli_publication(struct bt_mesh_model *model); 22 static void _light_lightness_status(struct bt_mesh_model *model, in _light_lightness_status() 34 static void _light_lightness_linear_status(struct bt_mesh_model *model, in _light_lightness_linear_status() 45 static void _light_lightness_last_status(struct bt_mesh_model *model, in _light_lightness_last_status() 57 static void _light_lightness_default_status(struct bt_mesh_model *model, in _light_lightness_default_status() 69 static void _light_lightness_range_status(struct bt_mesh_model *model, in _light_lightness_range_status() 84 …s_get(uint16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model) in ble_mesh_light_lightness_get() 167 …r_get(uint16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model) in ble_mesh_light_lightness_linear_get() 250 …t_get(uint16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model) in ble_mesh_light_lightness_last_get() 285 …f_get(uint16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model) in ble_mesh_light_lightness_def_get() [all …]
|
A D | light_ctl_cli.c | 20 static void _light_ctl_status(struct bt_mesh_model *model, in _light_ctl_status() 32 static void _light_ctl_temp_status(struct bt_mesh_model *model, in _light_ctl_temp_status() 44 static void _light_ctl_default_status(struct bt_mesh_model *model, in _light_ctl_default_status() 56 static void _light_ctl_range_status(struct bt_mesh_model *model, in _light_ctl_range_status() 70 …nt16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model, set_li… in ble_mesh_light_ctl_set() 120 …l_get(uint16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model) in ble_mesh_light_ctl_get() 156 …nt16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model, set_li… in ble_mesh_light_ctl_temp_set() 204 …p_get(uint16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model) in ble_mesh_light_ctl_temp_get() 239 …nt16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model, set_li… in ble_mesh_light_ctl_def_set() 280 …f_get(uint16_t netkey_idx, uint16_t appkey_idx, uint16_t unicast_addr, struct bt_mesh_model *model) in ble_mesh_light_ctl_def_get() [all …]
|
A D | generic_onoff_cli.c | 19 static void _generic_onoff_cli_prepear_buf(struct bt_mesh_model *model, struct net_buf_simple *msg,… in _generic_onoff_cli_prepear_buf() 30 static void _generic_onoff_status(struct bt_mesh_model *model, in _generic_onoff_status() 42 …off_get(uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model) in ble_mesh_generic_onoff_get() 72 …uint16_t netkey_idx, uint16_t appkey_idx,uint16_t unicast_addr,struct bt_mesh_model *model, set_on… in ble_mesh_generic_onoff_set() 119 int ble_mesh_generic_onoff_cli_publish(struct bt_mesh_model *model, set_onoff_arg *send_arg, bool a… in ble_mesh_generic_onoff_cli_publish()
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_vendor_model.c | 71 static s16_t genie_model_analyze(struct bt_mesh_model *p_model, in genie_model_analyze() 129 static void genie_model_get(struct bt_mesh_model *model, in genie_model_get() 144 static void genie_model_set_ack(struct bt_mesh_model *model, in genie_model_set_ack() 159 static void genie_model_set_unack(struct bt_mesh_model *model, in genie_model_set_unack() 174 static void genie_model_confirm(struct bt_mesh_model *p_model, in genie_model_confirm() 206 static void genie_model_get_indicate(struct bt_mesh_model *p_model, in genie_model_get_indicate() 250 static void genie_model_confirm_tg(struct bt_mesh_model *p_model, in genie_model_confirm_tg() 294 static void genie_model_transparent(struct bt_mesh_model *model, in genie_model_transparent() 309 static void genie_model_transparent_ack(struct bt_mesh_model *p_model, in genie_model_transparent_ack()
|
/AliOS-Things-master/components/genie_service/core/src/sig_models/ |
A D | sig_model_scene_srv.c | 16 static void _scene_prepare_buf(struct bt_mesh_model *p_model, struct net_buf_simple *p_msg, bool is… in _scene_prepare_buf() 24 static void _scene_status(struct bt_mesh_model *p_model, in _scene_status() 45 static E_MESH_ERROR_TYPE _scene_analyze(struct bt_mesh_model *p_model, in _scene_analyze() 89 static void _scene_get(struct bt_mesh_model *p_model, in _scene_get() 115 static void _scene_set(struct bt_mesh_model *p_model, in _scene_set() 153 static void _scene_set_unack(struct bt_mesh_model *p_model, in _scene_set_unack()
|
A D | sig_model_onoff_srv.c | 17 static void _gen_onoff_prepear_buf(struct bt_mesh_model *p_model, struct net_buf_simple *p_msg, boo… in _gen_onoff_prepear_buf() 49 static void _gen_onoff_status(struct bt_mesh_model *p_model, in _gen_onoff_status() 67 static E_MESH_ERROR_TYPE _gen_onoff_analyze(struct bt_mesh_model *p_model, in _gen_onoff_analyze() 150 void gen_onoff_publication(struct bt_mesh_model *p_model) in gen_onoff_publication() 154 static void _gen_onoff_get(struct bt_mesh_model *p_model, in _gen_onoff_get() 186 static void _gen_onoff_set(struct bt_mesh_model *p_model, in _gen_onoff_set() 222 static void _gen_onoff_set_unack(struct bt_mesh_model *p_model, in _gen_onoff_set_unack()
|