![]() |
Speeduino
|
Functions to save & load sensor calibration tables to/from durable storage. More...
Enumerations | |
| enum class | SensorCalibrationTable : uint8_t { SensorCalibrationTable::CoolantSensor = 0U , SensorCalibrationTable::IntakeAirTempSensor = 1U , SensorCalibrationTable::O2Sensor = 2U } |
| Enum to identify sensor calibration tables. More... | |
Functions | |
| void | loadAllCalibrationTables (void) |
| Load the curves for all sensors from durable storage. | |
| void | saveAllCalibrationTables (void) |
| Store the curves for all sensors in durable storage. | |
| void | saveCalibrationTable (SensorCalibrationTable sensor) |
| Store one sensor curve in durable storage. | |
| void | saveCalibrationCrc (SensorCalibrationTable sensor, uint32_t crc) |
| Store the CRC for one sensor curve in durable storage. | |
| uint32_t | loadCalibrationCrc (SensorCalibrationTable sensor) |
| Retrieve the CRC for one sensor curve from durable storage. | |
Functions to save & load sensor calibration tables to/from durable storage.
This is separate from the page load as the calibrations do not exist as pages within the ini file for Tuner Studio.
|
strong |
Load the curves for all sensors from durable storage.


| uint32_t loadCalibrationCrc | ( | SensorCalibrationTable | sensor | ) |
Retrieve the CRC for one sensor curve from durable storage.
Retrieves and returns the 4 byte CRC32 checksum for a given calibration page from EEPROM.


Store the curves for all sensors in durable storage.
Write calibration tables to EEPROM. This takes the values in the 3 calibration tables (Coolant, Inlet temp and O2) and saves them to the EEPROM.


| void saveCalibrationCrc | ( | SensorCalibrationTable | sensor, |
| uint32_t | crc | ||
| ) |
Store the CRC for one sensor curve in durable storage.


| void saveCalibrationTable | ( | SensorCalibrationTable | sensor | ) |
Store one sensor curve in durable storage.

