Functions | |
| bool | local_hal_flash_erase_chip (void) |
| Flash operation API based on hal flash. More... | |
| bool | local_hal_flash_erase (const uint32_t addr, const uint32_t size) |
| Erase flash region. More... | |
| uint32_t | local_hal_flash_write (const uint32_t addr, const uint8_t *buf, const uint32_t size) |
| Write flash Memory. More... | |
| uint32_t | local_hal_flash_read (const uint32_t addr, uint8_t *buf, const uint32_t size) |
| Read flash Memory. More... | |
| void | local_hal_flash_get_info (uint32_t *id, uint32_t *size) |
| Get Flash information. More... | |
| bool | local_hal_flash_get_security (void) |
| Get encrypted and decrypted status in write-read operations. More... | |
| void | local_hal_flash_set_security (bool enable) |
| Enable encrypted and decrypted in write-read operations. More... | |
| uint32_t | local_hal_flash_write_r (const uint32_t addr, const uint8_t *buf, const uint32_t size) |
| Write flash Memory reliably. More... | |
| bool local_hal_flash_erase | ( | const uint32_t | addr, |
| const uint32_t | size | ||
| ) |
Erase flash region.
| [in] | addr | start address in flash to write data to. |
| [in] | size | number of bytes to write. |
| bool local_hal_flash_erase_chip | ( | void | ) |
Flash operation API based on hal flash.
Erase flash chip.
| void local_hal_flash_get_info | ( | uint32_t * | id, |
| uint32_t * | size | ||
| ) |
Get Flash information.
| [in,out] | id | Pointer to flash id. |
| [in,out] | size | Pointer to flash size. |
| bool local_hal_flash_get_security | ( | void | ) |
Get encrypted and decrypted status in write-read operations.
| uint32_t local_hal_flash_read | ( | const uint32_t | addr, |
| uint8_t * | buf, | ||
| const uint32_t | size | ||
| ) |
Read flash Memory.
| [in] | addr | start address in flash to read data. |
| [in,out] | buf | buffer to read data to. |
| [in] | size | number of bytes to read. |
| void local_hal_flash_set_security | ( | bool | enable | ) |
Enable encrypted and decrypted in write-read operations.
| [in] | enable | control encrypted and decrypte. |
| uint32_t local_hal_flash_write | ( | const uint32_t | addr, |
| const uint8_t * | buf, | ||
| const uint32_t | size | ||
| ) |
Write flash Memory.
| [in] | addr | start address in flash to write data to. |
| [in,out] | buf | buffer of data to write. |
| [in] | size | number of bytes to write. |
| uint32_t local_hal_flash_write_r | ( | const uint32_t | addr, |
| const uint8_t * | buf, | ||
| const uint32_t | size | ||
| ) |
Write flash Memory reliably.
| [in] | addr | start address in flash to write data to. |
| [in,out] | buf | buffer of data to write. |
| [in] | size | number of bytes to write. |