spi_flash_cache2phys() function
Given a memory address where flash is mapped, return the corresponding physical flash offset. Cache address does not have have been assigned via spi_flash_mmap(), any address in memory mapped flash space can be looked up.
Syntax
size_t spi_flash_cache2phys(const void *cached); Arguments
cached
Pointer to flashed cached memory.
Return value
- SPI_FLASH_CACHE2PHYS_FAIL If cache address is outside flash cache region, or the address is not mapped. - Otherwise, returns physical offset in flash
spi_flash_cache2phys() is called by 1 function and calls 1 function:
![]()
spi_flash_cache2phys()
spi_flash_cache2phys():
![]()
spi_flash_cache2phys()