Speeduino
Loading...
Searching...
No Matches
Macros | Functions
updates.cpp File Reference
#include "globals.h"
#include "storage.h"
#include "sensors.h"
#include "updates.h"
#include "pages.h"
#include "comms_CAN.h"
#include "units.h"
#include "unit_testing.h"

Macros

#define CURRENT_DATA_VERSION   26
 

Functions

TESTABLE_STATIC void updateTableU16toU8 (table2D_u16_u8_32 &targetTable, uint16_t u16EEpromBinAddress)
 
TESTABLE_STATIC void upgradeV25toV26 (void)
 
void doUpdates (void)
 
void multiplyTableLoad (table3d_t *pTable, TableType key, uint8_t multiplier)
 
void divideTableLoad (table3d_t *pTable, TableType key, uint8_t divisor)
 
void multiplyTableValue (uint8_t pageNum, uint8_t multiplier)
 
void divideTableValue (uint8_t pageNum, uint8_t divisor)
 

Detailed Description

EEPROM Storage updates.

Macro Definition Documentation

◆ CURRENT_DATA_VERSION

#define CURRENT_DATA_VERSION   26

Function Documentation

◆ divideTableLoad()

void divideTableLoad ( table3d_t pTable,
TableType  key,
uint8_t  divisor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ divideTableValue()

void divideTableValue ( uint8_t  pageNum,
uint8_t  divisor 
)
Here is the call graph for this function:

◆ doUpdates()

void doUpdates ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiplyTableLoad()

void multiplyTableLoad ( table3d_t pTable,
TableType  key,
uint8_t  multiplier 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiplyTableValue()

void multiplyTableValue ( uint8_t  pageNum,
uint8_t  multiplier 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTableU16toU8()

TESTABLE_STATIC void updateTableU16toU8 ( table2D_u16_u8_32 targetTable,
uint16_t  u16EEpromBinAddress 
)

Store and load various configs to/from EEPROM considering the the data format versions of various SW generations. This routine is used for doing any data conversions that are required during firmware changes. This prevents users getting difference reports in TS when such a data change occurs. It also can be used for setting good values when there are variables that move locations in the ini. When a user skips multiple firmware versions at a time, this will roll through the updates 1 at a time. The doUpdates() uses may lower level routines from Arduino EEPROM library and storage.ino to carry out EEPROM storage tasks.

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

◆ upgradeV25toV26()

TESTABLE_STATIC void upgradeV25toV26 ( void  )
Here is the call graph for this function:
Here is the caller graph for this function: