Esp8266/Components/spi_flash/include/esp_spi_flash.h
Go to the documentation of this file.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:58
uint8_t size
SPIFlashSize.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:74
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:59
uint8_t speed
SPIFlashSpeed.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:73
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:44
uint8_t mode
SPIFlashMode.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:72
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:45
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:51
uint8_t flashmem_get_size_type()
Returns a number indicating the size of flash memory chip.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:54
uint32_t flashmem_get_address(const void *memptr)
Obtain the flash memory address for a memory pointer.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:52
uint8_t unknown1
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:71
SPI Flash memory information block. Stored at the beginning of flash memory.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:69
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:42
uint32_t flashmem_write_internal(const void *from, uint32_t toaddr, uint32_t size)
write to flash memory
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:62
uint32_t flashmem_read_internal(void *to, uint32_t fromaddr, uint32_t size)
Read from flash memory.
uint8_t unknown0
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:70
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:61
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.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:60
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:53
uint32_t flashmem_write(const void *from, uint32_t toaddr, uint32_t size)
Write a block of data to flash.
SPI Flash memory information block. Copied from bootloader header. See esp_image_header_t.
Definition: Esp32/Components/spi_flash/include/esp_spi_flash.h:76
uint32_t flashmem_get_sector_of_address(uint32_t addr)
Get sector number containing the given address.
Definition: Esp8266/Components/spi_flash/include/esp_spi_flash.h:43
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.