|
rusEFI
The most advanced open source ECU
|
Typedefs | |
| typedef uint32_t | flashdata_t |
Functions | |
| bool | flashUnlock (void) |
| bool | flashLock (void) |
| static int | alignToWord (int v) |
| static | __attribute__ ((optimize("O0"))) int flashSectorEraseAtAddress(volatile uint32_t sectorStart) |
| for (i=0;i< numSectors;i++) | |
| int | intFlashWrite (flashaddr_t address, const char *buffer, size_t size) |
Copy data from a buffer to the flash memory. | |
| bool | intFlashIsErased (flashaddr_t address, size_t size) |
Check if the size bytes of flash memory starting at address are erased. | |
| bool | intFlashCompare (flashaddr_t address, const char *buffer, size_t size) |
Check if the data in buffer are identical to the one in flash memory. | |
| int | intFlashRead (flashaddr_t source, char *destination, size_t size) |
Copy data from the flash memory to a destination. | |
Variables | |
| static volatile uint32_t | mainFlashMap [] |
| int size_t | size |
| volatile int | numSectors = (sizeof(mainFlashMap) / sizeof(mainFlashMap[0])) - 1 |
| return | FLASH_RETURN_SUCCESS |
| typedef uint32_t flashdata_t |
Definition at line 20 of file flash_int.cpp.
|
static |
Definition at line 47 of file flash_int.cpp.
|
static |
Definition at line 43 of file flash_int.cpp.
Referenced by intFlashErase(), and intFlashWrite().

| bool flashLock | ( | void | ) |
Definition at line 37 of file flash_int.cpp.
Referenced by intFlashErase(), and intFlashWrite().

| bool flashUnlock | ( | void | ) |
Definition at line 33 of file flash_int.cpp.
Referenced by intFlashErase(), and intFlashWrite().

| for | ( | ) |
Definition at line 63 of file flash_int.cpp.
| bool intFlashCompare | ( | flashaddr_t | address, |
| const char * | buffer, | ||
| size_t | size | ||
| ) |
Check if the data in buffer are identical to the one in flash memory.
| address | First address in flash memory to be checked. |
| buffer | Buffer containing the data to compare. |
| size | Size of buffer in bytes. |
Definition at line 109 of file flash_int.cpp.
| bool intFlashIsErased | ( | flashaddr_t | address, |
| size_t | size | ||
| ) |
Check if the size bytes of flash memory starting at address are erased.
| address | First address in flash memory to be checked. |
| size | Size of the memory space to be checked in bytes. |
Definition at line 89 of file flash_int.cpp.
Referenced by intFlashSectorErase().

| int intFlashRead | ( | flashaddr_t | source, |
| char * | destination, | ||
| size_t | size | ||
| ) |
Copy data from the flash memory to a destination.
destination must be at least size bytes long. | source | First address of the flash memory to be copied. |
| destination | Buffer to copy to. |
| size | Size of the data to be copied in bytes. |
Definition at line 130 of file flash_int.cpp.
| int intFlashWrite | ( | flashaddr_t | address, |
| const char * | buffer, | ||
| size_t | size | ||
| ) |
Copy data from a buffer to the flash memory.
buffer must be at least size bytes long. | address | First address in the flash memory where to copy the data to. |
| buffer | Buffer containing the data to copy. |
| size | Size of the data to be copied in bytes. |
Definition at line 83 of file flash_int.cpp.

| return FLASH_RETURN_SUCCESS |
Definition at line 80 of file flash_int.cpp.
Referenced by __attribute__(), FlashErase(), FlashWrite(), for(), intFlashCheckErrors(), intFlashErase(), intFlashRead(), intFlashSectorErase(), and intFlashWrite().
|
static |
Definition at line 22 of file flash_int.cpp.
Referenced by for().
| volatile int numSectors = (sizeof(mainFlashMap) / sizeof(mainFlashMap[0])) - 1 |
Definition at line 61 of file flash_int.cpp.
| size |
Definition at line 51 of file flash_int.cpp.
Referenced by for(), intFlashCompare(), intFlashErase(), intFlashIsErased(), intFlashRead(), and intFlashWrite().