InPlay API
|
HAL_SPI_FLASH. More...
Functions | |
int | hal_spi_flash_sector_erase (uint32_t addr, uint32_t sector_nb) |
Erase SPI Flash sector. More... | |
int | hal_spi_flash_prog_page (uint32_t addr, uint8_t *data, uint32_t data_len) |
Programme SPI Flash page. More... | |
int | hal_spi_flash_verify (uint32_t addr, uint8_t *data, uint32_t size) |
Verify SPI Flash data. More... | |
int | hal_spi_flash_read (uint32_t addr, uint8_t *data, uint32_t size) |
Flash read function. More... | |
int | hal_spi_flash_read_page (uint32_t addr, uint8_t *data, uint32_t size) |
Flash read function. More... | |
HAL_SPI_FLASH.
int hal_spi_flash_prog_page | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | data_len | ||
) |
Programme SPI Flash page.
[in] | addr | Flash programme address (Starting from 0x0). |
[in] | data | Programme data buffer. |
[in] | data_len | Flash Programme size. This size shoudle be be smaller than sector size (4K). |
int hal_spi_flash_read | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | size | ||
) |
Flash read function.
[in] | addr | Flash read address (starting from 0x0). |
[in] | data | Data buffer. |
[in] | size | Data size. |
int hal_spi_flash_read_page | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | size | ||
) |
Flash read function.
[in] | addr | Flash read address (starting from 0x0). |
[in] | data | Data buffer. |
[in] | size | Data size. Max size is 256 bytes. |
int hal_spi_flash_sector_erase | ( | uint32_t | addr, |
uint32_t | sector_nb | ||
) |
Erase SPI Flash sector.
[in] | addr | Flash erase address (Starting from 0x0) |
[in] | sector_nb | sector number to erase. |
int hal_spi_flash_verify | ( | uint32_t | addr, |
uint8_t * | data, | ||
uint32_t | size | ||
) |
Verify SPI Flash data.
[in] | addr | Flash read address (starting from 0x0). |
[in] | data | Data buffer. |
[in] | size | Data size. |