Home
last modified time | relevance | path

Searched refs:req_data (Results 1 – 15 of 15) sorted by relevance

/hal_espressif-3.4.0/components/bt/common/btc/profile/esp/blufi/bluedroid_host/
Desp_blufi.c153 rsp.attr_value.handle = p_data->req_data.p_data->read_req.handle; in blufi_profile_cb()
156 BTA_GATTS_SendRsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in blufi_profile_cb()
157 p_data->req_data.status, &rsp); in blufi_profile_cb()
160 if (p_data->req_data.p_data->write_req.is_prep) { in blufi_profile_cb()
171 if (p_data->req_data.p_data->write_req.offset > BLUFI_PREPAIR_BUF_MAX_SIZE) { in blufi_profile_cb()
173 …} else if ((p_data->req_data.p_data->write_req.offset + p_data->req_data.p_data->write_req.len) > … in blufi_profile_cb()
179 rsp.attr_value.handle = p_data->req_data.p_data->write_req.handle; in blufi_profile_cb()
180 rsp.attr_value.len = p_data->req_data.p_data->write_req.len; in blufi_profile_cb()
181 rsp.attr_value.offset = p_data->req_data.p_data->write_req.offset; in blufi_profile_cb()
182 …memcpy(rsp.attr_value.value, p_data->req_data.p_data->write_req.value, p_data->req_data.p_data->wr… in blufi_profile_cb()
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gatts.c522 p_dest_data->req_data.p_data = osi_malloc(sizeof(tBTA_GATTS_REQ_DATA)); in btc_gatts_cb_param_copy_req()
523 if (p_dest_data->req_data.p_data != NULL) { in btc_gatts_cb_param_copy_req()
524 memcpy(p_dest_data->req_data.p_data, p_src_data->req_data.p_data, in btc_gatts_cb_param_copy_req()
545 if (p_data && p_data->req_data.p_data) { in btc_gatts_cb_param_copy_free()
546 osi_free(p_data->req_data.p_data); in btc_gatts_cb_param_copy_free()
770 gatts_if = BTC_GATT_GET_GATT_IF(p_data->req_data.conn_id); in btc_gatts_cb_handler()
771 param.read.conn_id = BTC_GATT_GET_CONN_ID(p_data->req_data.conn_id); in btc_gatts_cb_handler()
772 param.read.trans_id = p_data->req_data.trans_id; in btc_gatts_cb_handler()
773 memcpy(param.read.bda, p_data->req_data.remote_bda, ESP_BD_ADDR_LEN); in btc_gatts_cb_handler()
774 param.read.handle = p_data->req_data.p_data->read_req.handle; in btc_gatts_cb_handler()
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/std/battery/
Dbattery_prf.c167 UINT32 trans_id = p_data->req_data.trans_id; in bas_gatts_callback()
168 UINT16 conn_id = p_data->req_data.conn_id; in bas_gatts_callback()
169 UINT16 handle = p_data->req_data.p_data->read_req.handle; in bas_gatts_callback()
170 bool is_long = p_data->req_data.p_data->read_req.is_long; in bas_gatts_callback()
178 p_value.offset = p_data->req_data.p_data->read_req.offset; in bas_gatts_callback()
179 dis_s_read_attr_value(p_data->req_data.p_data, &p_value, trans_id, conn_id); in bas_gatts_callback()
181 bas_s_read_attr_value(p_data->req_data.p_data, trans_id, conn_id); in bas_gatts_callback()
188 UINT32 trans_id = p_data->req_data.trans_id; in bas_gatts_callback()
189 UINT16 conn_id = p_data->req_data.conn_id; in bas_gatts_callback()
190 UINT16 handle = p_data->req_data.p_data->write_req.handle; in bas_gatts_callback()
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/esp/ble_button/
Dbutton_pro.c91 rsp.attr_value.handle = p_data->req_data.p_data->read_req.handle; in button_profile_cb()
93 esp_ble_gatts_send_rsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in button_profile_cb()
94 p_data->req_data.status, &rsp); in button_profile_cb()
97 esp_ble_gatts_send_rsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in button_profile_cb()
98 p_data->req_data.status, NULL); in button_profile_cb()
100 for (int i = 0; i < p_data->req_data.p_data->write_req.len; i++) { in button_profile_cb()
101 BTC_TRACE_ERROR("%x", p_data->req_data.p_data->write_req.value[i]); in button_profile_cb()
104 if (p_data->req_data.p_data->write_req.handle == button_cb_env.button_inst.but_wirt_hdl) { in button_profile_cb()
106 p_rec_data = &p_data->req_data.p_data->write_req.value[0]; in button_profile_cb()
/hal_espressif-3.4.0/components/wifi_provisioning/src/
Dwifi_config.c153 wifi_prov_config_set_data_t req_data; in cmd_set_config_handler() local
154 memset(&req_data, 0, sizeof(req_data)); in cmd_set_config_handler()
163 req->cmd_set_config->bssid.len != sizeof(req_data.bssid)) { in cmd_set_config_handler()
165 } else if (req->cmd_set_config->ssid.len >= sizeof(req_data.ssid)) { in cmd_set_config_handler()
167 } else if (req->cmd_set_config->passphrase.len >= sizeof(req_data.password)) { in cmd_set_config_handler()
173 memcpy(req_data.ssid, req->cmd_set_config->ssid.data, in cmd_set_config_handler()
175 memcpy(req_data.password, req->cmd_set_config->passphrase.data, in cmd_set_config_handler()
177 memcpy(req_data.bssid, req->cmd_set_config->bssid.data, in cmd_set_config_handler()
179 req_data.channel = req->cmd_set_config->channel; in cmd_set_config_handler()
180 if (h->set_config_handler(&req_data, &h->ctx) == ESP_OK) { in cmd_set_config_handler()
Dhandlers.c93 static esp_err_t set_config_handler(const wifi_prov_config_set_data_t *req_data, wifi_prov_ctx_t **… in set_config_handler() argument
113 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
116 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
120 strlcpy((char *) wifi_cfg->sta.password, req_data->password, sizeof(wifi_cfg->sta.password)); in set_config_handler()
/hal_espressif-3.4.0/examples/provisioning/legacy/ble_prov/main/
Dapp_prov_handlers.c85 static esp_err_t set_config_handler(const wifi_prov_config_set_data_t *req_data, wifi_prov_ctx_t **… in set_config_handler() argument
99 req_data->ssid, req_data->password); in set_config_handler()
106 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
109 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
111 strlcpy((char *) wifi_cfg->sta.password, req_data->password, sizeof(wifi_cfg->sta.password)); in set_config_handler()
/hal_espressif-3.4.0/examples/provisioning/legacy/console_prov/main/
Dapp_prov_handlers.c85 static esp_err_t set_config_handler(const wifi_prov_config_set_data_t *req_data, wifi_prov_ctx_t **… in set_config_handler() argument
99 req_data->ssid, req_data->password); in set_config_handler()
106 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
109 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
111 strlcpy((char *) wifi_cfg->sta.password, req_data->password, sizeof(wifi_cfg->sta.password)); in set_config_handler()
/hal_espressif-3.4.0/examples/provisioning/legacy/softap_prov/main/
Dapp_prov_handlers.c85 static esp_err_t set_config_handler(const wifi_prov_config_set_data_t *req_data, wifi_prov_ctx_t **… in set_config_handler() argument
99 req_data->ssid, req_data->password); in set_config_handler()
106 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
109 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
111 strlcpy((char *) wifi_cfg->sta.password, req_data->password, sizeof(wifi_cfg->sta.password)); in set_config_handler()
/hal_espressif-3.4.0/examples/provisioning/legacy/custom_config/main/
Dapp_prov_handlers.c97 static esp_err_t set_config_handler(const wifi_prov_config_set_data_t *req_data, wifi_prov_ctx_t **… in set_config_handler() argument
111 req_data->ssid, req_data->password); in set_config_handler()
118 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
121 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
123 strlcpy((char *) wifi_cfg->sta.password, req_data->password, sizeof(wifi_cfg->sta.password)); in set_config_handler()
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/esp/wechat_AirSync/
Dwx_airsync_prf.c79 rsp.attr_value.handle = p_data->req_data.p_data->read_req.handle; in airsync_profile_cb()
81 esp_ble_gatts_send_rsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in airsync_profile_cb()
82 p_data->req_data.status, &rsp); in airsync_profile_cb()
87 esp_ble_gatts_send_rsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in airsync_profile_cb()
88 p_data->req_data.status, NULL); in airsync_profile_cb()
/hal_espressif-3.4.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_act.c696 cb_data.req_data.status = status; in bta_gatts_indicate_handle()
697 cb_data.req_data.conn_id = p_msg->api_indicate.hdr.layer_specific; in bta_gatts_indicate_handle()
698 cb_data.req_data.value = NULL; in bta_gatts_indicate_handle()
699 cb_data.req_data.data_len = 0; in bta_gatts_indicate_handle()
700 cb_data.req_data.handle = p_msg->api_indicate.attr_id; in bta_gatts_indicate_handle()
703 cb_data.req_data.value = (uint8_t *) osi_malloc(p_msg->api_indicate.len); in bta_gatts_indicate_handle()
704 if (cb_data.req_data.value != NULL) { in bta_gatts_indicate_handle()
705 memset(cb_data.req_data.value, 0, p_msg->api_indicate.len); in bta_gatts_indicate_handle()
706 cb_data.req_data.data_len = p_msg->api_indicate.len; in bta_gatts_indicate_handle()
707 … memcpy(cb_data.req_data.value, p_msg->api_indicate.value, p_msg->api_indicate.len); in bta_gatts_indicate_handle()
[all …]
/hal_espressif-3.4.0/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/
Dmesh_bearer_adapt.c524 …struct bt_mesh_gatt_attr *attr = bt_mesh_gatts_find_attr_by_handle(p_data->req_data.p_data->read_r… in bt_mesh_bta_gatts_cb()
525 uint8_t index = BLE_MESH_GATT_GET_CONN_ID(p_data->req_data.conn_id); in bt_mesh_bta_gatts_cb()
530 BT_DBG("gatts read, handle %d", p_data->req_data.p_data->read_req.handle); in bt_mesh_bta_gatts_cb()
534 p_data->req_data.p_data->read_req.offset)) > 0) { in bt_mesh_bta_gatts_cb()
535 rsp.attr_value.handle = p_data->req_data.p_data->read_req.handle; in bt_mesh_bta_gatts_cb()
538 BTA_GATTS_SendRsp(p_data->req_data.conn_id, p_data->req_data.trans_id, in bt_mesh_bta_gatts_cb()
539 p_data->req_data.status, &rsp); in bt_mesh_bta_gatts_cb()
548 …struct bt_mesh_gatt_attr *attr = bt_mesh_gatts_find_attr_by_handle(p_data->req_data.p_data->write_… in bt_mesh_bta_gatts_cb()
549 uint8_t index = BLE_MESH_GATT_GET_CONN_ID(p_data->req_data.conn_id); in bt_mesh_bta_gatts_cb()
552 BT_DBG("gatts write, handle %d, len %d, data %s", p_data->req_data.p_data->write_req.handle, in bt_mesh_bta_gatts_cb()
[all …]
/hal_espressif-3.4.0/components/wifi_provisioning/include/wifi_provisioning/
Dwifi_config.h113 esp_err_t (*set_config_handler)(const wifi_prov_config_set_data_t *req_data,
/hal_espressif-3.4.0/components/bt/host/bluedroid/bta/include/bta/
Dbta_gatt_api.h665 tBTA_GATTS_REQ req_data; member