Lines Matching refs:instance

91     mesh_proxy_t * instance = &mesh_proxy;  in mesh_proxy_service_get_instance_for_con_handle()  local
93 instance->con_handle = con_handle; in mesh_proxy_service_get_instance_for_con_handle()
94 return instance; in mesh_proxy_service_get_instance_for_con_handle()
103 mesh_proxy_t * instance = mesh_proxy_service_get_instance_for_con_handle(con_handle); in mesh_proxy_service_read_callback() local
104 if (!instance){ in mesh_proxy_service_read_callback()
108 if (attribute_handle == instance->data_out_client_configuration_descriptor_handle){ in mesh_proxy_service_read_callback()
110 … little_endian_store_16(buffer, 0, instance->data_out_client_configuration_descriptor_value); in mesh_proxy_service_read_callback()
123 mesh_proxy_t * instance = mesh_proxy_service_get_instance_for_con_handle(con_handle); in mesh_proxy_service_write_callback() local
124 if (!instance){ in mesh_proxy_service_write_callback()
129 if (attribute_handle == instance->data_in_client_value_handle){ in mesh_proxy_service_write_callback()
135 if (attribute_handle == instance->data_out_client_configuration_descriptor_handle){ in mesh_proxy_service_write_callback()
139 instance->data_out_client_configuration_descriptor_value = little_endian_read_16(buffer, 0); in mesh_proxy_service_write_callback()
140 …service_write_callback: data out notify enabled %d, con handle 0x%02x", instance->data_out_client_… in mesh_proxy_service_write_callback()
141 if (instance->data_out_client_configuration_descriptor_value){ in mesh_proxy_service_write_callback()
153 mesh_proxy_t * instance = &mesh_proxy; in mesh_proxy_service_server_init() local
154 if (!instance){ in mesh_proxy_service_server_init()
166instance->data_in_client_value_handle = gatt_server_get_value_handle_for_characteristic_with_uuid1… in mesh_proxy_service_server_init()
167instance->data_out_client_value_handle = gatt_server_get_value_handle_for_characteristic_with_uuid… in mesh_proxy_service_server_init()
168instance->data_out_client_configuration_descriptor_handle = gatt_server_get_client_configuration_h… in mesh_proxy_service_server_init()
170 log_info("DataIn value handle 0x%02x", instance->data_in_client_value_handle); in mesh_proxy_service_server_init()
171 log_info("DataOut value handle 0x%02x", instance->data_out_client_value_handle); in mesh_proxy_service_server_init()
172 …log_info("DataOut CC value handle 0x%02x", instance->data_out_client_configuration_descriptor_hand… in mesh_proxy_service_server_init()
183 mesh_proxy_t * instance = mesh_proxy_service_get_instance_for_con_handle(con_handle); in mesh_proxy_service_server_send_proxy_pdu() local
184 if (!instance){ in mesh_proxy_service_server_send_proxy_pdu()
188 …att_server_notify(instance->con_handle, instance->data_out_client_value_handle, proxy_pdu, proxy_p… in mesh_proxy_service_server_send_proxy_pdu()
194 mesh_proxy_t * instance = mesh_proxy_service_get_instance_for_con_handle(con_handle); in mesh_proxy_service_can_send_now() local
195 if (!instance){ in mesh_proxy_service_can_send_now()
210 mesh_proxy_t * instance = mesh_proxy_service_get_instance_for_con_handle(con_handle); in mesh_proxy_service_server_request_can_send_now() local
211 if (!instance){ in mesh_proxy_service_server_request_can_send_now()
215 instance->pdu_response_callback.callback = &mesh_proxy_service_can_send_now; in mesh_proxy_service_server_request_can_send_now()
216 instance->pdu_response_callback.context = (void*) (uintptr_t) con_handle; in mesh_proxy_service_server_request_can_send_now()
217 att_server_register_can_send_now_callback(&instance->pdu_response_callback, con_handle); in mesh_proxy_service_server_request_can_send_now()