ESP-IDF
+
0
/1 examples
SourceVu will show references to
spi_flash_host_inst_t::driver
from the following samples and libraries:
custom_flash_driver sample
Symbol previews are coming soon...
Symbols
loading (2/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
spi_flash_host_inst_t::driver
spi_flash_host_inst_t::driver field
Syntax
Show:
Summary
Declaration
from
spi_flash_types.h:129
const
struct
spi_flash_host_driver_s
*
driver
;
Examples
spi_flash_host_inst_t::driver
is referenced by 1 libraries and example projects:
custom_flash_driver sample
References
from
0/1
examples
Code
Location
Referrer
const
struct
spi_flash_host_driver_s
*
driver
;
///< Pointer to the implementation function table
spi_flash_types.h:129
chip
->
host
->
driver
->
dev_config
(
chip
->
host
)
;
esp_flash_api.c:193
spiflash_start_default()
if
(
chip
->
host
->
driver
->
flush_cache
)
{
esp_flash_api.c:235
flash_end_flush_cache()
esp_err_t
flush_err
=
chip
->
host
->
driver
->
flush_cache
(
chip
->
host
,
address
,
length
)
;
esp_flash_api.c:236
flash_end_flush_cache()
if
(
chip
==
NULL
||
chip
->
host
==
NULL
||
chip
->
host
->
driver
==
NULL
||
esp_flash_api.c:263
esp_flash_init()
if
(
chip
==
NULL
||
chip
->
host
==
NULL
||
chip
->
host
->
driver
==
NULL
||
esp_flash_api.c:336
esp_flash_init_main()
read_id_func
=
(
void
*
)
chip
->
host
->
driver
->
read_id
;
esp_flash_api.c:419
read_id_core()
direct_read
|=
chip
->
host
->
driver
->
supports_direct_read
(
chip
->
host
,
buffer
)
;
esp_flash_api.c:866
esp_flash_read()
direct_write
|=
chip
->
host
->
driver
->
supports_direct_write
(
chip
->
host
,
buffer
)
;
esp_flash_api.c:1026
esp_flash_write()
host
->
inst
.
driver
=
&
esp_flash_default_host
;
memspi_host_driver.c:80
memspi_host_init_pointers()
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:99
memspi_host_read_id_hs()
esp_err_t
err
=
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:124
memspi_host_read_status_hs()
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:144
memspi_host_erase_chip()
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:156
memspi_host_erase_sector()
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:168
memspi_host_erase_block()
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:182
memspi_host_program_page()
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:194
memspi_host_read()
host
->
driver
->
common_command
(
host
,
&
t
)
;
memspi_host_driver.c:203
memspi_host_set_write_protect()
return
chip
->
host
->
driver
->
sus_setup
(
chip
->
host
,
&
sus_conf
)
;
spi_flash_chip_gd.c:137
spi_flash_chip_gd_suspend_cmd_conf()
esp_err_t
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_generic.c:129
spi_flash_chip_generic_reset()
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_generic.c:137
spi_flash_chip_generic_reset()
chip
->
host
->
driver
->
erase_chip
(
chip
->
host
)
;
spi_flash_chip_generic.c:157
spi_flash_chip_generic_erase_chip()
chip
->
host
->
driver
->
erase_sector
(
chip
->
host
,
start_address
)
;
spi_flash_chip_generic.c:183
spi_flash_chip_generic_erase_sector()
chip
->
host
->
driver
->
erase_block
(
chip
->
host
,
start_address
)
;
spi_flash_chip_generic.c:209
spi_flash_chip_generic_erase_block()
uint32_t
read_len
=
chip
->
host
->
driver
->
read_data_slicer
(
chip
->
host
,
address
,
length
,
&
align_address
,
page_size
)
;
spi_flash_chip_generic.c:244
spi_flash_chip_generic_read()
err
=
chip
->
host
->
driver
->
read
(
chip
->
host
,
temp_buffer
,
align_address
,
read_len
)
;
spi_flash_chip_generic.c:247
spi_flash_chip_generic_read()
chip
->
host
->
driver
->
program_page
(
chip
->
host
,
buffer
,
address
,
length
)
;
spi_flash_chip_generic.c:267
spi_flash_chip_generic_page_program()
uint32_t
page_len
=
chip
->
host
->
driver
->
write_data_slicer
(
chip
->
host
,
address
,
length
,
&
align_address
,
page_size
)
;
spi_flash_chip_generic.c:288
spi_flash_chip_generic_write()
chip
->
host
->
driver
->
set_write_protect
(
chip
->
host
,
write_protect
)
;
spi_flash_chip_generic.c:314
spi_flash_chip_generic_set_write_protect()
return
chip
->
host
->
driver
->
read_status
(
chip
->
host
,
(
uint8_t
*
)
out_reg
)
;
spi_flash_chip_generic.c:342
spi_flash_chip_generic_read_reg()
while
(
!
chip
->
host
->
driver
->
host_status
(
chip
->
host
)
&&
timeout_us
>
0
)
{
spi_flash_chip_generic.c:380
spi_flash_chip_generic_wait_idle()
return
chip
->
host
->
driver
->
configure_host_io_mode
(
chip
->
host
,
read_command
,
addr_bitlen
,
dummy_cyclelen_base
,
read_mode
)
;
spi_flash_chip_generic.c:474
spi_flash_chip_generic_config_host_io_mode()
esp_err_t
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
transfer
)
;
spi_flash_chip_generic.c:582
spi_flash_chip_generic_read_unique_id()
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_generic.c:625
spi_flash_chip_generic_get_caps()
esp_err_t
ret
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_generic.c:703
spi_flash_common_read_qe_sr()
return
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_generic.c:716
spi_flash_common_write_qe_sr()
return
chip
->
host
->
driver
->
sus_setup
(
chip
->
host
,
&
sus_conf
)
;
spi_flash_chip_generic.c:844
spi_flash_chip_generic_suspend_cmd_conf()
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:77
spi_flash_chip_mxic_opi_set_write_protect()
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:110
spi_flash_chip_mxic_opi_read_id()
esp_err_t
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:144
spi_flash_chip_mxic_opi_read_reg()
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:182
spi_flash_chip_mxic_opi_erase_chip()
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:212
spi_flash_chip_mxic_opi_erase_sector()
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:241
spi_flash_chip_mxic_opi_erase_block()
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:272
spi_flash_chip_mxic_opi_page_program()
uint32_t
page_len
=
chip
->
host
->
driver
->
write_data_slicer
(
chip
->
host
,
address
,
length
,
&
align_address
,
page_size
)
;
spi_flash_chip_mxic_opi.c:293
spi_flash_chip_mxic_opi_write()
esp_err_t
err
=
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_mxic_opi.c:325
spi_flash_chip_mxic_opi_get_io_mode()
return
chip
->
host
->
driver
->
configure_host_io_mode
(
chip
->
host
,
read_command
,
addr_bitlen
,
dummy_cyclelen_base
,
read_mode
)
;
spi_flash_chip_mxic_opi.c:384
spi_flash_chip_xmic_opi_config_host_io_mode()
uint32_t
read_len
=
chip
->
host
->
driver
->
read_data_slicer
(
chip
->
host
,
address
,
length
,
&
align_address
,
page_size
)
;
spi_flash_chip_winbond.c:58
spi_flash_chip_winbond_read()
err
=
chip
->
host
->
driver
->
read
(
chip
->
host
,
temp_buffer
,
align_address
,
read_len
)
;
spi_flash_chip_winbond.c:61
spi_flash_chip_winbond_read()
if
(
chip
->
host
->
driver
->
flush_cache
)
{
spi_flash_chip_winbond.c:104
spi_flash_chip_winbond_erase_sector()
err
=
chip
->
host
->
driver
->
flush_cache
(
chip
->
host
,
start_address
,
chip
->
chip_drv
->
sector_size
)
;
spi_flash_chip_winbond.c:105
spi_flash_chip_winbond_erase_sector()
if
(
chip
->
host
->
driver
->
flush_cache
)
{
spi_flash_chip_winbond.c:128
spi_flash_chip_winbond_erase_block()
err
=
chip
->
host
->
driver
->
flush_cache
(
chip
->
host
,
start_address
,
chip
->
chip_drv
->
block_erase_size
)
;
spi_flash_chip_winbond.c:129
spi_flash_chip_winbond_erase_block()
return
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_winbond.c:206
spi_flash_command_winbond_program_4B()
return
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_winbond.c:218
spi_flash_command_winbond_erase_sector_4B()
return
chip
->
host
->
driver
->
common_command
(
chip
->
host
,
&
t
)
;
spi_flash_chip_winbond.c:230
spi_flash_command_erase_block_4B()
host
->
driver
->
configure_host_io_mode
(
host
,
command
,
trans
->
address_bitlen
,
dummy_bitlen
,
io_mode
)
;
spi_flash_hal_common.inc:181
spi_flash_hal_common_command()
host
->
driver
->
poll_cmd_done
(
host
)
;
spi_flash_hal_common.inc:197
spi_flash_hal_common_command()
host
->
driver
->
poll_cmd_done
(
host
)
;
spi_flash_hal_common.inc:213
spi_flash_hal_read()
host
->
driver
->
poll_cmd_done
(
host
)
;
spi_flash_hal_iram.c:36
spi_flash_hal_erase_chip()
host
->
driver
->
poll_cmd_done
(
host
)
;
spi_flash_hal_iram.c:53
spi_flash_hal_erase_sector()
host
->
driver
->
poll_cmd_done
(
host
)
;
spi_flash_hal_iram.c:69
spi_flash_hal_erase_block()
host
->
driver
->
poll_cmd_done
(
host
)
;
spi_flash_hal_iram.c:80
spi_flash_hal_program_page()
host
->
driver
->
poll_cmd_done
(
host
)
;
spi_flash_hal_iram.c:87
spi_flash_hal_set_write_protect()
Call Tree
from
0/1
examples
All items filtered out
All items filtered out
Data Use
from
0/1
examples
spi_flash_host_inst_t::driver
is written by 1 function and is read by 55 functions:
memspi_host_init_pointers()
All items filtered out
spi_flash_host_inst_t::driver
spi_flash_hal_erase_chip()
spi_flash_hal_erase_sector()
spi_flash_hal_erase_block()
spi_flash_hal_program_page()
spi_flash_hal_set_write_protect()
spi_flash_hal_common_command()
spi_flash_hal_read()
spi_flash_chip_generic_reset()
spi_flash_chip_generic_erase_chip()
spi_flash_chip_generic_erase_sector()
spi_flash_chip_generic_erase_block()
spi_flash_chip_generic_read()
spi_flash_chip_generic_page_program()
spi_flash_chip_generic_write()
spi_flash_chip_generic_set_write_protect()
spi_flash_chip_generic_read_reg()
spi_flash_chip_generic_wait_idle()
spi_flash_chip_generic_config_host_io_mode()
spi_flash_chip_generic_read_unique_id()
spi_flash_chip_generic_get_caps()
spi_flash_common_read_qe_sr()
spi_flash_common_write_qe_sr()
spi_flash_chip_generic_suspend_cmd_conf()
spi_flash_chip_gd_suspend_cmd_conf()
spi_flash_chip_winbond_read()
spi_flash_chip_winbond_erase_sector()
spi_flash_chip_winbond_erase_block()
spi_flash_command_winbond_program_4B()
spi_flash_command_winbond_erase_sector_4B()
spi_flash_command_erase_block_4B()
spi_flash_chip_mxic_opi_set_write_protect()
spi_flash_chip_mxic_opi_read_id()
spi_flash_chip_mxic_opi_read_reg()
spi_flash_chip_mxic_opi_erase_chip()
spi_flash_chip_mxic_opi_erase_sector()
spi_flash_chip_mxic_opi_erase_block()
spi_flash_chip_mxic_opi_page_program()
spi_flash_chip_mxic_opi_write()
spi_flash_chip_mxic_opi_get_io_mode()
spi_flash_chip_xmic_opi_config_host_io_mode()
memspi_host_read_id_hs()
memspi_host_read_status_hs()
memspi_host_erase_chip()
memspi_host_erase_sector()
memspi_host_erase_block()
memspi_host_program_page()
memspi_host_read()
memspi_host_set_write_protect()
spiflash_start_default()
flash_end_flush_cache()
esp_flash_init()
esp_flash_init_main()
read_id_core()
esp_flash_read()
esp_flash_write()
All items filtered out
Class Tree
from
0/1
examples
All items filtered out
All items filtered out
Override Tree
from
0/1
examples
All items filtered out
All items filtered out
Implementations
from
0/1
examples
All items filtered out
All items filtered out
Instances
from
0/1
examples
Lifecycle
from
0/1
examples
All items filtered out
All items filtered out