Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 137) sorted by relevance

123456

/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/
Dsettings_uid.c36 static int settings_direct_erase(uint8_t index);
90 uint16_t index = net_buf_simple_pull_le16(buf); in settings_uid_load() local
92 sprintf(name, "mesh/id/%04x", index); in settings_uid_load()
94 err = bt_mesh_load_uid_settings(name, (uint8_t *)user_ids[index].id, in settings_uid_load()
104 BT_INFO("Restored settings %d, uid %s", index, user_ids[index].id); in settings_uid_load()
154 static int settings_direct_erase(uint8_t index) in settings_direct_erase() argument
160 sprintf(name, "%s_%02x", "mesh_core", index); in settings_direct_erase()
172 BT_ERR("Erase settings failed, index %d", index); in settings_direct_erase()
180 sprintf(name, "mesh/id/%04x", index); in settings_direct_erase()
183 bt_mesh_remove_uid_settings_item("mesh/uid", index); in settings_direct_erase()
[all …]
Dsettings_uid.h22 int bt_mesh_provisioner_open_settings_with_index(uint8_t index);
23 int bt_mesh_provisioner_open_settings_with_uid(const char *id, uint8_t *index);
24 int bt_mesh_provisioner_close_settings_with_index(uint8_t index, bool erase);
25 int bt_mesh_provisioner_close_settings_with_uid(const char *id, bool erase, uint8_t *index);
26 int bt_mesh_provisioner_delete_settings_with_index(uint8_t index);
27 int bt_mesh_provisioner_delete_settings_with_uid(const char *id, uint8_t *index);
29 const char *bt_mesh_provisioner_get_settings_uid(uint8_t index);
Dprovisioner_main.c29 static int provisioner_remove_node(uint16_t index, bool erase);
256 static int provisioner_store_node(struct bt_mesh_node *node, bool store, uint16_t *index) in provisioner_store_node() argument
282 if (index) { in provisioner_store_node()
283 *index = i; in provisioner_store_node()
314 const uint8_t dev_key[16], uint16_t *index) in bt_mesh_provisioner_provision() argument
320 if (!addr || !uuid || !dev_key || !index) { in bt_mesh_provisioner_provision()
341 return provisioner_store_node(&node, true, index); in bt_mesh_provisioner_provision()
344 static int provisioner_remove_node(uint16_t index, bool erase) in provisioner_remove_node() argument
349 BT_DBG("Remove node %d", index); in provisioner_remove_node()
353 if (mesh_nodes[index] == NULL) { in provisioner_remove_node()
[all …]
Daccess.c511 uint16_t index = 0U; in bt_mesh_elem_find() local
514 index = (addr - dev_comp->elem[0].addr); in bt_mesh_elem_find()
515 if (index < dev_comp->elem_count) { in bt_mesh_elem_find()
516 return &dev_comp->elem[index]; in bt_mesh_elem_find()
522 for (index = 0; index < dev_comp->elem_count; index++) { in bt_mesh_elem_find()
523 struct bt_mesh_elem *elem = &dev_comp->elem[index]; in bt_mesh_elem_find()
1017 struct bt_mesh_subnet *bt_mesh_rx_netkey_get(size_t index) in bt_mesh_rx_netkey_get() argument
1023 sub = &bt_mesh.sub[index]; in bt_mesh_rx_netkey_get()
1029 sub = bt_mesh.p_sub[index]; in bt_mesh_rx_netkey_get()
1034 if (index < ARRAY_SIZE(bt_mesh.sub)) { in bt_mesh_rx_netkey_get()
[all …]
Daccess.h66 struct bt_mesh_subnet *bt_mesh_rx_netkey_get(size_t index);
70 const uint8_t *bt_mesh_rx_devkey_get(size_t index, uint16_t src);
74 struct bt_mesh_app_key *bt_mesh_rx_appkey_get(size_t index);
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_co.c109 UINT8 index = 0; in cacheClose() local
110 if ((index = bta_gattc_co_find_addr_in_cache(bda)) != INVALID_ADDR_NUM) { in cacheClose()
111 if (cache_env->cache_addr[index].is_open) { in cacheClose()
112 nvs_close(cache_env->cache_addr[index].cache_fp); in cacheClose()
113 cache_env->cache_addr[index].is_open = FALSE; in cacheClose()
118 static bool cacheOpen(BD_ADDR bda, bool to_save, UINT8 *index) in cacheOpen() argument
125 if (((*index = bta_gattc_co_find_addr_in_cache(bda)) != INVALID_ADDR_NUM) || in cacheOpen()
126 ((assoc_addr = bta_gattc_co_cache_find_src_addr(bda, index)) != NULL)) { in cacheOpen()
127 if (cache_env->cache_addr[*index].is_open) { in cacheOpen()
130 memcpy(hash_key, cache_env->cache_addr[*index].hash_key, sizeof(hash_key_t)); in cacheOpen()
[all …]
/hal_espressif-3.7.0/components/bt/common/osi/
Dallocator.c157 void osi_men_dbg_set_section_start(uint8_t index) in osi_men_dbg_set_section_start() argument
159 if (index >= OSI_MEM_DBG_MAX_SECTION_NUM) { in osi_men_dbg_set_section_start()
161 OSI_MEM_DBG_MAX_SECTION_NUM - 1, index); in osi_men_dbg_set_section_start()
165 if (mem_dbg_max_size_section[index].used) { in osi_men_dbg_set_section_start()
166 OSI_TRACE_WARNING("This index(%d) has been started, restart it.\n", index); in osi_men_dbg_set_section_start()
169 mem_dbg_max_size_section[index].used = true; in osi_men_dbg_set_section_start()
170 mem_dbg_max_size_section[index].max_size = mem_dbg_current_size; in osi_men_dbg_set_section_start()
173 void osi_men_dbg_set_section_end(uint8_t index) in osi_men_dbg_set_section_end() argument
175 if (index >= OSI_MEM_DBG_MAX_SECTION_NUM) { in osi_men_dbg_set_section_end()
177 OSI_MEM_DBG_MAX_SECTION_NUM - 1, index); in osi_men_dbg_set_section_end()
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/sys/
Dbta_sys_conn.c121 UINT8 index; in bta_sys_collision_register() local
123 for (index = 0; index < MAX_COLLISION_REG; index++) { in bta_sys_collision_register()
124 if ((bta_sys_cb.colli_reg.id[index] == bta_id) || in bta_sys_collision_register()
125 (bta_sys_cb.colli_reg.id[index] == 0)) { in bta_sys_collision_register()
126 bta_sys_cb.colli_reg.id[index] = bta_id; in bta_sys_collision_register()
127 bta_sys_cb.colli_reg.p_coll_cback[index] = p_cback; in bta_sys_collision_register()
145 UINT8 index; in bta_sys_notify_collision() local
147 for (index = 0; index < MAX_COLLISION_REG; index++) { in bta_sys_notify_collision()
148 if ((bta_sys_cb.colli_reg.id[index] != 0) && in bta_sys_notify_collision()
149 (bta_sys_cb.colli_reg.p_coll_cback[index] != NULL)) { in bta_sys_notify_collision()
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/btm/
Dbtm_ble_batchscan.c198 int index = 0, len = 0; in btm_ble_batchscan_enq_rep_data() local
201 for (index = 0; index < BTM_BLE_BATCH_REP_MAIN_Q_SIZE; index++) { in btm_ble_batchscan_enq_rep_data()
202 if (report_format == ble_batchscan_cb.main_rep_q.rep_mode[index]) { in btm_ble_batchscan_enq_rep_data()
208 index, report_format, num_records, data_len); in btm_ble_batchscan_enq_rep_data()
210 if (index < BTM_BLE_BATCH_REP_MAIN_Q_SIZE && data_len > 0 && num_records > 0) { in btm_ble_batchscan_enq_rep_data()
211 len = ble_batchscan_cb.main_rep_q.data_len[index]; in btm_ble_batchscan_enq_rep_data()
212 p_orig_data = ble_batchscan_cb.main_rep_q.p_data[index]; in btm_ble_batchscan_enq_rep_data()
218 ble_batchscan_cb.main_rep_q.p_data[index] = p_app_data; in btm_ble_batchscan_enq_rep_data()
219 ble_batchscan_cb.main_rep_q.num_records[index] += num_records; in btm_ble_batchscan_enq_rep_data()
220 ble_batchscan_cb.main_rep_q.data_len[index] += data_len; in btm_ble_batchscan_enq_rep_data()
[all …]
/hal_espressif-3.7.0/components/hal/include/hal/
Dieee802154_common_ll.h265 static inline void ieee802154_ll_set_multipan_panid(ieee802154_ll_multipan_index_t index, uint16_t … in ieee802154_ll_set_multipan_panid() argument
267 IEEE802154.conf.multipan_mask |= BIT(index); in ieee802154_ll_set_multipan_panid()
268 IEEE802154.multipan[index].panid.id = panid; in ieee802154_ll_set_multipan_panid()
271 static inline uint16_t ieee802154_ll_get_multipan_panid(ieee802154_ll_multipan_index_t index) in ieee802154_ll_get_multipan_panid() argument
273 return IEEE802154.multipan[index].panid.id; in ieee802154_ll_get_multipan_panid()
276 static inline void ieee802154_ll_set_multipan_short_addr(ieee802154_ll_multipan_index_t index, uint… in ieee802154_ll_set_multipan_short_addr() argument
278 IEEE802154.conf.multipan_mask |= BIT(index); in ieee802154_ll_set_multipan_short_addr()
279 IEEE802154.multipan[index].short_addr.addr = short_addr; in ieee802154_ll_set_multipan_short_addr()
282 static inline uint16_t ieee802154_ll_get_multipan_short_addr(ieee802154_ll_multipan_index_t index) in ieee802154_ll_get_multipan_short_addr() argument
284 return IEEE802154.multipan[index].short_addr.addr; in ieee802154_ll_get_multipan_short_addr()
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/a2dp/
Dbta_av_co.c196 UINT8 index; in bta_av_co_get_peer() local
199 index = BTA_AV_CO_AUDIO_HNDL_TO_INDX(hndl); in bta_av_co_get_peer()
202 if (index >= BTA_AV_CO_NUM_ELEMENTS(bta_av_co_cb.peers)) { in bta_av_co_get_peer()
203 APPL_TRACE_ERROR("bta_av_co_get_peer peer index out of bounds:%d", index); in bta_av_co_get_peer()
207 return &bta_av_co_cb.peers[index]; in bta_av_co_get_peer()
460 UINT8 index; in bta_av_audio_sink_getconfig() local
521 if (bta_av_co_audio_peer_src_supports_codec(p_peer, &index)) { in bta_av_audio_sink_getconfig()
523 p_src = &p_peer->srcs[index]; in bta_av_audio_sink_getconfig()
576 UINT8 index; in bta_av_co_audio_getconfig() local
642 if (bta_av_co_audio_peer_supports_codec(p_peer, &index)) { in bta_av_co_audio_getconfig()
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/include/bta/
Dbta_gattc_co.h45 extern tBTA_GATT_STATUS bta_gattc_co_cache_open(BD_ADDR server_bda, BOOLEAN to_save, UINT8 *index);
96 extern tBTA_GATT_STATUS bta_gattc_co_cache_load(tBTA_GATTC_NV_ATTR *attr, UINT8 index);
112 extern size_t bta_gattc_get_cache_attr_length(UINT8 index);
130 extern BOOLEAN bta_gattc_co_cache_new_assoc_list(BD_ADDR src_addr, uint8_t index);
136 uint8_t* bta_gattc_co_cache_find_src_addr(BD_ADDR assoc_addr, uint8_t *index);
/hal_espressif-3.7.0/components/bootloader_support/src/
Dbootloader_utility.c252 static esp_partition_pos_t index_to_partition(const bootloader_state_t *bs, int index) in index_to_partition() argument
254 if (index == FACTORY_INDEX) { in index_to_partition()
258 if (index == TEST_APP_INDEX) { in index_to_partition()
262 if (index >= 0 && index < MAX_OTA_SLOTS && index < (int)bs->app_count) { in index_to_partition()
263 return bs->ota[index]; in index_to_partition()
270 static void log_invalid_app_partition(int index) in log_invalid_app_partition() argument
273 switch (index) { in log_invalid_app_partition()
281 ESP_LOGE(TAG, "OTA app partition slot %d%s", index, not_bootable); in log_invalid_app_partition()
468 static void set_actual_ota_seq(const bootloader_state_t *bs, int index) argument
470 if (index > FACTORY_INDEX && ota_has_initial_contents == true) {
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/hh/
Dbta_hh_main.c406 UINT8 index = BTA_HH_IDX_INVALID; in bta_hh_hdl_event() local
426 index = bta_hh_find_cb(((tBTA_HH_API_CONN *)p_msg)->bd_addr); in bta_hh_hdl_event()
430 index = bta_hh_find_cb(((tBTA_HH_MAINT_DEV *)p_msg)->bda); in bta_hh_hdl_event()
432 index = bta_hh_dev_handle_to_cb_idx((UINT8)p_msg->layer_specific); in bta_hh_hdl_event()
440 if ((index != BTA_HH_IDX_INVALID) && in bta_hh_hdl_event()
441 (bta_hh_cb.kdev[index].in_use == FALSE)) { in bta_hh_hdl_event()
442 index = BTA_HH_IDX_INVALID; in bta_hh_hdl_event()
447 index = bta_hh_find_cb(((tBTA_HH_CBACK_DATA *)p_msg)->addr); in bta_hh_hdl_event()
450 bta_hh_cb.cb_index[hdl] = bta_hh_cb.kdev[index].index; in bta_hh_hdl_event()
453 index = bta_hh_dev_handle_to_cb_idx((UINT8)p_msg->layer_specific); in bta_hh_hdl_event()
[all …]
Dbta_hh_utils.c120 UINT8 index; in bta_hh_clean_up_kdev() local
134 index = p_cb->index; /* Preserve index for this control block */ in bta_hh_clean_up_kdev()
141 p_cb->index = index; /* Restore index for this control block */ in bta_hh_clean_up_kdev()
483 UINT8 index = BTA_HH_IDX_INVALID; in bta_hh_dev_handle_to_cb_idx() local
488 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx()
491 … APPL_TRACE_DEBUG("bta_hh_dev_handle_to_cb_idx dev_handle = %d index = %d", dev_handle, index); in bta_hh_dev_handle_to_cb_idx()
498 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
501 return index; in bta_hh_dev_handle_to_cb_idx()
526 bta_hh_cb.kdev[xx].sub_class, bta_hh_cb.kdev[xx].index); in bta_hh_trace_dev_db()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/api/core/include/
Desp_ble_mesh_networking_api.h190 esp_err_t esp_ble_mesh_provisioner_set_node_name(uint16_t index, const char *name);
202 const char *esp_ble_mesh_provisioner_get_node_name(uint16_t index);
492 esp_err_t esp_ble_mesh_provisioner_open_settings_with_index(uint8_t index);
539 esp_err_t esp_ble_mesh_provisioner_close_settings_with_index(uint8_t index, bool erase);
587 esp_err_t esp_ble_mesh_provisioner_delete_settings_with_index(uint8_t index);
612 const char *esp_ble_mesh_provisioner_get_settings_uid(uint8_t index);
Desp_ble_mesh_ble_api.h33 uint8_t index; /*!< Index of the BLE advertising */ member
40 uint8_t index; /*!< Index of the BLE advertising */ member
151 esp_err_t esp_ble_mesh_stop_ble_advertising(uint8_t index);
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/hf_client/
Dbta_hf_client_at.c358 static void bta_hf_client_handle_cind_list_item(char *name, UINT32 min, UINT32 max, UINT32 index) in bta_hf_client_handle_cind_list_item() argument
363 APPL_TRACE_DEBUG("%s %u.%s <%u:%u>", __FUNCTION__, index, name, min, max); in bta_hf_client_handle_cind_list_item()
368 service_index = index; in bta_hf_client_handle_cind_list_item()
379 bta_hf_client_cb.scb.at_cb.indicator_lookup[index] = i; in bta_hf_client_handle_cind_list_item()
385 static void bta_hf_client_handle_cind_value(UINT32 index, UINT32 value) in bta_hf_client_handle_cind_value() argument
387 APPL_TRACE_DEBUG("%s index: %u value: %u", __FUNCTION__, index, value); in bta_hf_client_handle_cind_value()
389 if (index >= BTA_HF_CLIENT_AT_INDICATOR_COUNT) { in bta_hf_client_handle_cind_value()
393 if (service_index == index) { in bta_hf_client_handle_cind_value()
400 if (bta_hf_client_cb.scb.at_cb.indicator_lookup[index] == -1) { in bta_hf_client_handle_cind_value()
405 index = bta_hf_client_cb.scb.at_cb.indicator_lookup[index]; in bta_hf_client_handle_cind_value()
[all …]
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_networking_api.c259 esp_err_t esp_ble_mesh_provisioner_set_node_name(uint16_t index, const char *name) in esp_ble_mesh_provisioner_set_node_name() argument
274 arg.set_node_name.index = index; in esp_ble_mesh_provisioner_set_node_name()
282 const char *esp_ble_mesh_provisioner_get_node_name(uint16_t index) in esp_ble_mesh_provisioner_get_node_name() argument
284 return bt_mesh_provisioner_get_node_name(index); in esp_ble_mesh_provisioner_get_node_name()
611 esp_err_t esp_ble_mesh_provisioner_open_settings_with_index(uint8_t index) in esp_ble_mesh_provisioner_open_settings_with_index() argument
616 if (index >= CONFIG_BLE_MESH_MAX_NVS_NAMESPACE) { in esp_ble_mesh_provisioner_open_settings_with_index()
626 arg.open_settings_with_index.index = index; in esp_ble_mesh_provisioner_open_settings_with_index()
653 esp_err_t esp_ble_mesh_provisioner_close_settings_with_index(uint8_t index, bool erase) in esp_ble_mesh_provisioner_close_settings_with_index() argument
658 if (index >= CONFIG_BLE_MESH_MAX_NVS_NAMESPACE) { in esp_ble_mesh_provisioner_close_settings_with_index()
668 arg.close_settings_with_index.index = index; in esp_ble_mesh_provisioner_close_settings_with_index()
[all …]
Desp_ble_mesh_ble_api.c50 esp_err_t esp_ble_mesh_stop_ble_advertising(uint8_t index) in esp_ble_mesh_stop_ble_advertising() argument
55 if (index >= CONFIG_BLE_MESH_BLE_ADV_BUF_COUNT) { in esp_ble_mesh_stop_ble_advertising()
65 arg.stop_ble_adv.index = index; in esp_ble_mesh_stop_ble_advertising()
/hal_espressif-3.7.0/tools/esptool_py/docs/en/espefuse/
Dexecute-scripts-cmd.rst14 - ``--index`` - integer index. It allows to retrieve unique data per chip from configfiles and then…
24 * ``--index`` integer index (it means the number of chip in the batch in the range 1 - the max num…
78 …``index`` to get the unique data for each chip from the ``configfiles`` (* .txt, * .json, etc.). T…
82 …espefuse.py execute_scripts efuse_script2.py --do-not-confirm --index {index} --configfiles mac_ad…
93 mac_val = mac_addresses[str(args.index)]
98 unique_id_val = unique_id[str(args.index)]
112 for index in range(100):
113 mac = "{:012X}".format(int(base_mac, 16) + (args.index - 1) * step)
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_models/server/
Dtime_scene_server.c939 static uint64_t get_schedule_reg_state(struct bt_mesh_scheduler_state *state, uint8_t index) in get_schedule_reg_state() argument
941 struct schedule_register *reg = &state->schedules[index]; in get_schedule_reg_state()
944 val = ((uint64_t)(reg->year) << 4) | index; in get_schedule_reg_state()
955 uint8_t index) in send_scheduler_act_status() argument
964 value = get_schedule_reg_state(srv->state, index); in send_scheduler_act_status()
967 net_buf_simple_add_le16(&msg, srv->state->schedules[index].scene_number); in send_scheduler_act_status()
972 value = get_schedule_reg_state(srv->state, index); in send_scheduler_act_status()
975 net_buf_simple_add_le16(&msg, srv->state->schedules[index].scene_number); in send_scheduler_act_status()
1013 uint8_t index = net_buf_simple_pull_u8(buf); in scheduler_get() local
1014 if (index > SCHEDULE_ENTRY_MAX_INDEX) { in scheduler_get()
[all …]
/hal_espressif-3.7.0/components/log/
Dlog.c80 static void heap_bubble_down(int index);
291 static void heap_bubble_down(int index) in heap_bubble_down() argument
293 while (index < TAG_CACHE_SIZE / 2) { in heap_bubble_down()
294 int left_index = index * 2 + 1; in heap_bubble_down()
297 heap_swap(index, next); in heap_bubble_down()
298 index = next; in heap_bubble_down()
/hal_espressif-3.7.0/components/esp_hw_support/
Dsleep_modem.c48 int index = MAC_BB_POWER_DOWN_CB_NO; in esp_register_mac_bb_pd_callback() local
55 index = i; in esp_register_mac_bb_pd_callback()
59 if (index < MAC_BB_POWER_DOWN_CB_NO) { in esp_register_mac_bb_pd_callback()
60 s_mac_bb_power_down_cb[index] = cb; in esp_register_mac_bb_pd_callback()
89 int index = MAC_BB_POWER_UP_CB_NO; in esp_register_mac_bb_pu_callback() local
96 index = i; in esp_register_mac_bb_pu_callback()
100 if (index < MAC_BB_POWER_UP_CB_NO) { in esp_register_mac_bb_pu_callback()
101 s_mac_bb_power_up_cb[index] = cb; in esp_register_mac_bb_pu_callback()
/hal_espressif-3.7.0/tools/esptool_py/esptool/
Dutil.py12 def byte(bitstr, index): argument
13 return bitstr[index]
40 return int(size[: size.index("MB")]) * 1024 * 1024
42 return int(size[: size.index("KB")]) * 1024

123456