spi_flash_host_driver_s is only used within ESP-IDF.
 
Symbols
loading...
Files
loading (1/5)...
SummarySyntaxReferencesInstances

Fields

Field
Declared as
Description
esp_err_t (*)(spi_flash_host_inst_t* host, uint32_t addr, uint32_t size)
For some host (SPI1), they are shared with a cache. When the data is modified, the cache needs to be flushed. Left NULL if not supported.
void (*)(spi_flash_host_inst_t *host)
Suspend check erase/program operation, reserved for ESP32-C3 and ESP32-S3 spi flash ROM IMPL.
void (*)(spi_flash_host_inst_t *host)
Resume flash from suspend manually.
void (*)(spi_flash_host_inst_t *host)
Set flash in suspend status manually.
esp_err_t (*)(spi_flash_host_inst_t *host, const spi_flash_sus_cmd_conf *sus_conf)
Suspend feature setup for setting cmd and status register mask.
Configure the device-related register before transactions. This saves some time to re-configure those registers when we send continuously.
Send an user-defined spi transaction to the device.
esp_err_t (*)(spi_flash_host_inst_t *host, uint32_t *id)
Read flash ID.
void (*)(spi_flash_host_inst_t *host)
Erase whole flash chip.
void (*)(spi_flash_host_inst_t *host, uint32_t start_address)
Erase a specific sector by its start address.
void (*)(spi_flash_host_inst_t *host, uint32_t start_address)
Erase a specific block by its start address.
esp_err_t (*)(spi_flash_host_inst_t *host, uint8_t *out_sr)
Read the status of the flash chip.
esp_err_t (*)(spi_flash_host_inst_t *host, bool wp)
Disable write protection.
void (*)(spi_flash_host_inst_t *host, const void *buffer, uint32_t address, uint32_t length)
Program a page of the flash. Check ``max_write_bytes`` for the maximum allowed writing length.
bool (*)(spi_flash_host_inst_t *host, const void *p)
Check whether the SPI host supports direct write When cache is disabled, SPI1 doesn't support directly write when buffer isn't internal.
int (*)(spi_flash_host_inst_t *host, uint32_t address, uint32_t len, uint32_t *align_addr, uint32_t page_size)
Slicer for write data. The `program_page` should be called iteratively with the return value of this function.
esp_err_t (*)(spi_flash_host_inst_t *host, void *buffer, uint32_t address, uint32_t read_len)
Read data from the flash. Check ``max_read_bytes`` for the maximum allowed reading length.
bool (*)(spi_flash_host_inst_t *host, const void *p)
Check whether the SPI host supports direct read When cache is disabled, SPI1 doesn't support directly read when the given buffer isn't internal.
int (*)(spi_flash_host_inst_t *host, uint32_t address, uint32_t len, uint32_t *align_addr, uint32_t page_size)
Slicer for read data. The `read` should be called iteratively with the return value of this function.
uint32_t (*)(spi_flash_host_inst_t *host)
Check the host status, 0:busy, 1:idle, 2:suspended.
esp_err_t (*)(spi_flash_host_inst_t *host, uint32_t command, uint32_t addr_bitlen, int dummy_bitlen_base, esp_flash_io_mode_t io_mode)
Configure the host to work at different read mode. Responsible to compensate the timing and set IO mode.
void (*)(spi_flash_host_inst_t *host)
Internal use, poll the HW until the last operation is done.

References