ESP-IDF
esp_flash_t::os_func
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (5/5)...
ESP-IDF
lwIP
FreeRTOS
cJSON
mbedTLS
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
esp_flash_t::os_func
esp_flash_t::os_func field
Syntax
Show:
Summary
Declaration
from
esp_flash.h:98
const
esp_flash_os_functions_t
*
os_func
;
Examples
References
from
examples
Code
Location
Referrer
const
esp_flash_os_functions_t
*
os_func
;
///< Pointer to os-specific hook structure. Call ``esp_flash_init_os_functions()`` to setup this field, after the host is properly initialized.
esp_flash.h:98
if
(
chip
->
os_func
!=
NULL
&&
chip
->
os_func
->
start
!=
NULL
)
{
esp_flash_api.c:187
spiflash_start_default()
esp_err_t
err
=
chip
->
os_func
->
start
(
chip
->
os_func_data
)
;
esp_flash_api.c:188
spiflash_start_default()
if
(
chip
->
os_func
!=
NULL
esp_flash_api.c:201
spiflash_end_default()
&&
chip
->
os_func
->
end
!=
NULL
)
{
esp_flash_api.c:202
spiflash_end_default()
esp_err_t
end_err
=
chip
->
os_func
->
end
(
chip
->
os_func_data
)
;
esp_flash_api.c:203
spiflash_end_default()
CHECK_WRITE_ADDRESS
(
chip
,
start
,
len
)
;
esp_flash_api.c:596
esp_flash_erase_region()
if
(
chip
->
os_func
->
get_temp_buffer
!=
NULL
)
{
esp_flash_api.c:875
esp_flash_read()
temp_buffer
=
chip
->
os_func
->
get_temp_buffer
(
chip
->
os_func_data
,
read_chunk_size
,
&
actual_len
)
;
esp_flash_api.c:876
esp_flash_read()
if
(
chip
->
os_func
->
release_temp_buffer
!=
NULL
)
{
esp_flash_api.c:918
esp_flash_read()
chip
->
os_func
->
release_temp_buffer
(
chip
->
os_func_data
,
temp_buffer
)
;
esp_flash_api.c:919
esp_flash_read()
CHECK_WRITE_ADDRESS
(
chip
,
address
,
length
)
;
esp_flash_api.c:1013
esp_flash_write()
CHECK_WRITE_ADDRESS
(
chip
,
address
,
length
)
;
esp_flash_api.c:1230
esp_flash_write_encrypted()
chip
->
os_func
->
start
(
chip
->
os_func_data
)
;
esp_flash_spi_init.c:141
cs_initialize()
chip
->
os_func
->
end
(
chip
->
os_func_data
)
;
esp_flash_spi_init.c:154
cs_initialize()
.
os_func
=
&
esp_flash_noos_functions
,
esp_flash_spi_init.c:320
SET_FLASH_ERASE_STATUS
(
chip
,
SPI_FLASH_OS_IS_ERASING_STATUS_FLAG
)
;
spi_flash_chip_generic.c:156
spi_flash_chip_generic_erase_chip()
SET_FLASH_ERASE_STATUS
(
chip
,
0
)
;
spi_flash_chip_generic.c:164
spi_flash_chip_generic_erase_chip()
SET_FLASH_ERASE_STATUS
(
chip
,
SPI_FLASH_OS_IS_ERASING_STATUS_FLAG
)
;
spi_flash_chip_generic.c:182
spi_flash_chip_generic_erase_sector()
SET_FLASH_ERASE_STATUS
(
chip
,
0
)
;
spi_flash_chip_generic.c:190
spi_flash_chip_generic_erase_sector()
SET_FLASH_ERASE_STATUS
(
chip
,
SPI_FLASH_OS_IS_ERASING_STATUS_FLAG
)
;
spi_flash_chip_generic.c:208
spi_flash_chip_generic_erase_block()
SET_FLASH_ERASE_STATUS
(
chip
,
0
)
;
spi_flash_chip_generic.c:216
spi_flash_chip_generic_erase_block()
if
(
chip
->
os_func
->
check_yield
)
{
spi_flash_chip_generic.c:350
spi_flash_chip_generic_yield()
err
=
chip
->
os_func
->
check_yield
(
chip
->
os_func_data
,
flags
,
&
request
)
;
spi_flash_chip_generic.c:353
spi_flash_chip_generic_yield()
err
=
chip
->
os_func
->
yield
(
chip
->
os_func_data
,
&
status
)
;
spi_flash_chip_generic.c:358
spi_flash_chip_generic_yield()
chip
->
os_func
->
delay_us
(
chip
->
os_func_data
,
delay
)
;
spi_flash_chip_generic.c:385
spi_flash_chip_generic_wait_idle()
chip
->
os_func
->
delay_us
(
chip
->
os_func_data
,
delay
)
;
spi_flash_chip_generic.c:409
spi_flash_chip_generic_wait_idle()
chip
->
os_func
=
&
esp_flash_spi1_default_os_functions
;
spi_flash_os_func_app.c:289
esp_flash_init_os_functions()
chip
->
os_func
=
&
esp_flash_spi23_default_os_functions
;
spi_flash_os_func_app.c:296
esp_flash_init_os_functions()
chip
->
os_func
=
NULL
;
spi_flash_os_func_app.c:318
esp_flash_deinit_os_functions()
chip
->
os_func
=
&
esp_flash_spi1_default_os_functions
;
spi_flash_os_func_app.c:348
esp_flash_app_enable_os_functions()
chip
->
os_func
=
&
esp_flash_noos_functions
;
spi_flash_os_func_noos.c:77
esp_flash_app_disable_os_functions()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
esp_flash_t::os_func
is written by 4 functions and is read by 12 functions:
esp_flash_init_os_functions()
esp_flash_deinit_os_functions()
esp_flash_app_enable_os_functions()
esp_flash_app_disable_os_functions()
All items filtered out
esp_flash_t::os_func
spi_flash_chip_generic_erase_chip()
spi_flash_chip_generic_erase_sector()
spi_flash_chip_generic_erase_block()
spi_flash_chip_generic_yield()
spi_flash_chip_generic_wait_idle()
spiflash_start_default()
spiflash_end_default()
esp_flash_erase_region()
esp_flash_read()
esp_flash_write()
esp_flash_write_encrypted()
cs_initialize()
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