void loadAllCalibrationTables(void)
Load the curves for all sensors from durable storage.
Definition storage.cpp:596
void saveCalibrationTable(SensorCalibrationTable sensor)
Store one sensor curve in durable storage.
Definition storage.cpp:625
void saveAllCalibrationTables(void)
Store the curves for all sensors in durable storage.
Definition storage.cpp:615
void saveCalibrationCrc(SensorCalibrationTable sensor, uint32_t crc)
Store the CRC for one sensor curve in durable storage.
Definition storage.cpp:648
SensorCalibrationTable
Enum to identify sensor calibration tables.
Definition storage.h:92
uint32_t loadCalibrationCrc(SensorCalibrationTable sensor)
Retrieve the CRC for one sensor curve from durable storage.
Definition storage.cpp:654
@ O2Sensor
The Oxygen (O2) sensor calibration curve.
@ CoolantSensor
The coolant sensor calibration curve.
@ IntakeAirTempSensor
Intake Air Temperature (IAT) sensor calibration curve.
void saveAllPages(void)
Write all pages from RAM to durable storage.
Definition storage.cpp:238
void savePage(uint8_t pageNum)
Write one page from RAM to durable storage.
Definition storage.cpp:298
void loadAllPages(void)
Load all pages from durable storage. I.e. load the tune.
Definition storage.cpp:511
void setEepromWritePending(bool isPending)
Set or clear the Write Pending flag.
Definition storage.cpp:232
bool isEepromWritePending(void)
Do we have page data that needs to be written to durable storage?
Definition storage.cpp:228
uint8_t loadLastBaro(void)
Last barometer reading cache.
Definition storage.cpp:666
uint8_t loadEEPROMVersion(void)
Save/load the version number of the storage layout.
Definition storage.cpp:678
void saveEEPROMVersion(uint8_t newVersion)
Save/load the version number of the storage layout.
Definition storage.cpp:682
void saveLastBaro(uint8_t newValue)
Last barometer reading cache.
Definition storage.cpp:670
const storage_api_t & getStorageAPI(void)
Provide global access to the raw storage API.
Definition storage.cpp:51
void setStorageAPI(const storage_api_t &api)
Inject the external storage API.
Definition storage.cpp:45
Defines the required external storage API plus some convenience functions built around that API.
The external storage API. This must be supported by any storage system. E.g. EEPROM,...
Definition storage_api.h:20