ESP-IDF
cache_env_t::cache_addr
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
cache_env_t::cache_addr
cache_env_t::cache_addr field
Syntax
Show:
Summary
Declaration
from
bta_gattc_co.c:96
cache_addr_info_t
cache_addr
[
MAX_DEVICE_IN_CACHE
]
;
Examples
References
from
examples
Code
Location
Referrer
cache_addr_info_t
cache_addr
[
MAX_DEVICE_IN_CACHE
]
;
bta_gattc_co.c:96
if
(
cache_env
->
cache_addr
[
index
]
.
is_open
)
{
bta_gattc_co.c:111
cacheClose()
nvs_close
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
)
;
bta_gattc_co.c:112
cacheClose()
cache_env
->
cache_addr
[
index
]
.
is_open
=
FALSE
;
bta_gattc_co.c:113
cacheClose()
if
(
cache_env
->
cache_addr
[
*
index
]
.
is_open
)
{
bta_gattc_co.c:127
cacheOpen()
memcpy
(
hash_key
,
cache_env
->
cache_addr
[
*
index
]
.
hash_key
,
sizeof
(
hash_key_t
)
)
;
bta_gattc_co.c:130
cacheOpen()
if
(
(
status
=
nvs_open
(
fname
,
NVS_READWRITE
,
&
cache_env
->
cache_addr
[
*
index
]
.
cache_fp
)
)
==
ESP_OK
)
{
bta_gattc_co.c:132
cacheOpen()
cache_env
->
cache_addr
[
*
index
]
.
is_open
=
TRUE
;
bta_gattc_co.c:134
cacheOpen()
if
(
cache_env
->
cache_addr
[
index
]
.
is_open
)
{
bta_gattc_co.c:151
cacheReset()
nvs_erase_all
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
)
;
bta_gattc_co.c:152
cacheReset()
nvs_close
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
)
;
bta_gattc_co.c:153
cacheReset()
cache_env
->
cache_addr
[
index
]
.
is_open
=
FALSE
;
bta_gattc_co.c:154
cacheReset()
if
(
cache_env
->
cache_addr
[
index
]
.
is_open
)
{
bta_gattc_co.c:161
cacheReset()
nvs_erase_all
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
)
;
bta_gattc_co.c:162
cacheReset()
nvs_close
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
)
;
bta_gattc_co.c:163
cacheReset()
cache_env
->
cache_addr
[
index
]
.
is_open
=
FALSE
;
bta_gattc_co.c:164
cacheReset()
memcpy
(
&
cache_env
->
cache_addr
[
i
]
,
&
cache_env
->
cache_addr
[
i
+
1
]
,
sizeof
(
cache_addr_info_t
)
)
;
bta_gattc_co.c:178
cacheReset()
memset
(
&
cache_env
->
cache_addr
[
num
-
1
]
,
0
,
sizeof
(
cache_addr_info_t
)
)
;
bta_gattc_co.c:181
cacheReset()
memcpy
(
p_buf
+
i
*
(
sizeof
(
BD_ADDR
)
+
sizeof
(
hash_key_t
)
)
,
cache_env
->
cache_addr
[
i
]
.
addr
,
sizeof
(
BD_ADDR
)
)
;
bta_gattc_co.c:201
cacheReset()
cache_env
->
cache_addr
[
i
]
.
hash_key
,
sizeof
(
hash_key_t
)
)
;
bta_gattc_co.c:204
cacheReset()
nvs_get_blob
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
,
cache_key
,
NULL
,
&
length
)
;
bta_gattc_co.c:281
bta_gattc_co_cache_load()
esp_err_t
err_code
=
nvs_get_blob
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
,
cache_key
,
attr
,
&
length
)
;
bta_gattc_co.c:283
bta_gattc_co_cache_load()
nvs_get_blob
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
,
cache_key
,
NULL
,
&
length
)
;
bta_gattc_co.c:302
bta_gattc_get_cache_attr_length()
esp_err_t
err_code
=
nvs_set_blob
(
cache_env
->
cache_addr
[
index
]
.
cache_fp
,
cache_key
,
bta_gattc_co.c:334
bta_gattc_co_cache_save()
memcpy
(
cache_env
->
cache_addr
[
i
]
.
addr
,
p_buf
+
i
*
(
sizeof
(
BD_ADDR
)
+
sizeof
(
hash_key_t
)
)
,
sizeof
(
BD_ADDR
)
)
;
bta_gattc_co.c:425
bta_gattc_co_cache_addr_init()
memcpy
(
cache_env
->
cache_addr
[
i
]
.
hash_key
,
bta_gattc_co.c:426
bta_gattc_co_cache_addr_init()
APPL_TRACE_DEBUG
(
"cache_addr[%x] = %x:%x:%x:%x:%x:%x"
,
i
,
cache_env
->
cache_addr
[
i
]
.
addr
[
0
]
,
cache_env
->
cache_addr
[
i
]
.
addr
[
1
]
,
cache_env
->
cache_addr
[
i
]
.
addr
[
2
]
,
bta_gattc_co.c:429
bta_gattc_co_cache_addr_init()
cache_env
->
cache_addr
[
i
]
.
addr
[
3
]
,
cache_env
->
cache_addr
[
i
]
.
addr
[
4
]
,
cache_env
->
cache_addr
[
i
]
.
addr
[
5
]
)
;
bta_gattc_co.c:430
bta_gattc_co_cache_addr_init()
APPL_TRACE_DEBUG
(
"hash_key[%x] = %x%x%x%x"
,
i
,
cache_env
->
cache_addr
[
i
]
.
hash_key
[
0
]
,
cache_env
->
cache_addr
[
i
]
.
hash_key
[
1
]
,
bta_gattc_co.c:431
bta_gattc_co_cache_addr_init()
cache_env
->
cache_addr
[
i
]
.
hash_key
[
2
]
,
cache_env
->
cache_addr
[
i
]
.
hash_key
[
3
]
)
;
bta_gattc_co.c:432
bta_gattc_co_cache_addr_init()
bta_gattc_co_cache_new_assoc_list
(
cache_env
->
cache_addr
[
i
]
.
addr
,
i
)
;
bta_gattc_co.c:433
bta_gattc_co_cache_addr_init()
cache_addr_info_t
*
addr_info
=
&
cache_env
->
cache_addr
[
i
]
;
bta_gattc_co.c:454
bta_gattc_co_cache_addr_deinit()
cache_addr_info_t
*
addr_info
=
&
cache_env
->
cache_addr
[
0
]
;
bta_gattc_co.c:472
bta_gattc_co_addr_in_cache()
cache_addr_info_t
*
addr_info
=
&
cache_env
->
cache_addr
[
0
]
;
bta_gattc_co.c:486
bta_gattc_co_find_addr_in_cache()
cache_addr_info_t
*
addr_info
=
&
cache_env
->
cache_addr
[
0
]
;
bta_gattc_co.c:501
bta_gattc_co_find_hash_in_cache()
memcpy
(
addr_list
[
i
]
,
cache_env
->
cache_addr
[
i
]
.
addr
,
sizeof
(
BD_ADDR
)
)
;
bta_gattc_co.c:524
bta_gattc_co_get_addr_list()
memcpy
(
cache_env
->
cache_addr
[
index
]
.
addr
,
bd_addr
,
sizeof
(
BD_ADDR
)
)
;
bta_gattc_co.c:544
bta_gattc_co_cache_addr_save()
memcpy
(
cache_env
->
cache_addr
[
index
]
.
hash_key
,
hash_key
,
sizeof
(
hash_key_t
)
)
;
bta_gattc_co.c:545
bta_gattc_co_cache_addr_save()
cacheReset
(
cache_env
->
cache_addr
[
0
]
.
addr
,
FALSE
)
;
bta_gattc_co.c:549
bta_gattc_co_cache_addr_save()
memcpy
(
cache_env
->
cache_addr
[
new_index
]
.
addr
,
bd_addr
,
sizeof
(
BD_ADDR
)
)
;
bta_gattc_co.c:553
bta_gattc_co_cache_addr_save()
memcpy
(
cache_env
->
cache_addr
[
new_index
]
.
hash_key
,
hash_key
,
sizeof
(
hash_key_t
)
)
;
bta_gattc_co.c:554
bta_gattc_co_cache_addr_save()
memcpy
(
p_buf
+
i
*
(
sizeof
(
BD_ADDR
)
+
sizeof
(
hash_key_t
)
)
,
cache_env
->
cache_addr
[
i
]
.
addr
,
sizeof
(
BD_ADDR
)
)
;
bta_gattc_co.c:564
bta_gattc_co_cache_addr_save()
cache_env
->
cache_addr
[
i
]
.
hash_key
,
sizeof
(
hash_key_t
)
)
;
bta_gattc_co.c:567
bta_gattc_co_cache_addr_save()
cache_addr_info_t
*
addr_info
=
&
cache_env
->
cache_addr
[
index
]
;
bta_gattc_co.c:592
bta_gattc_co_cache_new_assoc_list()
addr_info
=
&
cache_env
->
cache_addr
[
addr_index
]
;
bta_gattc_co.c:607
bta_gattc_co_cache_append_assoc_addr()
addr_info
=
&
cache_env
->
cache_addr
[
addr_index
]
;
bta_gattc_co.c:624
bta_gattc_co_cache_remove_assoc_addr()
cache_addr_info_t
*
addr_info
=
&
cache_env
->
cache_addr
[
0
]
;
bta_gattc_co.c:645
bta_gattc_co_cache_find_src_addr()
addr_info
=
&
cache_env
->
cache_addr
[
addr_index
]
;
bta_gattc_co.c:679
bta_gattc_co_cache_clear_assoc_addr()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
cache_env_t::cache_addr
is read by 18 functions:
All items filtered out
cache_env_t::cache_addr
cacheClose()
cacheOpen()
cacheReset()
bta_gattc_co_cache_load()
bta_gattc_get_cache_attr_length()
bta_gattc_co_cache_save()
bta_gattc_co_cache_addr_init()
bta_gattc_co_cache_addr_deinit()
bta_gattc_co_addr_in_cache()
bta_gattc_co_find_addr_in_cache()
bta_gattc_co_find_hash_in_cache()
bta_gattc_co_get_addr_list()
bta_gattc_co_cache_addr_save()
bta_gattc_co_cache_new_assoc_list()
bta_gattc_co_cache_append_assoc_addr()
bta_gattc_co_cache_remove_assoc_addr()
bta_gattc_co_cache_find_src_addr()
bta_gattc_co_cache_clear_assoc_addr()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out