static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:175
void loadAllCalibrationTables(void)
Load the curves for all sensors from durable storage.
Definition storage.cpp:494
void saveCalibrationTable(SensorCalibrationTable sensor)
Store one sensor curve in durable storage.
Definition storage.cpp:523
void saveAllCalibrationTables(void)
Store the curves for all sensors in durable storage.
Definition storage.cpp:513
void saveCalibrationCrc(SensorCalibrationTable sensor, uint32_t crc)
Store the CRC for one sensor curve in durable storage.
Definition storage.cpp:564
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:570
@ 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:166
void savePage(uint8_t pageNum)
Write one page from RAM to durable storage.
Definition storage.cpp:226
void loadAllPages(void)
Load all pages from durable storage. I.e. load the tune.
Definition storage.cpp:424
void setEepromWritePending(bool isPending)
Set or clear the Write Pending flag.
Definition storage.cpp:160
bool isEepromWritePending(void)
Do we have page data that needs to be written to durable storage?
Definition storage.cpp:156
uint8_t loadLastBaro(void)
Last barometer reading cache.
Definition storage.cpp:582
uint8_t loadEEPROMVersion(void)
Save/load the version number of the storage layout.
Definition storage.cpp:594
void saveEEPROMVersion(uint8_t newVersion)
Save/load the version number of the storage layout.
Definition storage.cpp:598
void saveLastBaro(uint8_t newValue)
Last barometer reading cache.
Definition storage.cpp:586
const storage_api_t & getStorageAPI(void)
Provide global access to the raw storage API.
Definition storage.cpp:48
void setStorageAPI(const storage_api_t &api)
Inject the external storage API.
Definition storage.cpp:42
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:18