esp_spi_flash.h
Go to the documentation of this file.
50 MODE_QIO = 0,
51 MODE_QOUT = 1,
52 MODE_DIO = 2,
53 MODE_DOUT = 15,
57 SPEED_40MHZ = 0,
58 SPEED_26MHZ = 1,
59 SPEED_20MHZ = 2,
60 SPEED_80MHZ = 15,
64 SIZE_4MBIT = 0,
65 SIZE_2MBIT = 1,
66 SIZE_8MBIT = 2,
67 SIZE_16MBIT = 3,
68 SIZE_32MBIT = 4,
uint8_t flashmem_get_size_type()
Returns a number indicating the size of flash memory chip.
uint32_t flashmem_get_address(const void *memptr)
Obtain the flash memory address for a memory pointer.
SPI Flash memory information block. Stored at the beginning of flash memory.
Definition: esp_spi_flash.h:44
uint32_t flashmem_write_internal(const void *from, uint32_t toaddr, uint32_t size)
write to flash memory
uint32_t flashmem_read_internal(void *to, uint32_t fromaddr, uint32_t size)
Read from flash memory.
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.
uint32_t flashmem_write(const void *from, uint32_t toaddr, uint32_t size)
Write a block of data to flash.
uint32_t flashmem_get_sector_of_address(uint32_t addr)
Get sector number containing the given address.
uint32_t flashmem_get_first_free_block_address()
uint32_t flashmem_read(void *to, uint32_t fromaddr, uint32_t size)
Read a block of data from flash.