Lines Matching refs:mesh_model
149 uint8_t mesh_access_get_element_index(mesh_model_t * mesh_model){ in mesh_access_get_element_index() argument
150 return mesh_model->element->element_index; in mesh_access_get_element_index()
153 uint16_t mesh_access_get_element_address(mesh_model_t * mesh_model){ in mesh_access_get_element_address() argument
154 return mesh_node_get_primary_element_address() + mesh_model->element->element_index; in mesh_access_get_element_address()
187 void mesh_model_reset_appkeys(mesh_model_t * mesh_model){ in mesh_model_reset_appkeys() argument
190 mesh_model->appkey_indices[i] = MESH_APPKEY_INVALID; in mesh_model_reset_appkeys()
194 void mesh_element_add_model(mesh_element_t * element, mesh_model_t * mesh_model){ in mesh_element_add_model() argument
196 mesh_model_reset_appkeys(mesh_model); in mesh_element_add_model()
198 if (mesh_model_is_bluetooth_sig(mesh_model->model_identifier)){ in mesh_element_add_model()
203 mesh_model->mid = mid_counter++; in mesh_element_add_model()
204 mesh_model->element = element; in mesh_element_add_model()
205 btstack_linked_list_add_tail(&element->models, (btstack_linked_item_t *) mesh_model); in mesh_element_add_model()
246 int mesh_model_contains_subscription(mesh_model_t * mesh_model, uint16_t address){ in mesh_model_contains_subscription() argument
249 if (mesh_model->subscriptions[i] == address) return 1; in mesh_model_contains_subscription()