20.4.5 flash_read
Reads a number of bytes to a page in the internal Flash.
int32_t flash_read(
struct flash_descriptor * flash,
uint32_t src_addr,
uint8_t * buffer,
uint32_t length
)
Parameters
- flash
-
Type: struct flash_descriptor Struct *
Pointer to the HAL FLASH instance.
- src_addr
-
Type: uint32_t
Source bytes address to read from flash
- buffer
-
Type: uint8_t *
Pointer to a buffer where the content of the read pages will be stored
- length
-
Type: uint32_t
Number of bytes to read
Returns
Type: int32_t
Read status.