Home
last modified time | relevance | path

Searched refs:attribute_handle (Results 1 – 25 of 34) sorted by relevance

12

/btstack/test/att_db/
H A Datt_db_test.cpp79 static uint16_t att_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t … in att_read_callback() argument
90 static int att_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tran… in att_write_callback() argument
112 static uint16_t att_write_request(uint16_t request_type, uint16_t attribute_handle, uint16_t value_… in att_write_request() argument
114 little_endian_store_16(att_request, 1, attribute_handle); in att_write_request()
119 static uint16_t att_prepare_write_request(uint16_t request_type, uint16_t attribute_handle, uint16_… in att_prepare_write_request() argument
121 little_endian_store_16(att_request, 1, attribute_handle); in att_prepare_write_request()
327 uint16_t attribute_handle = 0x03; in TEST() local
366 att_request_len = att_write_request(ATT_WRITE_REQUEST, attribute_handle, sizeof(value), value); in TEST()
379 attribute_handle = 0x000c; // 0x2A49 in TEST()
380 att_request_len = att_write_request(ATT_WRITE_REQUEST, attribute_handle, sizeof(value), value); in TEST()
[all …]
/btstack/test/mock/
H A Dmock_att_server.c31 uint16_t mock_att_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uin… in mock_att_service_read_callback() argument
34 return (service->read_callback)(con_handle, attribute_handle, offset, buffer, buffer_size); in mock_att_service_read_callback()
37 uint16_t mock_att_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, ui… in mock_att_service_write_callback() argument
40 …return (service->write_callback)(con_handle, attribute_handle, transaction_mode, offset, (uint8_t … in mock_att_service_write_callback()
58 uint8_t att_server_indicate(hci_con_handle_t con_handle, uint16_t attribute_handle, const uint8_t *… in att_server_indicate() argument
60 UNUSED(attribute_handle); in att_server_indicate()
67 uint8_t att_server_notify(hci_con_handle_t con_handle, uint16_t attribute_handle, const uint8_t *va… in att_server_notify() argument
69 UNUSED(attribute_handle); in att_server_notify()
H A Dmock_att_server.h50 uint16_t mock_att_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uin…
52 uint16_t mock_att_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, ui…
/btstack/src/mesh/gatt-service/
H A Dmesh_proxy_service_server.c97 …h_proxy_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in mesh_proxy_service_read_callback() argument
99 UNUSED(attribute_handle); in mesh_proxy_service_read_callback()
108 if (attribute_handle == instance->data_out_client_configuration_descriptor_handle){ in mesh_proxy_service_read_callback()
114 … log_info("mesh_proxy_service_read_callback: not handled read on handle 0x%02x", attribute_handle); in mesh_proxy_service_read_callback()
118 static int mesh_proxy_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle in mesh_proxy_service_write_callback() argument
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()
148 …rite_callback: not handled write on handle 0x%02x, buffer size %d", attribute_handle, buffer_size); in mesh_proxy_service_write_callback()
H A Dmesh_provisioning_service_server.c103 …sioning_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in mesh_provisioning_service_read_callback() argument
105 UNUSED(attribute_handle); in mesh_provisioning_service_read_callback()
114 if (attribute_handle == instance->data_out_client_configuration_descriptor_handle){ in mesh_provisioning_service_read_callback()
120 …fo("mesh_provisioning_service_read_callback: not handled read on handle 0x%02x", attribute_handle); in mesh_provisioning_service_read_callback()
124 …ioning_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tra… in mesh_provisioning_service_write_callback() argument
135 if (attribute_handle == instance->data_in_client_value_handle){ in mesh_provisioning_service_write_callback()
152 if (attribute_handle == instance->data_out_client_configuration_descriptor_handle){ in mesh_provisioning_service_write_callback()
171 …rite_callback: not handled write on handle 0x%02x, buffer size %d", attribute_handle, buffer_size); in mesh_provisioning_service_write_callback()
/btstack/src/ble/gatt-service/
H A Dscan_parameters_service_server.c95 …ameters_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in scan_parameters_service_read_callback() argument
97 UNUSED(attribute_handle); in scan_parameters_service_read_callback()
101 if (attribute_handle == scan_refresh_value_handle_client_configuration){ in scan_parameters_service_read_callback()
110 …meters_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tra… in scan_parameters_service_write_callback() argument
118 if (attribute_handle == scan_interval_window_value_handle){ in scan_parameters_service_write_callback()
129 if (attribute_handle == scan_refresh_value_handle_client_configuration){ in scan_parameters_service_write_callback()
H A Dcycling_speed_and_cadence_service_server.c116 …cadence_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in cycling_speed_and_cadence_service_read_callback() argument
118 UNUSED(attribute_handle); in cycling_speed_and_cadence_service_read_callback()
122 if (attribute_handle == instance->measurement_client_configuration_descriptor_handle){ in cycling_speed_and_cadence_service_read_callback()
129 if (attribute_handle == instance->control_point_client_configuration_descriptor_handle){ in cycling_speed_and_cadence_service_read_callback()
136 if (attribute_handle == instance->feature_handle){ in cycling_speed_and_cadence_service_read_callback()
146 if (attribute_handle == instance->sensor_location_value_handle){ in cycling_speed_and_cadence_service_read_callback()
226 …adence_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tra… in cycling_speed_and_cadence_service_write_callback() argument
236 if (attribute_handle == instance->measurement_client_configuration_descriptor_handle){ in cycling_speed_and_cadence_service_write_callback()
245 if (attribute_handle == instance->control_point_client_configuration_descriptor_handle){ in cycling_speed_and_cadence_service_write_callback()
254 if (attribute_handle == instance->control_point_value_handle){ in cycling_speed_and_cadence_service_write_callback()
H A Dublox_spp_service_server.c123 …lox_spp_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in ublox_spp_service_read_callback() argument
129 if (attribute_handle == instance->fifo_client_configuration_descriptor_handle){ in ublox_spp_service_read_callback()
136 if (attribute_handle == instance->credits_client_configuration_descriptor_handle){ in ublox_spp_service_read_callback()
146 static int ublox_spp_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle,… in ublox_spp_service_write_callback() argument
158 if (attribute_handle == instance->fifo_value_handle){ in ublox_spp_service_write_callback()
168 if (attribute_handle == instance->fifo_client_configuration_descriptor_handle){ in ublox_spp_service_write_callback()
177 if (attribute_handle == instance->credits_value_handle){ in ublox_spp_service_write_callback()
194 if (attribute_handle == instance->credits_client_configuration_descriptor_handle){ in ublox_spp_service_write_callback()
H A Dbattery_service_server.c66 …battery_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in battery_service_read_callback() argument
69 if (attribute_handle == battery_value_handle){ in battery_service_read_callback()
72 if (attribute_handle == battery_value_client_configuration_handle){ in battery_service_read_callback()
78 static int battery_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, u… in battery_service_write_callback() argument
86 if (attribute_handle == battery_value_client_configuration_handle){ in battery_service_write_callback()
H A Dheart_rate_service_server.c90 …rt_rate_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in heart_rate_service_read_callback() argument
92 UNUSED(attribute_handle); in heart_rate_service_read_callback()
96 if (attribute_handle == heart_rate.measurement_client_configuration_descriptor_handle){ in heart_rate_service_read_callback()
103 if (attribute_handle == heart_rate.sensor_location_value_handle){ in heart_rate_service_read_callback()
112 static int heart_rate_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle in heart_rate_service_write_callback() argument
120 if (attribute_handle == heart_rate.measurement_client_configuration_descriptor_handle){ in heart_rate_service_write_callback()
129 if (attribute_handle == heart_rate.control_point_value_handle){ in heart_rate_service_write_callback()
H A Dtx_power_service_server.c70 …x_power_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in tx_power_service_read_callback() argument
73 if (attribute_handle == tx_power_level_value_handle){ in tx_power_service_read_callback()
76 if (attribute_handle == tx_power_level_client_configuration_handle){ in tx_power_service_read_callback()
83 static int tx_power_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, … in tx_power_service_write_callback() argument
92 if (attribute_handle == tx_power_level_client_configuration_handle){ in tx_power_service_write_callback()
H A Dnordic_spp_service_server.c78 …dic_spp_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in nordic_spp_service_read_callback() argument
83 if (attribute_handle == nordic_spp_tx_client_configuration_handle){ in nordic_spp_service_read_callback()
92 static int nordic_spp_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle in nordic_spp_service_write_callback() argument
100 if (attribute_handle == nordic_spp_rx_value_handle){ in nordic_spp_service_write_callback()
104 if (attribute_handle == nordic_spp_tx_client_configuration_handle){ in nordic_spp_service_write_callback()
H A Dbond_management_service_server.c122 …agement_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in bond_management_service_read_callback() argument
124 UNUSED(attribute_handle); in bond_management_service_read_callback()
128 if (attribute_handle == bm_supported_features_value_handle){ in bond_management_service_read_callback()
161 …gement_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tra… in bond_management_service_write_callback() argument
173 if (attribute_handle == bm_control_point_value_handle){ in bond_management_service_write_callback()
H A Dimmediate_alert_service_server.c133 static uint16_t ias_server_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, ui… in ias_server_read_callback() argument
136 if (attribute_handle == ias_server_alert_level_handle){ in ias_server_read_callback()
142 static int ias_server_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16… in ias_server_write_callback() argument
148 if (attribute_handle == ias_server_alert_level_handle){ in ias_server_write_callback()
H A Dlink_loss_service_server.c139 static uint16_t lls_server_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, ui… in lls_server_read_callback() argument
142 if (attribute_handle == lls_server_alert_level_handle){ in lls_server_read_callback()
148 static int lls_server_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16… in lls_server_write_callback() argument
154 if (attribute_handle == lls_server_alert_level_handle){ in lls_server_write_callback()
H A Dcycling_power_service_server.c223 …g_power_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in cycling_power_service_read_callback() argument
225 UNUSED(attribute_handle); in cycling_power_service_read_callback()
229 if (attribute_handle == instance->measurement_client_configuration_descriptor_handle){ in cycling_power_service_read_callback()
236 if (attribute_handle == instance->measurement_server_configuration_descriptor_handle){ in cycling_power_service_read_callback()
243 if (attribute_handle == instance->vector_client_configuration_descriptor_handle){ in cycling_power_service_read_callback()
250 if (attribute_handle == instance->control_point_client_configuration_descriptor_handle){ in cycling_power_service_read_callback()
257 if (attribute_handle == instance->feature_value_handle){ in cycling_power_service_read_callback()
264 if (attribute_handle == instance->sensor_location_value_handle){ in cycling_power_service_read_callback()
689 …_power_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tra… in cycling_power_service_write_callback() argument
701 if (attribute_handle == instance->measurement_client_configuration_descriptor_handle){ in cycling_power_service_write_callback()
[all …]
H A Dbattery_service_v1_server.c186 …tic battery_service_v1_t * battery_service_service_for_attribute_handle(uint16_t attribute_handle){ in battery_service_service_for_attribute_handle() argument
191 if (attribute_handle < item->service_handler.start_handle) continue; in battery_service_service_for_attribute_handle()
192 if (attribute_handle > item->service_handler.end_handle) continue; in battery_service_service_for_attribute_handle()
365 …battery_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in battery_service_read_callback() argument
368 battery_service_v1_t * service = battery_service_service_for_attribute_handle(attribute_handle); in battery_service_read_callback()
386 if (attribute_handle != service->characteristics[index].value_handle){ in battery_service_read_callback()
421 if (attribute_handle == service->battery_level_status_broadcast_configuration_handle){ in battery_service_read_callback()
426 if (attribute_handle != service->characteristics[index].client_configuration_handle){ in battery_service_read_callback()
434 static int battery_service_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, u… in battery_service_write_callback() argument
442 battery_service_v1_t * service = battery_service_service_for_attribute_handle(attribute_handle); in battery_service_write_callback()
[all …]
H A Ddevice_information_service_server.c101 …rmation_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t off… in device_information_service_read_callback() argument
105 …if ((device_information_fields[i].value_handle == attribute_handle) && (device_information_fields[… in device_information_service_read_callback()
/btstack/src/ble/
H A Datt_db.h148 typedef uint16_t (*att_read_callback_t)(hci_con_handle_t con_handle, uint16_t attribute_handle, uin…
171 typedef int (*att_write_callback_t)(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_…
231 uint16_t attribute_handle,
260 uint16_t attribute_handle,
322 uint16_t att_uuid_for_handle(uint16_t attribute_handle);
331 const uint8_t * gatt_server_get_const_value_for_handle(uint16_t attribute_handle, uint16_t * out_va…
440 uint16_t btp_att_get_attribute_value(att_connection_t * att_connection, uint16_t attribute_handle, …
H A Dgatt_client.c416 …8_t att_read_request(gatt_client_t *gatt_client, uint8_t request_type, uint16_t attribute_handle) { in att_read_request() argument
420 little_endian_store_16(request, 1, attribute_handle); in att_read_request()
426 … att_read_blob_request(gatt_client_t *gatt_client, uint8_t request_type, uint16_t attribute_handle, in att_read_blob_request() argument
431 little_endian_store_16(request, 1, attribute_handle); in att_read_blob_request()
466 …_signed_write_request(gatt_client_t *gatt_client, uint16_t request_type, uint16_t attribute_handle, in att_signed_write_request() argument
471 little_endian_store_16(request, 1, attribute_handle); in att_signed_write_request()
482 att_write_request(gatt_client_t *gatt_client, uint8_t request_type, uint16_t attribute_handle, uint… in att_write_request() argument
487 little_endian_store_16(request, 1, attribute_handle); in att_write_request()
504 …_prepare_write_request(gatt_client_t *gatt_client, uint8_t request_type, uint16_t attribute_handle, in att_prepare_write_request() argument
509 little_endian_store_16(request, 1, attribute_handle); in att_prepare_write_request()
[all …]
H A Datt_server.c193 …_value_indication_notify_client(uint8_t status, uint16_t client_handle, uint16_t attribute_handle){ in att_handle_value_indication_notify_client() argument
194 … btstack_packet_handler_t packet_handler = att_server_packet_handler_for_handle(attribute_handle); in att_handle_value_indication_notify_client()
204 little_endian_store_16(event, pos, attribute_handle); in att_handle_value_indication_notify_client()
742 uint16_t attribute_handle = little_endian_read_16(att_server->request_buffer, 1); in att_run_for_context() local
743 …sm_cmac_signed_write_start(csrk, att_server->request_buffer[0], attribute_handle, att_server->requ… in att_run_for_context()
1170 uint16_t attribute_handle = entry.att_handle; in att_server_persistent_ccc_restore() local
1173 att_write_callback_t callback = att_server_write_callback_for_handle(attribute_handle); in att_server_persistent_ccc_restore()
1175 …"CCC Index %u: Set Attribute handle 0x%04x to value 0x%04x", index, attribute_handle, entry.value … in att_server_persistent_ccc_restore()
1176 …(*callback)(att_connection->con_handle, attribute_handle, ATT_TRANSACTION_MODE_NONE, 0, value, siz… in att_server_persistent_ccc_restore()
1235 static uint16_t att_server_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, ui… in att_server_read_callback() argument
[all …]
H A Datt_server.h144 uint8_t att_server_notify(hci_con_handle_t con_handle, uint16_t attribute_handle, const uint8_t *va…
166 uint8_t att_server_indicate(hci_con_handle_t con_handle, uint16_t attribute_handle, const uint8_t *…
/btstack/src/le-audio/gatt-service/
H A Dbroadcast_audio_scan_service_server.c120 … bass_server_source_t * bass_server_find_receive_state_for_value_handle(uint16_t attribute_handle){ in bass_server_find_receive_state_for_value_handle() argument
123 if (attribute_handle == bass_sources[i].bass_receive_state_handle){ in bass_server_find_receive_state_for_value_handle()
130 …urce_t * bass_server_find_receive_state_for_client_configuration_handle(uint16_t attribute_handle){ in bass_server_find_receive_state_for_client_configuration_handle() argument
131 if (attribute_handle == 0){ in bass_server_find_receive_state_for_client_configuration_handle()
136 if (bass_sources[i].bass_receive_state_client_configuration_handle == attribute_handle){ in bass_server_find_receive_state_for_client_configuration_handle()
283 static uint16_t bass_server_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, u… in bass_server_read_callback() argument
286 … bass_server_source_t * source = bass_server_find_receive_state_for_value_handle(attribute_handle); in bass_server_read_callback()
291 source = bass_server_find_receive_state_for_client_configuration_handle(attribute_handle); in bass_server_read_callback()
354 static int bass_server_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint1… in bass_server_write_callback() argument
356 if (attribute_handle != 0 && attribute_handle != bass_audio_scan_control_point_handle){ in bass_server_write_callback()
[all …]
/btstack/test/security_manager_sc/
H A Dsm_test.c173 static uint16_t att_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t … in att_read_callback() argument
176 …printf("READ Callback, handle %04x, offset %u, buffer size %u\n", attribute_handle, offset, buffer… in att_read_callback()
177 switch (attribute_handle){ in att_read_callback()
185 static int att_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tran… in att_write_callback() argument
187 …printf("WRITE Callback, handle %04x, mode %u, offset %u, data: ", attribute_handle, transaction_mo… in att_write_callback()
190 switch (attribute_handle){ in att_write_callback()
/btstack/test/fuzz/
H A Dfuzz_att_db.c11 static uint16_t att_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t … in att_read_callback() argument
15 static int att_write_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t tran… in att_write_callback() argument

12