rusEFI
The most advanced open source ECU
|
Functions | |
void | NvmInit (void) |
Initializes the NVM driver. | |
void | NvmReinit (void) |
Reinitializes the NVM driver. This function is called at the start of each firmware update as opposed to NvmInit, which is only called once during power on. | |
blt_bool | NvmWrite (blt_addr addr, blt_int32u len, blt_int8u *data) |
Programs the non-volatile memory. | |
blt_bool | NvmErase (blt_addr addr, blt_int32u len) |
Erases the non-volatile memory. | |
blt_bool | NvmVerifyChecksum (void) |
Verifies the checksum, which indicates that a valid user program is present and can be started. | |
blt_addr | NvmGetUserProgBaseAddress (void) |
Obtains the base address of the non-volatile memory available to the user program. This is typically that start of the vector table. | |
blt_bool | NvmDone (void) |
Once all erase and programming operations are completed, this function is called, so at the end of the programming session and right before a software reset is performed. It is used to calculate a checksum and program this into flash. This checksum is later used to determine if a valid user program is present in flash. | |
blt_bool NvmDone | ( | void | ) |
Once all erase and programming operations are completed, this function is called, so at the end of the programming session and right before a software reset is performed. It is used to calculate a checksum and program this into flash. This checksum is later used to determine if a valid user program is present in flash.
Definition at line 136 of file nvm.c.
blt_bool NvmErase | ( | blt_addr | addr, |
blt_int32u | len | ||
) |
Erases the non-volatile memory.
addr | Start address. |
len | Length in bytes. |
Definition at line 95 of file nvm.c.
blt_addr NvmGetUserProgBaseAddress | ( | void | ) |
Obtains the base address of the non-volatile memory available to the user program. This is typically that start of the vector table.
Definition at line 121 of file nvm.c.
void NvmInit | ( | void | ) |
void NvmReinit | ( | void | ) |
Reinitializes the NVM driver. This function is called at the start of each firmware update as opposed to NvmInit, which is only called once during power on.
Definition at line 66 of file nvm.c.
blt_bool NvmVerifyChecksum | ( | void | ) |
Verifies the checksum, which indicates that a valid user program is present and can be started.
Definition at line 108 of file nvm.c.
Referenced by CpuStartUserProgram(), and Rs232Init().
blt_bool NvmWrite | ( | blt_addr | addr, |
blt_int32u | len, | ||
blt_int8u * | data | ||
) |
Programs the non-volatile memory.
addr | Start address. |
len | Length in bytes. |
data | Pointer to the data buffer. |
Definition at line 81 of file nvm.c.