Speeduino
Loading...
Searching...
No Matches
Enumerations | Functions
Calibration table save & load

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.
 

Detailed Description

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.

Enumeration Type Documentation

◆ SensorCalibrationTable

Enum to identify sensor calibration tables.

Enumerator
CoolantSensor 

The coolant sensor calibration curve.

IntakeAirTempSensor 

Intake Air Temperature (IAT) sensor calibration curve.

O2Sensor 

The Oxygen (O2) sensor calibration curve.

Function Documentation

◆ loadAllCalibrationTables()

void loadAllCalibrationTables ( void  )

Load the curves for all sensors from durable storage.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadCalibrationCrc()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveAllCalibrationTables()

void saveAllCalibrationTables ( void  )

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveCalibrationCrc()

void saveCalibrationCrc ( SensorCalibrationTable  sensor,
uint32_t  crc 
)

Store the CRC for one sensor curve in durable storage.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveCalibrationTable()

void saveCalibrationTable ( SensorCalibrationTable  sensor)

Store one sensor curve in durable storage.

Here is the call graph for this function:
Here is the caller graph for this function: