/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gatt/ |
D | gatt_db.c | 105 return &((tGATT_ATTR16 *)p_db->p_attr_list)->p_value->uuid; in gatts_get_service_uuid() 241 len = p_attr16->p_value->uuid.len; in read_attr_value() 242 if (mtu >= p_attr16->p_value->uuid.len) { in read_attr_value() 243 gatt_build_uuid_to_stream(&p, p_attr16->p_value->uuid); in read_attr_value() 250 UINT8_TO_STREAM(p, p_attr16->p_value->char_decl.property); in read_attr_value() 251 UINT16_TO_STREAM(p, p_attr16->p_value->char_decl.char_val_handle); in read_attr_value() 267 if (p_attr16->p_value->incl_handle.service_type.len == LEN_UUID_16) { in read_attr_value() 274 UINT16_TO_STREAM(p, p_attr16->p_value->incl_handle.s_handle); in read_attr_value() 275 UINT16_TO_STREAM(p, p_attr16->p_value->incl_handle.e_handle); in read_attr_value() 277 if (p_attr16->p_value->incl_handle.service_type.len == LEN_UUID_16) { in read_attr_value() [all …]
|
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/dis/ |
D | dis_profile.c | 124 void dis_s_read_attr_value (tGATTS_DATA *p_data, tGATT_VALUE *p_value, UINT32 trans_id, UINT16 conn… in dis_s_read_attr_value() argument 127 UINT8 *p = p_value->value, i, *pp; in dis_s_read_attr_value() 153 p_value->len = GATT_MAX_ATTR_LEN; in dis_s_read_attr_value() 155 p_value->len = (UINT16)strlen ((char *)pp); in dis_s_read_attr_value() 158 p_value->len = 0; in dis_s_read_attr_value() 161 if (offset > p_value->len) { in dis_s_read_attr_value() 165 p_value->len -= offset; in dis_s_read_attr_value() 167 ARRAY_TO_STREAM(p, pp, p_value->len); in dis_s_read_attr_value() 168 GATT_TRACE_EVENT("GATT_UUID_MANU_NAME len=0x%04x", p_value->len); in dis_s_read_attr_value() 175 p_value->len = DIS_SYSTEM_ID_SIZE; in dis_s_read_attr_value() [all …]
|
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/gatt/ |
D | btc_gatt_util.c | 188 if (( p_src->status == BTA_GATT_OK ) && (p_src->p_value != NULL)) in set_read_value() 190 BTC_TRACE_DEBUG("%s len = %d ", __func__, p_src->p_value->len); in set_read_value() 191 p_dest->read.value_len = p_src->p_value->len; in set_read_value() 192 if ( p_src->p_value->len > 0 && p_src->p_value->p_value != NULL ) { in set_read_value() 193 p_dest->read.value = p_src->p_value->p_value; in set_read_value() 195 len += p_src->p_value->len; in set_read_value()
|
D | btc_gattc.c | 133 if (p_src_data->read.p_value && p_src_data->read.p_value->p_value) { in btc_gattc_copy_req_data() 134 …p_dest_data->read.p_value = (tBTA_GATT_UNFMT *)osi_malloc(sizeof(tBTA_GATT_UNFMT) + p_src_data->r… in btc_gattc_copy_req_data() 135 p_dest_data->read.p_value->p_value = (uint8_t *)(p_dest_data->read.p_value + 1); in btc_gattc_copy_req_data() 136 if (p_dest_data->read.p_value && p_dest_data->read.p_value->p_value) { in btc_gattc_copy_req_data() 137 p_dest_data->read.p_value->len = p_src_data->read.p_value->len; in btc_gattc_copy_req_data() 138 …memcpy(p_dest_data->read.p_value->p_value, p_src_data->read.p_value->p_value, p_src_data->read.p_v… in btc_gattc_copy_req_data() 169 if (arg->read.p_value) { in btc_gattc_free_req_data() 170 osi_free(arg->read.p_value); in btc_gattc_free_req_data() 640 descr_val.p_value = arg->write_descr.value; in btc_gattc_write_char_descr() 662 descr_val.p_value = arg->prep_write_descr.value; in btc_gattc_prepare_write_char_descr()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/mlmr_c/ |
D | mlmr_c.c | 200 if (FLOW_ON == p_ntf_ind->p_value[0]) { in gus_c_att_ntf_ind_cb() 202 } else if (FLOW_OFF == p_ntf_ind->p_value[0]) { in gus_c_att_ntf_ind_cb() 207 if (p_ntf_ind->p_value[0] == adv_header) { in gus_c_att_ntf_ind_cb() 209 sizeof(&(((uint8_t *)p_ntf_ind->p_value)[1]), DATA_COPY_LEN); in gus_c_att_ntf_ind_cb() 215 gus_c_evt.p_data = p_ntf_ind->p_value; in gus_c_att_ntf_ind_cb() 220 … combin_received_packet(conn_idx, p_ntf_ind->length, p_ntf_ind->p_value, rx_buffer[conn_idx]); in gus_c_att_ntf_ind_cb() 229 … combin_received_packet(conn_idx, p_ntf_ind->length, p_ntf_ind->p_value, rx_buffer[conn_idx]); in gus_c_att_ntf_ind_cb() 336 write_attr_value.p_value = (uint8_t *)&ntf_value; 353 write_attr_value.p_value = (uint8_t *)&ntf_value; 377 write_attr_value.p_value = buffer; [all …]
|
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gap/ |
D | gap_ble.c | 208 tGATT_STATUS gap_read_attr_value (UINT16 handle, tGATT_VALUE *p_value, BOOLEAN is_long) in gap_read_attr_value() argument 211 UINT8 *p = p_value->value, i; in gap_read_attr_value() 212 UINT16 offset = p_value->offset; in gap_read_attr_value() 226 p_value->len = GATT_MAX_ATTR_LEN; in gap_read_attr_value() 228 p_value->len = (UINT16)strlen ((char *)p_dev_name); in gap_read_attr_value() 231 if (offset > p_value->len) { in gap_read_attr_value() 234 p_value->len -= offset; in gap_read_attr_value() 236 ARRAY_TO_STREAM(p, p_dev_name, p_value->len); in gap_read_attr_value() 237 GAP_TRACE_EVENT("GATT_UUID_GAP_DEVICE_NAME len=0x%04x", p_value->len); in gap_read_attr_value() 243 p_value->len = 2; in gap_read_attr_value() [all …]
|
/device/board/osware/imx8mm/drivers/bluetooth/source/src/ |
D | conf.c | 97 char *p_value; in vnd_load_conf() local 118 p_value = strtok(NULL, CONF_DELIMITERS); in vnd_load_conf() 119 if (p_value == NULL) { in vnd_load_conf() 127 p_entry->p_action(p_name, p_value, p_entry->param); in vnd_load_conf()
|
/device/board/kaihong/khdvk_3566b/kernel/bluetooth/src/ |
D | conf.c | 97 char *p_value; in vnd_load_conf() local 118 p_value = strtok(NULL, CONF_DELIMITERS); in vnd_load_conf() 119 if (p_value == NULL) { in vnd_load_conf() 127 p_entry->p_action(p_name, p_value, p_entry->param); in vnd_load_conf()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/sdk/ |
D | ble_gattc.h | 110 uint8_t *p_value; /**< Value to write. */ member 120 uint8_t *p_value; /**< Value to write. */ member 248 uint8_t *p_value; /**< Pointer to the attribute value data. */ member 269 uint8_t *p_value; /**< Pointer to the attribute value data. */ member 487 …write(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length, const uint8_t *p_value); 508 const uint8_t *p_value); 549 const uint8_t *p_value);
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ans_c/ |
D | ans_c.c | 191 ans_c_evt.value.sup_new_alert_cat_ids = BUILD_U16(p_read_rsp->vals[0].p_value[0], in ans_c_att_read_cb() 192 p_read_rsp->vals[0].p_value[1]); in ans_c_att_read_cb() 195 ans_c_evt.value.sup_unread_alert_cat_ids = BUILD_U16(p_read_rsp->vals[0].p_value[0], in ans_c_att_read_cb() 196 p_read_rsp->vals[0].p_value[1]); in ans_c_att_read_cb() 253 ans_c_new_alert_decode(p_ntf_ind->p_value, p_ntf_ind->length, &ans_c_evt.value.new_alert); in ans_c_att_ntf_ind_cb() 256 ans_c_unread_decode(p_ntf_ind->p_value, p_ntf_ind->length, &ans_c_evt.value.unread_alert); in ans_c_att_ntf_ind_cb() 372 write_attr_value.p_value = (uint8_t *)&ntf_value; in ans_c_new_alert_notify_set() 389 write_attr_value.p_value = (uint8_t *)&ntf_value; in ans_c_unread_alert_notify_set() 427 write_attr_value.p_value = ctrl_pt_val; in ans_c_ctrl_point_set()
|
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/ |
D | bta_gattc_api.c | 619 UINT8 *p_value, in BTA_GATTC_WriteCharValue() argument 635 if (p_value && len > 0) { in BTA_GATTC_WriteCharValue() 636 p_buf->p_value = (UINT8 *)(p_buf + 1); in BTA_GATTC_WriteCharValue() 637 memcpy(p_buf->p_value, p_value, len); in BTA_GATTC_WriteCharValue() 684 p_buf->p_value = (UINT8 *)(p_buf + 1); in BTA_GATTC_WriteCharDescr() 687 memcpy(p_buf->p_value, p_data->p_value, p_data->len); in BTA_GATTC_WriteCharDescr() 714 UINT16 offset, UINT16 len, UINT8 *p_value, in BTA_GATTC_PrepareWrite() argument 731 if (p_value && len > 0) { in BTA_GATTC_PrepareWrite() 732 p_buf->p_value = (UINT8 *)(p_buf + 1); in BTA_GATTC_PrepareWrite() 733 memcpy(p_buf->p_value, p_value, len); in BTA_GATTC_PrepareWrite() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ams_c/ |
D | ams_c.c | 173 ams_c_evt.param.cplt_attr_data.p_data = p_read_rsp->vals[0].p_value; in ams_c_att_read_cb() 240 ams_c_evt.param.cmd_list.p_cmd = (ams_c_cmd_id_t *)(p_ntf_ind->p_value); in ams_c_att_ntf_ind_cb() 245 s_ams_c_env.cmd_enable_flag |= (0x01 << p_ntf_ind->p_value[i]); in ams_c_att_ntf_ind_cb() 249 ams_c_attr_info_decode(p_ntf_ind->p_value, p_ntf_ind->length, in ams_c_att_ntf_ind_cb() 353 write_attr_value.p_value = (uint8_t *)&ntf_value; in ams_c_cmd_notify_set() 369 write_attr_value.p_value = (uint8_t *)&ntf_value; in ams_c_attr_update_notify_set() 392 write_attr_value.p_value = (uint8_t *)& cmd_id; in ams_c_cmd_send() 406 write_attr_value.p_value = (uint8_t *)&(p_ett_attr_id->ett_id); in ams_c_attr_focus_set() 421 write_attr_value.p_value = (uint8_t *)&(p_attr_info->ett_id); in ams_c_attr_display_set()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/gus_c/ |
D | gus_c.c | 173 if (FLOW_ON == p_ntf_ind->p_value[0]) { in gus_c_att_ntf_ind_cb() 175 } else if (FLOW_OFF == p_ntf_ind->p_value[0]) { in gus_c_att_ntf_ind_cb() 180 gus_c_evt.p_data = p_ntf_ind->p_value; in gus_c_att_ntf_ind_cb() 284 write_attr_value.p_value = (uint8_t *)&ntf_value; in gus_c_tx_notify_set() 301 write_attr_value.p_value = (uint8_t *)&ntf_value; in gus_c_flow_ctrl_notify_set() 321 write_attr_value.p_value = p_data; in gus_c_tx_data_send() 337 write_attr_value.p_value = &flow_ctrl; in gus_c_rx_flow_ctrl_set()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/rscs_c/ |
D | rscs_c.c | 195 …_c_evt.value.rsc_feature = BUILD_U16(p_read_rsp->vals[0].p_value[0], p_read_rsp->vals[0].p_value[1… in rscs_c_att_read_cb() 198 rscs_c_evt.value.rsc_sensor_loc = (rscs_c_sensor_loc_t)p_read_rsp->vals[0].p_value[0]; in rscs_c_att_read_cb() 256 … rscs_c_meas_value_encode(p_ntf_ind->p_value, p_ntf_ind->length, &rscs_c_evt.value.rsc_meas_buff); in rscs_c_att_ntf_ind_cb() 259 ret = memcpy_s(rscs_c_evt.value.ctrl_pt_rsp, p_ntf_ind->p_value, p_ntf_ind->length); in rscs_c_att_ntf_ind_cb() 371 write_attr_value.p_value = (uint8_t *)&ntf_value; in rscs_c_rsc_meas_notify_set() 406 write_attr_value.p_value = (uint8_t *)&ind_value; in rscs_c_ctrl_pt_indicate_set() 422 write_attr_value.p_value = (uint8_t *)&ctrl_value; in rscs_c_ctrl_pt_set()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/pass_c/ |
D | pass_c.c | 141 pass_c_evt.value.alert_status = p_read_rsp->vals[0].p_value[0]; in pass_c_att_read_cb() 144 pass_c_evt.value.ringer_set = p_read_rsp->vals[0].p_value[0]; in pass_c_att_read_cb() 201 pass_c_evt.value.alert_status = p_ntf_ind->p_value[0]; in pass_c_att_ntf_ind_cb() 204 pass_c_evt.value.ringer_set = p_ntf_ind->p_value[0]; in pass_c_att_ntf_ind_cb() 311 write_attr_value.p_value = (uint8_t *)&ntf_value; in pass_c_alert_status_notify_set() 328 write_attr_value.p_value = (uint8_t *)&ntf_value; in pass_c_ringer_set_notify_set() 344 write_attr_value.p_value = &ctrl_value; in pass_c_ctrl_point_set()
|
/device/soc/winnermicro/wm800/board/include/bt/ |
D | wm_ble_gatt.h | 174 … int write_type, int len, int auth_req, char *p_value); 217 … int write_type, int len, int auth_req, char *p_value); 475 char *p_value); 495 uint8_t *p_value, int len);
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/cts_c/ |
D | cts_c.c | 284 cts_c_cur_time_decode(p_read_rsp->vals[0].p_value, &cts_c_evt.value.cur_time); in cts_c_att_read_cb() 292 cts_c_evt.value.loc_time_info.time_zone = p_read_rsp->vals[0].p_value[0]; in cts_c_att_read_cb() 293 … cts_c_evt.value.loc_time_info.dst_offset = (cts_c_dst_offset_t)p_read_rsp->vals[0].p_value[1]; in cts_c_att_read_cb() 301 cts_c_ref_time_info_decode(p_read_rsp->vals[0].p_value, &cts_c_evt.value.ref_time_info); in cts_c_att_read_cb() 363 cts_c_cur_time_decode(p_ntf_ind->p_value, &cts_c_evt.value.cur_time); in cts_c_att_ntf_ind_cb() 478 write_attr_value.p_value = (uint8_t *)&ntf_value; in cts_c_cur_time_notify_set() 524 write_attr_value.p_value = encoded_buffer; in cts_c_cur_time_set() 544 write_attr_value.p_value = encoded_buffer; in cts_c_loc_time_info_set()
|
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/hh/ |
D | bta_hh_le.c | 702 p_data->p_value && p_data->p_value->unformat.len == 2) { in bta_hh_le_save_rpt_ref() 703 pp = p_data->p_value->unformat.p_value; in bta_hh_le_save_rpt_ref() 760 p_data->p_value && p_data->p_value->unformat.len == 2) { in bta_hh_le_save_ext_rpt_ref() 761 pp = p_data->p_value->unformat.p_value; in bta_hh_le_save_ext_rpt_ref() 901 value.p_value = buf; in bta_hh_le_write_char_clt_cfg() 1758 pp = p_data->p_value->unformat.p_value; in bta_hh_le_save_rpt_map() 1765 if (p_data->p_value->unformat.len > 0) { in bta_hh_le_save_rpt_map() 1766 p_srvc->rpt_map = (UINT8 *)osi_malloc(p_data->p_value->unformat.len); in bta_hh_le_save_rpt_map() 1770 STREAM_TO_ARRAY(p_srvc->rpt_map, pp, p_data->p_value->unformat.len); in bta_hh_le_save_rpt_map() 1771 p_srvc->descriptor.dl_len = p_data->p_value->unformat.len; in bta_hh_le_save_rpt_map() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ths_c/ |
D | ths_c.c | 178 ths_c_evt.p_data = p_ntf_ind->p_value; in ths_c_att_ntf_ind_cb() 288 write_attr_value.p_value = (uint8_t *)&ntf_value; in ths_c_tx_notify_set() 305 write_attr_value.p_value = (uint8_t *)&ntf_value; in ths_c_setting_notify_set() 321 write_attr_value.p_value = p_data; in ths_c_comm_param_send() 337 write_attr_value.p_value = (uint8_t *)&is_enable; in ths_c_toggle_set() 353 write_attr_value.p_value = p_data; in ths_c_tx_data_send()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ancs_c/ |
D | ancs_c.c | 167 ancs_decode_notification_source(p_ntf_ind->p_value, p_ntf_ind->length); in ancs_c_att_ntf_ind_cb() 170 ancs_decode_data_source(p_ntf_ind->p_value, p_ntf_ind->length); in ancs_c_att_ntf_ind_cb() 275 write_attr_value.p_value = (uint8_t *)p_data; in ancs_c_write_control_point() 291 write_attr_value.p_value = (uint8_t *)&ntf_value; in ancs_c_ntf_source_notify_set() 307 write_attr_value.p_value = (uint8_t *)&ntf_value; in ancs_c_data_source_notify_set()
|
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/battery/include/ |
D | srvc_battery_int.h | 70 extern UINT8 battery_s_write_attr_value(UINT8 clcb_idx, tGATT_WRITE_REQ *p_value, 72 extern UINT8 battery_s_read_attr_value (UINT8 clcb_idx, UINT16 handle, tGATT_VALUE *p_value, BOOLEA…
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/otas_c/ |
D | otas_c.c | 170 otas_c_evt.p_data = p_ntf_ind->p_value; in otas_c_att_ntf_ind_cb() 278 write_attr_value.p_value = (uint8_t *)&ntf_value; in otas_c_tx_notify_set() 294 write_attr_value.p_value = (uint8_t*)&data; in otas_c_ctrl_data_send() 310 write_attr_value.p_value = p_data; in otas_c_tx_data_send()
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/ble_inc/ |
D | msm_ble_api.h | 185 void ble_gatt_data_send(uint16_t local_handle, uint16_t idx, uint16_t length, uint8_t *p_value); 194 …ead_request_handler(uint8_t connection_id, uint16_t handle, uint16_t *p_length, uint8_t **p_value); 195 …t_write_request_handler(uint8_t connection_id, uint16_t handle, uint16_t length, uint8_t *p_value);
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/hrs_c/ |
D | hrs_c.c | 192 hrs_c_evt.value.sensor_loc = (hrs_c_sensor_loc_t)p_read_rsp->vals[0].p_value[0]; in hrs_c_att_read_cb() 245 … hrs_c_meas_value_encode(p_ntf_ind->p_value, p_ntf_ind->length, &hrs_c_evt.value.hr_meas_buff); in hrs_c_att_ntf_ind_cb() 357 write_attr_value.p_value = (uint8_t *)&ntf_value; in hrs_c_heart_rate_meas_notify_set() 382 write_attr_value.p_value = (uint8_t *)&ctrl_value; in hrs_c_ctrl_point_set()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bas_c/ |
D | bas_c.c | 142 bas_c_evt.bat_level = p_read_rsp->vals[0].p_value[0]; in bas_c_att_read_cb() 190 bas_c_evt.bat_level = p_ntf_ind->p_value[0]; in bas_c_att_ntf_ind_cb() 299 write_attr_value.p_value = (uint8_t *)&ntf_value; in bas_c_bat_level_notify_set()
|