Lines Matching refs:mesh_model

451 static void mesh_model_load_subscriptions(mesh_model_t * mesh_model){  in mesh_model_load_subscriptions()  argument
452 uint32_t tag = mesh_model_subscription_tag_for_index(mesh_model->mid); in mesh_model_load_subscriptions()
453 …_tag(btstack_tlv_singleton_context, tag, (uint8_t *) &mesh_model->subscriptions, sizeof(mesh_model in mesh_model_load_subscriptions()
459 uint16_t src = mesh_model->subscriptions[i]; in mesh_model_load_subscriptions()
516 static void mesh_model_load_publication(mesh_model_t * mesh_model){ in mesh_model_load_publication() argument
517 mesh_publication_model_t * publication = mesh_model->publication_model; in mesh_model_load_publication()
521 uint32_t tag = mesh_model_publication_tag_for_index(mesh_model->mid); in mesh_model_load_publication()
540 mesh_model_publication_start(mesh_model); in mesh_model_load_publication()
543 void mesh_model_store_publication(mesh_model_t * mesh_model){ in mesh_model_store_publication() argument
544 mesh_publication_model_t * publication = mesh_model->publication_model; in mesh_model_store_publication()
554 uint32_t tag = mesh_model_publication_tag_for_index(mesh_model->mid); in mesh_model_store_publication()
559 static void mesh_model_delete_publication(mesh_model_t * mesh_model){ in mesh_model_delete_publication() argument
560 if (mesh_model->publication_model == NULL) return; in mesh_model_delete_publication()
561 uint32_t tag = mesh_model_publication_tag_for_index(mesh_model->mid); in mesh_model_delete_publication()
791 uint8_t mesh_model_bind_appkey(mesh_model_t * mesh_model, uint16_t appkey_index){ in mesh_model_bind_appkey() argument
794 if (mesh_model->appkey_indices[i] == appkey_index) return MESH_FOUNDATION_STATUS_SUCCESS; in mesh_model_bind_appkey()
797 if (mesh_model->appkey_indices[i] == MESH_APPKEY_INVALID) { in mesh_model_bind_appkey()
798 mesh_model->appkey_indices[i] = appkey_index; in mesh_model_bind_appkey()
799 mesh_store_appkey_list(mesh_model); in mesh_model_bind_appkey()
806 void mesh_model_unbind_appkey(mesh_model_t * mesh_model, uint16_t appkey_index){ in mesh_model_unbind_appkey() argument
809 if (mesh_model->appkey_indices[i] == appkey_index) { in mesh_model_unbind_appkey()
810 mesh_model->appkey_indices[i] = MESH_APPKEY_INVALID; in mesh_model_unbind_appkey()
811 mesh_store_appkey_list(mesh_model); in mesh_model_unbind_appkey()
816 int mesh_model_contains_appkey(mesh_model_t * mesh_model, uint16_t appkey_index){ in mesh_model_contains_appkey() argument
819 if (mesh_model->appkey_indices[i] == appkey_index) return 1; in mesh_model_contains_appkey()