|
rusEFI
The most advanced open source ECU
|
Typedefs | |
| typedef uint32_t | flashdata_t |
Functions | |
| void | flashPrintStatus (void) |
| static bool | flashInit (void) |
| bool | flashUnlock (void) |
| bool | flashLock (void) |
| static int | alignToWord (int v) |
| int | intFlashErase (flashaddr_t address, size_t size) |
Erase the sectors containing the span of size bytes starting at address. | |
| 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 bool | wasInit = false |
| static bool | isLocked = true |
| static bool | isInitializing = false |
| static flexnvm_config_t | flashCfg |
| static status_t | initStatus = -1 |
| static status_t | protectStatus = -1 |
| static status_t | securityStatus = -1 |
| static uint8_t | protectValue = 0 |
| static ftfx_security_state_t | sstate |
| static kinetis_clock_type_e | savedClockType = KINETIS_DEFAULT_CLK |
| typedef uint32_t flashdata_t |
Definition at line 19 of file flash_int.cpp.
|
static |
Definition at line 111 of file flash_int.cpp.
|
static |
Definition at line 56 of file flash_int.cpp.
Referenced by flashUnlock().


| bool flashLock | ( | void | ) |
Definition at line 96 of file flash_int.cpp.

| void flashPrintStatus | ( | void | ) |
Definition at line 35 of file flash_int.cpp.
Referenced by flashInit().


| bool flashUnlock | ( | void | ) |
Definition at line 74 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 173 of file flash_int.cpp.

| int intFlashErase | ( | flashaddr_t | address, |
| size_t | size | ||
| ) |
Erase the sectors containing the span of size bytes starting at address.
address doesn't match the beginning of a sector, the data contained between the beginning of the sector and address will be erased too. The same applies for data contained at address + size up to the end of the sector.| address | Starting address of the span in flash memory. |
| size | Size of the span in bytes. |
Definition at line 115 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 153 of file flash_int.cpp.
| 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 200 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 133 of file flash_int.cpp.

|
static |
Definition at line 24 of file flash_int.cpp.
Referenced by flashInit(), flashPrintStatus(), intFlashCompare(), intFlashErase(), and intFlashWrite().
|
static |
Definition at line 26 of file flash_int.cpp.
Referenced by flashInit(), and flashPrintStatus().
|
static |
Definition at line 23 of file flash_int.cpp.
Referenced by flashInit(), and flashUnlock().
|
static |
Definition at line 22 of file flash_int.cpp.
Referenced by SingleTimerExecutor::executeAllPendingActions(), flashLock(), flashUnlock(), and isLockedFromUser().
|
static |
Definition at line 27 of file flash_int.cpp.
Referenced by flashInit(), flashPrintStatus(), FLEXNVM_DflashGetProtection(), FLEXNVM_DflashSetProtection(), FLEXNVM_EepromGetProtection(), and FLEXNVM_EepromSetProtection().
|
static |
Definition at line 29 of file flash_int.cpp.
Referenced by flashInit(), and flashPrintStatus().
|
static |
Definition at line 32 of file flash_int.cpp.
Referenced by flashLock(), and flashUnlock().
|
static |
Definition at line 28 of file flash_int.cpp.
Referenced by flashInit(), and flashPrintStatus().
|
static |
Definition at line 30 of file flash_int.cpp.
Referenced by flashInit(), and flashPrintStatus().
|
static |
Definition at line 21 of file flash_int.cpp.
Referenced by flashInit(), and flashUnlock().