![]() |
Speeduino
|
Functions to save & load "pages" to/from durable storage. More...
Functions | |
| void | saveAllPages (void) |
| Write all pages from RAM to durable storage. | |
| void | savePage (uint8_t pageNum) |
| Write one page from RAM to durable storage. | |
| void | loadAllPages (void) |
| Load all pages from durable storage. I.e. load the tune. | |
| bool | isEepromWritePending (void) |
| Do we have page data that needs to be written to durable storage? | |
| void | setEepromWritePending (bool isPending) |
| Set or clear the Write Pending flag. | |
Functions to save & load "pages" to/from durable storage.
A "page" is a TunerStudio concept: they are defined in the project ini file. It's basically the tune, minus calibration tables.
Do we have page data that needs to be written to durable storage?

Load all pages from durable storage. I.e. load the tune.


Write all pages from RAM to durable storage.
Note that this might not save everything due to write throttling. Callers can keep calling this function until isEepromWritePending returns false.


Write one page from RAM to durable storage.
Note that this might not save everything due to write throttling. Callers can keep calling this function until isEepromWritePending returns false.

