![]() |
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.
| bool isEepromWritePending | ( | void | ) |
Do we have page data that needs to be written to durable storage?
| void loadAllPages | ( | void | ) |
Load all pages from durable storage. I.e. load the tune.
| void saveAllPages | ( | void | ) |
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.
| void savePage | ( | uint8_t | pageNum | ) |
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.
| void setEepromWritePending | ( | bool | isPending | ) |
Set or clear the Write Pending flag.
| isPending | True if data needs to be written, false otherwise. |