ESP-IDF
spi_flash_hal_context_t
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
spi_flash_hal_context_t
spi_flash_hal_context_t struct
Generic driver context structure for all chips using the SPI peripheral. Include this into the HEAD of the driver data for other driver implementations that also use the SPI peripheral.
Syntax
Show:
Summary
Declaration
from
spi_flash_hal.h:35
typedef
struct
{
spi_flash_host_inst_t
inst
;
spi_dev_t
*
spi
;
int
cs_num
;
struct
{
uint8_t
extra_dummy
;
uint8_t
cs_setup
;
uint8_t
cs_hold
;
uint8_t
reserved2
;
}
;
spi_flash_ll_clock_reg_t
clock_conf
;
esp_flash_io_mode_t
base_io_mode
;
uint32_t
flags
;
#define
SPI_FLASH_HOST_CONTEXT_FLAG_AUTO_SUSPEND
BIT
(
0
)
#define
SPI_FLASH_HOST_CONTEXT_FLAG_AUTO_RESUME
BIT
(
1
)
#define
SPI_FLASH_HOST_CONTEXT_FLAG_OCTAL_MODE
BIT
(
2
)
spi_flash_sus_cmd_conf
sus_cfg
;
uint32_t
slicer_flags
;
#define
SPI_FLASH_HOST_CONTEXT_SLICER_FLAG_DTR
BIT
(
0
)
int
freq_mhz
;
uint8_t
tsus_val
;
}
spi_flash_hal_context_t
;
Fields
Field
Declared as
Description
spi_flash_hal_context_t::inst
spi_flash_host_inst_t
spi_flash_hal_context_t::spi
spi_dev_t
*
spi_flash_hal_context_t::cs_num
int
spi_flash_hal_context_t::clock_conf
spi_flash_ll_clock_reg_t
spi_flash_hal_context_t::base_io_mode
esp_flash_io_mode_t
spi_flash_hal_context_t::flags
uint32_t
spi_flash_hal_context_t::sus_cfg
spi_flash_sus_cmd_conf
spi_flash_hal_context_t::slicer_flags
uint32_t
spi_flash_hal_context_t::freq_mhz
int
spi_flash_hal_context_t::tsus_val
uint8_t
Flash clock frequency.
Related Functions
Found 2 other functions taking a
spi_flash_hal_context_t
argument:
Function
Description
memspi_host_init_pointers()
Initialize the memory SPI host.
spi_flash_hal_init()
Configure SPI flash hal settings.
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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