Mouse code for the MacroRat
FlashIAP Class Reference
[Drivers]
Flash IAP driver. More...
#include <FlashIAP.h>
Public Member Functions | |
int | init () |
Initialize a flash IAP device. | |
int | deinit () |
Deinitialize a flash IAP device. | |
int | read (void *buffer, uint32_t addr, uint32_t size) |
Read data from a flash device. | |
int | program (const void *buffer, uint32_t addr, uint32_t size) |
Program data to pages. | |
int | erase (uint32_t addr, uint32_t size) |
Erase sectors. | |
uint32_t | get_sector_size (uint32_t addr) const |
Get the sector size at the defined address. | |
uint32_t | get_flash_start () const |
Get the flash start address. | |
uint32_t | get_flash_size () const |
Get the flash size. | |
uint32_t | get_page_size () const |
Get the program page size. |
Detailed Description
Flash IAP driver.
It invokes flash HAL functions.
Note Synchronization level: Thread safe
Definition at line 40 of file FlashIAP.h.
Generated on Tue Jul 12 2022 17:41:26 by 1.7.2