Functions | |
sint8 | spi_flash_read (uint8 *pu8Buf, uint32 u32Addr, uint32 u32Sz) |
Read a specified portion of data from SPI Flash. . More... | |
sint8 | spi_flexible_flash_find_section (uint16 u16EntryIDToLookFor, uint32 *pu32StartOffset, uint32 *pu32Size) |
Read the Flash Map to extract the host file starting offset. . More... | |
Read a specified portion of data from SPI Flash.
.
[out] | pu8Buf | Pointer to data buffer which will be filled with data in case of successful operation. |
[in] | u32Addr | Address (Offset) to read from at the SPI flash. |
[in] | u32Sz | Total size of data to be read in bytes |
[out] | pu8Buf | Pointer to data buffer which will fill in with data in case of successful operation. |
[in] | u32Addr | Address (Offset) to read from at the SPI flash. |
[in] | u32Sz | Total size of data to be read in bytes |
References FLASH_BLOCK_SIZE, M2M_SUCCESS, ret, and spi_flash_read_internal().
Referenced by m2m_flash_read(), m2m_ota_host_file_read_spi(), read_control_structure(), spi_flexible_flash_find_section(), and winc_flash_compare().
sint8 spi_flexible_flash_find_section | ( | uint16 | u16EntryIDToLookFor, |
uint32 * | pu32StartOffset, | ||
uint32 * | pu32Size | ||
) |
Read the Flash Map to extract the host file starting offset.
.
[in] | u16EntryIDToLookFor | The ID of the location in Flash we are looking for. See tenuFlashLUTEntryID. |
[in] | pu32StartOffset | Pointer to the variable where the Flash section start address should be stored. |
[in] | pu32Size | Pointer to the variable where the Flash section size should be stored. |
References FLASH_MAP_TABLE_ADDR, FLASH_SECTOR_SZ, M2M_ERR_FAIL, M2M_ERR_INVALID_ARG, M2M_SUCCESS, N_ENTRIES_MAX, NULL, and spi_flash_read().
Referenced by m2m_ota_host_file_read_spi().