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 <EEPROM_LIB_H>

Macros

#define CURRENT_DATA_VERSION   24
 

Functions

void doUpdates (void)
 
void multiplyTableLoad (void *pTable, table_type_t key, uint8_t multiplier)
 
void divideTableLoad (void *pTable, table_type_t 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   24

Function Documentation

◆ divideTableLoad()

void divideTableLoad ( void pTable,
table_type_t  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  )

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:

◆ multiplyTableLoad()

void multiplyTableLoad ( void pTable,
table_type_t  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: