Functions | |
sint8 | spi_flash_erase (uint32 u32Offset, uint32 u32Sz) |
Erase a specified portion of SPI Flash. . More... | |
uint32 | spi_flash_get_size (void) |
Returns with uint32 value which is total flash size . More... | |
sint8 | spi_flash_read (uint8 *pu8Buf, uint32 u32Addr, uint32 u32Sz) |
Read a specified portion of data from SPI Flash. . More... | |
sint8 | spi_flash_write (uint8 *pu8Buf, uint32 u32Offset, uint32 u32Sz) |
Write a specified portion of data to SPI Flash. . More... | |
Erase a specified portion of SPI Flash.
.
[in] | u32Offset | Address (Offset) to erase from the SPI flash. |
[in] | u32Sz | Total number of bytes required to be erased. |
Definition at line 616 of file spi_flash.c.
spi_flash_get_size | ( | void | ) |
Returns with uint32 value which is total flash size
.
Get size of SPI Flash.
Definition at line 654 of file spi_flash.c.
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 |
Definition at line 505 of file spi_flash.c.
Write a specified portion of data to SPI Flash.
.
[in] | pu8Buf | Pointer to data buffer which contains the data to be written. |
[in] | u32Offset | Address (Offset) to write at the SPI flash. |
[in] | u32Sz | Total number of size of data bytes |
Definition at line 539 of file spi_flash.c.