#include <esp32/rom/spi_flash.h>#include <user_config.h>
Include dependency graph for Esp32/Components/spi_flash/include/esp_spi_flash.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
| struct | STORE_TYPEDEF_ATTR |
| SPI Flash memory information block. Stored at the beginning of flash memory. More... | |
Macros | |
| #define | SPI_FLASH_RESULT_OK 0 |
| #define | INTERNAL_FLASH_WRITE_UNIT_SIZE 4 |
| Flash memory access must be aligned and in multiples of 4-byte words. More... | |
| #define | INTERNAL_FLASH_READ_UNIT_SIZE 4 |
| #define | FLASH_TOTAL_SEC_COUNT (flashmem_get_size_sectors()) |
| #define | SYS_PARAM_SEC_COUNT 4 |
| Number of flash sectors reserved for system parameters at start. More... | |
| #define | FLASH_WORK_SEC_COUNT (FLASH_TOTAL_SEC_COUNT - SYS_PARAM_SEC_COUNT) |
| #define | INTERNAL_FLASH_SECTOR_SIZE SPI_FLASH_SEC_SIZE |
| #define | INTERNAL_FLASH_SIZE ((FLASH_WORK_SEC_COUNT)*INTERNAL_FLASH_SECTOR_SIZE) |
| #define | INTERNAL_FLASH_START_ADDRESS 0x40200000 |
Functions | |
| uint32_t | flashmem_get_address (const void *memptr) |
| Obtain the flash memory address for a memory pointer. More... | |
| uint32_t | flashmem_write (const void *from, uint32_t toaddr, uint32_t size) |
| Write a block of data to flash. More... | |
| uint32_t | flashmem_read (void *to, uint32_t fromaddr, uint32_t size) |
| Read a block of data from flash. More... | |
| bool | flashmem_erase_sector (uint32_t sector_id) |
| Erase a single flash sector. More... | |
| SPIFlashInfo | flashmem_get_info () |
| Get flash memory information block. More... | |
| uint8_t | flashmem_get_size_type () |
| Returns a number indicating the size of flash memory chip. More... | |
| uint32_t | flashmem_get_size_bytes () |
| get the total flash memory size More... | |
| uint16_t | flashmem_get_size_sectors () |
| Get the total number of flash sectors. More... | |
| uint32_t | flashmem_find_sector (uint32_t address, uint32_t *pstart, uint32_t *pend) |
| Helper function: find the flash sector in which an address resides. More... | |
| uint32_t | flashmem_get_sector_of_address (uint32_t addr) |
| Get sector number containing the given address. More... | |
| uint32_t | flashmem_write_internal (const void *from, uint32_t toaddr, uint32_t size) |
| write to flash memory More... | |
| uint32_t | flashmem_read_internal (void *to, uint32_t fromaddr, uint32_t size) |
| Read from flash memory. More... | |
| uint32_t | flashmem_get_first_free_block_address () |
1.8.13