Home
last modified time | relevance | path

Searched refs:attr_handle (Results 1 – 25 of 46) sorted by relevance

12

/hal_espressif-3.4.0/components/protocomm/src/transports/
Dprotocomm_nimble.c41 uint16_t attr_handle; member
47 static struct data_mbuf *find_attr_with_handle(uint16_t attr_handle) in find_attr_with_handle() argument
51 if (cur->attr_handle == attr_handle) { in find_attr_with_handle()
94 gatt_svr_chr_access(uint16_t conn_handle, uint16_t attr_handle,
98 gatt_svr_dsc_access(uint16_t conn_handle, uint16_t attr_handle,
133 static int simple_ble_gatts_set_attr_value(uint16_t attr_handle, ssize_t outlen, in simple_ble_gatts_set_attr_value() argument
136 struct data_mbuf *attr_mbuf = find_attr_with_handle(attr_handle); in simple_ble_gatts_set_attr_value()
144 attr_mbuf->attr_handle = attr_handle; in simple_ble_gatts_set_attr_value()
153 static int simple_ble_gatts_get_attr_value(uint16_t attr_handle, ssize_t in simple_ble_gatts_get_attr_value() argument
156 struct data_mbuf *attr_mbuf = find_attr_with_handle(attr_handle); in simple_ble_gatts_get_attr_value()
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/api/include/api/
Desp_gatts_api.h146 uint16_t attr_handle; /*!< Included service attribute handle */ member
155 uint16_t attr_handle; /*!< Characteristic attribute handle */ member
165 uint16_t attr_handle; /*!< Descriptor attribute handle */ member
271 uint16_t attr_handle; /*!< The attribute handle */ member
487 …p_err_t esp_ble_gatts_send_indicate(esp_gatt_if_t gatts_if, uint16_t conn_id, uint16_t attr_handle,
521 esp_err_t esp_ble_gatts_set_attr_value(uint16_t attr_handle, uint16_t length, const uint8_t *value);
535 esp_gatt_status_t esp_ble_gatts_get_attr_value(uint16_t attr_handle, uint16_t *length, const uint8_…
/hal_espressif-3.4.0/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/
Dgatt_svr.c46 gatt_svr_read_write_long_test(uint16_t conn_handle, uint16_t attr_handle,
96 gatt_svr_chr_write(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_write() argument
117 gatt_svr_read_write_long_test(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_read_write_long_test() argument
130 rc = gatt_svr_chr_write(conn_handle, attr_handle, in gatt_svr_read_write_long_test()
145 rc = gatt_svr_chr_write(conn_handle, attr_handle, in gatt_svr_read_write_long_test()
Dmain.c291 event->subscribe.cur_notify, event->subscribe.attr_handle); in gatts_gap_event()
292 if (event->subscribe.attr_handle == notify_handle) { in gatts_gap_event()
299 } else if (event->subscribe.attr_handle != notify_handle) { in gatts_gap_event()
/hal_espressif-3.4.0/examples/bluetooth/nimble/blehr/main/
Dgatt_svr.c34 gatt_svr_chr_access_heart_rate(uint16_t conn_handle, uint16_t attr_handle,
38 gatt_svr_chr_access_device_info(uint16_t conn_handle, uint16_t attr_handle,
91 gatt_svr_chr_access_heart_rate(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_heart_rate() argument
112 gatt_svr_chr_access_device_info(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_device_info() argument
Dmain.c217 if (event->subscribe.attr_handle == hrs_hrm_handle) { in blehr_gap_event()
220 } else if (event->subscribe.attr_handle != hrs_hrm_handle) { in blehr_gap_event()
/hal_espressif-3.4.0/components/bt/host/bluedroid/api/
Desp_gatts_api.c248 …p_err_t esp_ble_gatts_send_indicate(esp_gatt_if_t gatts_if, uint16_t conn_id, uint16_t attr_handle, in esp_ble_gatts_send_indicate() argument
271 arg.send_ind.attr_handle = attr_handle; in esp_ble_gatts_send_indicate()
302 esp_err_t esp_ble_gatts_set_attr_value(uint16_t attr_handle, uint16_t length, const uint8_t *value) in esp_ble_gatts_set_attr_value() argument
312 arg.set_attr_val.handle = attr_handle; in esp_ble_gatts_set_attr_value()
320 esp_gatt_status_t esp_ble_gatts_get_attr_value(uint16_t attr_handle, uint16_t *length, const uint8_… in esp_ble_gatts_get_attr_value() argument
324 if (attr_handle == ESP_GATT_ILLEGAL_HANDLE) { in esp_ble_gatts_get_attr_value()
329 return btc_gatts_get_attr_value(attr_handle, length, (uint8_t **)value); in esp_ble_gatts_get_attr_value()
/hal_espressif-3.4.0/components/bt/common/btc/profile/esp/blufi/nimble_host/
Desp_blufi.c41 static int gatt_svr_access_cb(uint16_t conn_handle, uint16_t attr_handle,
106 static size_t write_value(uint16_t conn_handle, uint16_t attr_handle, in write_value() argument
135 static size_t read_value(uint16_t conn_handle, uint16_t attr_handle, in read_value() argument
163 static int gatt_svr_access_cb(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_access_cb() argument
169 return read_value(conn_handle, attr_handle, in gatt_svr_access_cb()
172 return write_value(conn_handle, attr_handle, in gatt_svr_access_cb()
310 event->subscribe.attr_handle, in esp_blufi_gap_event()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gatt/
Dgatt_api.c568 tGATT_STATUS GATTS_HandleValueIndication (UINT16 conn_id, UINT16 attr_handle, UINT16 val_len, UINT… in GATTS_HandleValueIndication() argument
586 if (! GATT_HANDLE_IS_VALID (attr_handle)) { in GATTS_HandleValueIndication()
591 indication.handle = attr_handle; in GATTS_HandleValueIndication()
635 tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle, in GATTS_HandleValueNotification() argument
653 if (GATT_HANDLE_IS_VALID (attr_handle)) { in GATTS_HandleValueNotification()
654 notif.handle = attr_handle; in GATTS_HandleValueNotification()
726 tGATT_STATUS GATTS_SetAttributeValue(UINT16 attr_handle, UINT16 length, UINT8 *value) in GATTS_SetAttributeValue() argument
732 attr_handle, length); in GATTS_SetAttributeValue()
736 if ((p_decl = gatt_find_hdl_buffer_by_attr_handle(attr_handle)) == NULL) { in GATTS_SetAttributeValue()
741 status = gatts_set_attribute_value(&p_decl->svc_db, attr_handle, length, value); in GATTS_SetAttributeValue()
[all …]
Dgatt_db.c719 tGATT_STATUS gatts_set_attribute_value(tGATT_SVC_DB *p_db, UINT16 attr_handle, in gatts_set_attribute_value() argument
740 if (p_cur->handle == attr_handle) { in gatts_set_attribute_value()
786 tGATT_STATUS gatts_get_attribute_value(tGATT_SVC_DB *p_db, UINT16 attr_handle, in gatts_get_attribute_value() argument
791 GATT_TRACE_DEBUG("attr_handle = %x\n", attr_handle); in gatts_get_attribute_value()
816 if (p_cur->handle == attr_handle) { in gatts_get_attribute_value()
856 BOOLEAN gatts_is_auto_response(UINT16 attr_handle) in gatts_is_auto_response() argument
861 if ((p_decl = gatt_find_hdl_buffer_by_attr_handle(attr_handle)) == NULL) { in gatts_is_auto_response()
884 if (p_cur->handle == attr_handle) { in gatts_is_auto_response()
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/gatt_server/main/
Dgatts_demo.c431 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_a_event_handler()
432 gl_profile_tab[PROFILE_A_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_a_event_handler()
435 …esp_err_t get_attr_ret = esp_ble_gatts_get_attr_value(param->add_char.attr_handle, &length, &prf_… in gatts_profile_a_event_handler()
452 gl_profile_tab[PROFILE_A_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_a_event_handler()
454 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_a_event_handler()
599 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_b_event_handler()
601 gl_profile_tab[PROFILE_B_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_b_event_handler()
609 gl_profile_tab[PROFILE_B_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_b_event_handler()
611 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_b_event_handler()
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/gatt_server/
DREADME.md82 I (952) GATTS_DEMO: ADD_CHAR_EVT, status 0, attr_handle 42, service_handle 40
94 I (982) GATTS_DEMO: ADD_DESCR_EVT, status 0, attr_handle 43, service_handle 40
98 I (1002) GATTS_DEMO: ADD_CHAR_EVT, status 0, attr_handle 46, service_handle 44
100 I (1012) GATTS_DEMO: ADD_DESCR_EVT, status 0, attr_handle 47, service_handle 44
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/
Dmain.c353 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_a_event_handler()
354 gl_profile_tab[PROFILE_A_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_a_event_handler()
365 gl_profile_tab[PROFILE_A_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_a_event_handler()
367 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_a_event_handler()
500 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_b_event_handler()
502 gl_profile_tab[PROFILE_B_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_b_event_handler()
510 gl_profile_tab[PROFILE_B_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_b_event_handler()
512 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_b_event_handler()
/hal_espressif-3.4.0/examples/system/ota/advanced_https_ota/main/ble_helper/
Dbluedroid_gatts.c267 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_a_event_handler()
268 gl_profile_tab[PROFILE_A_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_a_event_handler()
271 …esp_err_t get_attr_ret = esp_ble_gatts_get_attr_value(param->add_char.attr_handle, &length, &prf_… in gatts_profile_a_event_handler()
288 gl_profile_tab[PROFILE_A_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_a_event_handler()
290 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_a_event_handler()
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_gatts.h113 uint16_t attr_handle; member
173 esp_gatt_status_t btc_gatts_get_attr_value(uint16_t attr_handle, uint16_t *length, uint8_t **value);
/hal_espressif-3.4.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_api.c479 void BTA_SetAttributeValue(UINT16 attr_handle, UINT16 length, UINT8 *value) in BTA_SetAttributeValue() argument
487 p_buf->hdr.layer_specific = attr_handle; in BTA_SetAttributeValue()
500 tBTA_GATT_STATUS BTA_GetAttributeValue(UINT16 attr_handle, UINT16 *length, UINT8 **value) in BTA_GetAttributeValue() argument
502 return bta_gatts_get_attr_value(attr_handle, length, value); in BTA_GetAttributeValue()
/hal_espressif-3.4.0/examples/bluetooth/nimble/bleprph/main/
Dgatt_svr.c56 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle,
109 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_sec_test() argument
/hal_espressif-3.4.0/examples/bluetooth/nimble/bleprph_wifi_coex/main/
Dgatt_svr.c57 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle,
110 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_sec_test() argument
/hal_espressif-3.4.0/examples/bluetooth/nimble/ble_spp/spp_server/main/
Dgatt_svr.c53 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle,
106 gatt_svr_chr_access_sec_test(uint16_t conn_handle, uint16_t attr_handle, in gatt_svr_chr_access_sec_test() argument
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/include/stack/
Dgatt_api.h863 UINT16 attr_handle,
880 extern tGATT_STATUS GATTS_HandleValueNotification (UINT16 conn_id, UINT16 attr_handle,
915 tGATT_STATUS GATTS_SetAttributeValue(UINT16 attr_handle, UINT16 length, UINT8 *value);
931 tGATT_STATUS GATTS_GetAttributeValue(UINT16 attr_handle, UINT16 *length, UINT8 **value);
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/coex/gattc_gatts_coex/main/
Dgattc_gatts_coex.c704 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_a_event_handler()
705 gatts_profile_tab[GATTS_PROFILE_A_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_a_event_handler()
717 gatts_profile_tab[GATTS_PROFILE_A_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_a_event_handler()
719 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_a_event_handler()
845 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_b_event_handler()
847 gatts_profile_tab[GATTS_PROFILE_B_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_b_event_handler()
855 gatts_profile_tab[GATTS_PROFILE_B_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_b_event_handler()
857 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_b_event_handler()
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/
Dexample_ble_server_throughput.c498 … param->add_char.status, param->add_char.attr_handle, param->add_char.service_handle); in gatts_profile_a_event_handler()
499 gl_profile_tab[PROFILE_A_APP_ID].char_handle = param->add_char.attr_handle; in gatts_profile_a_event_handler()
502 …esp_err_t get_attr_ret = esp_ble_gatts_get_attr_value(param->add_char.attr_handle, &length, &prf_… in gatts_profile_a_event_handler()
520 gl_profile_tab[PROFILE_A_APP_ID].descr_handle = param->add_char_descr.attr_handle; in gatts_profile_a_event_handler()
522 …param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_han… in gatts_profile_a_event_handler()
/hal_espressif-3.4.0/examples/bluetooth/nimble/ble_spp/spp_client/main/
Dpeer.c26 peer_svc_find_range(struct peer *peer, uint16_t attr_handle);
471 peer_svc_find_range(struct peer *peer, uint16_t attr_handle) in peer_svc_find_range() argument
476 if (svc->svc.start_handle <= attr_handle && in peer_svc_find_range()
477 svc->svc.end_handle >= attr_handle) { in peer_svc_find_range()
/hal_espressif-3.4.0/examples/bluetooth/nimble/blecent/main/
Dpeer.c39 peer_svc_find_range(struct peer *peer, uint16_t attr_handle);
484 peer_svc_find_range(struct peer *peer, uint16_t attr_handle) in peer_svc_find_range() argument
489 if (svc->svc.start_handle <= attr_handle && in peer_svc_find_range()
490 svc->svc.end_handle >= attr_handle) { in peer_svc_find_range()
/hal_espressif-3.4.0/examples/bluetooth/nimble/throughput_app/blecent_throughput/main/
Dpeer.c26 peer_svc_find_range(struct peer *peer, uint16_t attr_handle);
472 peer_svc_find_range(struct peer *peer, uint16_t attr_handle) in peer_svc_find_range() argument
477 if (svc->svc.start_handle <= attr_handle && in peer_svc_find_range()
478 svc->svc.end_handle >= attr_handle) { in peer_svc_find_range()

12