Esp8266/Components/spi_flash/include/esp_spi_flash.h
Go to the documentation of this file.
uint32_t flashmem_read(void *to, uint32_t fromaddr, uint32_t size)
Read a block of data from flash.
uint8_t flashmem_get_size_type()
Returns a number indicating the size of flash memory chip.
uint32_t flashmem_write(const void *from, uint32_t toaddr, uint32_t size)
Write a block of data to flash.
static uint32_t flashmem_get_address(const void *memptr)
Obtain the flash memory address for a memory pointer.
Definition: Esp32/Components/spi_flash/include/esp_spi_flash.h:90
uint32_t flashmem_read_internal(void *to, uint32_t fromaddr, uint32_t size)
Read from flash memory.
uint32_t flashmem_get_sector_of_address(uint32_t addr)
Get sector number containing the given address.
uint32_t flashmem_write_internal(const void *from, uint32_t toaddr, uint32_t size)
write to 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_get_first_free_block_address()
@ MODE_FAST_READ
Not supported.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:48
@ MODE_SLOW_READ
Not supported.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:47
@ SIZE_1MBIT
Not supported.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:64
SPI Flash memory information block. Copied from bootloader header. See esp_image_header_t.
Definition: Esp32/Components/spi_flash/include/esp_spi_flash.h:77
SPI Flash memory information block. Stored at the beginning of flash memory.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:70
uint8_t unknown1
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:72
uint8_t unknown0
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:71
uint8_t size
SPIFlashSize.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:75
uint8_t speed
SPIFlashSpeed.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:74
uint8_t mode
SPIFlashMode.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:73