Function esp_idf_sys::spi_flash_cache2phys
source ยท pub unsafe extern "C" fn spi_flash_cache2phys(
cached: *const c_void,
) -> usize
Expand description
@brief 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.
@param cached Pointer to flashed cached memory.
@return
- SPI_FLASH_CACHE2PHYS_FAIL If cache address is outside flash cache region, or the address is not mapped.
- Otherwise, returns physical offset in flash