Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
FlashAccess Class Reference
FlashAccess class Flash access library for GR-Boards. More...
#include <FlashAccess.h>
Public Member Functions | |
| FlashAccess () | |
| Constructor. | |
| bool | SectorErase (uint32_t addr) _RAM_PRG |
| Sector Erase. | |
| bool | PageProgram (uint32_t addr, uint8_t *buf, int32_t size) _RAM_PRG |
| Page Program. | |
| bool | Read (uint32_t addr, uint8_t *buf, int32_t size) _RAM_PRG |
| Read. | |
Protected Member Functions | |
| bool | _SectorErase (uint32_t addr) _RAM_PRG |
| protected | |
Detailed Description
FlashAccess class Flash access library for GR-Boards.
Definition at line 38 of file FlashAccess.h.
Constructor & Destructor Documentation
| FlashAccess | ( | ) |
Member Function Documentation
| bool _SectorErase | ( | uint32_t | addr ) | [protected] |
protected
Definition at line 101 of file FlashAccess.cpp.
| bool PageProgram | ( | uint32_t | addr, |
| uint8_t * | buf, | ||
| int32_t | size | ||
| ) |
Page Program.
The Page Program instruction allows from one byte to 256 bytes (a page) of data to be programmed at previously erased (FFh) memory locations.
- Parameters:
-
addr starting address buf the buffer to read into size size of the data
- Returns:
- true = success, false = failure
Definition at line 67 of file FlashAccess.cpp.
| bool Read | ( | uint32_t | addr, |
| uint8_t * | buf, | ||
| int32_t | size | ||
| ) |
Read.
The Read Data instruction allows one or more data bytes to be sequentially read from the memory.
- Parameters:
-
addr starting address buf the buffer to write from size size of the data
- Returns:
- true = success, false = failure
Definition at line 83 of file FlashAccess.cpp.
| bool SectorErase | ( | uint32_t | addr ) |
Sector Erase.
The Sector Erase instruction sets all memory within a specified sector (4K-bytes) to the erased state of all 1s (FFh).
- Parameters:
-
addr sector address
- Returns:
- true = success, false = failure
Definition at line 51 of file FlashAccess.cpp.
Generated on Fri Jul 29 2022 15:06:33 by
1.7.2