/AliOS-Things-master/components/genie_service/core/src/sig_models/ |
A D | sig_model_scene_srv.c | 24 static void _scene_status(struct bt_mesh_model *p_model, in _scene_status() argument 29 BT_DBG("addr(0x%04x)", bt_mesh_model_elem(p_model)->addr); in _scene_status() 31 _scene_prepare_buf(p_model, p_msg, is_ack); in _scene_status() 33 if (bt_mesh_model_send(p_model, p_ctx, p_msg, NULL, NULL)) in _scene_status() 52 if (!p_model || !p_buf) in _scene_analyze() 55 p_elem = p_model->user_data; in _scene_analyze() 89 static void _scene_get(struct bt_mesh_model *p_model, in _scene_get() argument 111 _scene_status(p_model, p_ctx, 0); in _scene_get() 115 static void _scene_set(struct bt_mesh_model *p_model, in _scene_set() argument 144 _scene_status(p_model, p_ctx, 1); in _scene_set() [all …]
|
A D | sig_model_lightness_srv.c | 49 static void _lightness_status(struct bt_mesh_model *p_model, in _lightness_status() argument 56 _lightness_prepare_buf(p_model, p_msg, is_ack); in _lightness_status() 76 if (!p_model || !p_buf) in _lightness_analyze() 79 p_elem = p_model->user_data; in _lightness_analyze() 142 static void _lightness_get(struct bt_mesh_model *p_model, in _lightness_get() argument 151 if (!p_model || !p_model->user_data) in _lightness_get() 171 _lightness_status(p_model, p_ctx, 0); in _lightness_get() 174 static void _lightness_set(struct bt_mesh_model *p_model, in _lightness_set() argument 182 if (!p_model || !p_model->user_data) in _lightness_set() 208 _lightness_status(p_model, p_ctx, 1); in _lightness_set() [all …]
|
A D | sig_model_light_ctl_srv.c | 51 static void _ctl_status(struct bt_mesh_model *p_model, in _ctl_status() argument 58 _ctl_prepare_buf(p_model, p_msg, is_ack); in _ctl_status() 80 if (!p_model || !p_buf) in _ctl_analyze() 83 p_elem = p_model->user_data; in _ctl_analyze() 157 static void _ctl_get(struct bt_mesh_model *p_model, in _ctl_get() argument 166 if (!p_model || !p_model->user_data) in _ctl_get() 186 _ctl_status(p_model, p_ctx, 0); in _ctl_get() 189 static void _ctl_set(struct bt_mesh_model *p_model, in _ctl_set() argument 197 if (!p_model || !p_model->user_data) in _ctl_set() 223 _ctl_status(p_model, p_ctx, 1); in _ctl_set() [all …]
|
A D | sig_model_onoff_srv.c | 49 static void _gen_onoff_status(struct bt_mesh_model *p_model, in _gen_onoff_status() argument 54 BT_DBG("addr(0x%04x)", bt_mesh_model_elem(p_model)->addr); in _gen_onoff_status() 56 _gen_onoff_prepear_buf(p_model, p_msg, is_ack); in _gen_onoff_status() 78 if (!p_model || !p_buf) in _gen_onoff_analyze() 83 p_elem = p_model->user_data; in _gen_onoff_analyze() 150 void gen_onoff_publication(struct bt_mesh_model *p_model) in gen_onoff_publication() argument 154 static void _gen_onoff_get(struct bt_mesh_model *p_model, in _gen_onoff_get() argument 161 if (!p_model || !p_model->user_data) in _gen_onoff_get() 182 _gen_onoff_status(p_model, p_ctx, 0); in _gen_onoff_get() 186 static void _gen_onoff_set(struct bt_mesh_model *p_model, in _gen_onoff_set() argument [all …]
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_vendor_model.c | 79 if (!p_model || !p_buf || !p_model->user_data) in genie_model_analyze() 88 p_elem = p_model->user_data; in genie_model_analyze() 115 msg.p_model = p_model; in genie_model_analyze() 181 if (!p_model || !p_model->user_data) in genie_model_confirm() 202 msg.p_model = p_model; in genie_model_confirm() 214 if (!p_model || !p_model->user_data) in genie_model_get_indicate() 237 msg.p_model = p_model; in genie_model_get_indicate() 257 if (!p_model || !p_model->user_data) in genie_model_confirm_tg() 282 msg.p_model = p_model; in genie_model_confirm_tg() 316 if (!p_model || !p_model->user_data) in genie_model_transparent_ack() [all …]
|
A D | genie_transport.c | 127 …struct bt_mesh_model *p_model = bt_mesh_model_find_vnd(p_model_msg->p_elem, CONFIG_MESH_VENDOR_COM… in genie_transport_model_send() local 130 if (!p_model) in genie_transport_model_send() 136 …BT_DBG("p_model:%p, cid:0x%x, id:0x%x, retry:%d", p_model, p_model->vnd.company, p_model->vnd.id, … in genie_transport_model_send() 149 ctx.app_idx = bt_mesh_model_get_appkey_id(p_model_msg->p_elem, p_model); in genie_transport_model_send() 166 err = bt_mesh_model_send(p_model, &ctx, p_msg, &model_send_cb, NULL); in genie_transport_model_send() 168 err = bt_mesh_model_send(p_model, &ctx, p_msg, NULL, NULL); in genie_transport_model_send()
|
A D | genie_event.c | 280 …sig_model_element_state_t *p_elem_state = (sig_model_element_state_t *)p_vnd_mesg->p_model->user_d… in genie_down_msg()
|
/AliOS-Things-master/components/genie_service/sal/src/ |
A D | genie_sal_ble.c | 109 struct bt_mesh_model *p_model = NULL; in genie_sal_ble_send_msg() local 171 p_model = p_element->vnd_models; in genie_sal_ble_send_msg() 175 p_model = p_element->models; in genie_sal_ble_send_msg() 178 if (p_model == NULL) in genie_sal_ble_send_msg() 184 if (bt_mesh_model_send(p_model, &ctx, msg, NULL, NULL)) in genie_sal_ble_send_msg()
|
/AliOS-Things-master/components/genie_service/core/inc/sig_models/ |
A D | sig_model_onoff_srv.h | 23 void gen_onoff_publication(struct bt_mesh_model *p_model);
|
/AliOS-Things-master/components/genie_service/core/inc/ |
A D | genie_transport.h | 74 struct bt_mesh_model *p_model; //It is current model member
|
/AliOS-Things-master/solutions/genie_mesh_demo/light_ctl/ |
A D | light.c | 445 if (p_msg && p_msg->p_model && p_msg->p_model->user_data) { in light_ctl_event_handler() 446 … sig_model_element_state_t *p_elem_state = (sig_model_element_state_t *)p_msg->p_model->user_data; in light_ctl_event_handler()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/vendor_model/ |
A D | vendor_model_cli.c | 320 static s16_t _vendor_model_analyze(struct bt_mesh_model *p_model, in _vendor_model_analyze() argument 327 if (!p_model || !p_buf) { in _vendor_model_analyze()
|
A D | vendor_model_srv.c | 315 static s16_t _vendor_model_analyze(struct bt_mesh_model *p_model, in _vendor_model_analyze() argument 322 if (!p_model || !p_buf) { in _vendor_model_analyze()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/api/mesh/ |
A D | access.h | 411 u16_t bt_mesh_model_get_appkey_id(struct bt_mesh_elem *elem, struct bt_mesh_model *p_model);
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | access.c | 844 u16_t bt_mesh_model_get_appkey_id(struct bt_mesh_elem *elem, struct bt_mesh_model *p_model) in bt_mesh_model_get_appkey_id() argument
|