Chapter 2. API Reference
uint16_t command
Command to send.
uint8_t dummy_bitlen
Basic dummy bits to use.
uint32_t io_mode
Flash working mode when SPI_FLASH_IGNORE_BASEIO is specified.
struct spi_flash_sus_cmd_conf
Configuration structure for the flash chip suspend feature.
Public Members
uint32_t sus_mask
SUS/SUS1/SUS2 bit in flash register.
uint32_t cmd_rdsr : 8
Read flash status register(2) command.
uint32_t sus_cmd : 8
Flash suspend command.
uint32_t res_cmd : 8
Flash resume command.
uint32_t reserved : 8
Reserved, set to 0.
struct spi_flash_encryption_t
Structure for flash encryption operations.
Public Members
void (*flash_encryption_enable)(void)
Enable the flash encryption.
void (*flash_encryption_disable)(void)
Disable the flash encryption.
void (*flash_encryption_data_prepare)(uint32_t address, const uint32_t *buffer,
Prepare flash encryption before operation.
Note address and buffer must be 8-word aligned.
Parameters
• address: The destination address in flash for the write operation.
• buffer: Data for programming
• size: Size to program.
void (*flash_encryption_done)(void)
flash data encryption operation is done.
void (*flash_encryption_destroy)(void)
Destroy encrypted result
bool (*flash_encryption_check)(uint32_t address, uint32_t length)
Check if is qualified to encrypt the buffer
Parameters
• address: the address of written flash partition.
• length: Buffer size.
struct spi_flash_host_inst_t
SPI Flash Host driver instance
Espressif Systems
uint32_t size)
753
Submit Document Feedback
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?