Speeduino
Loading...
Searching...
No Matches
updates.h
Go to the documentation of this file.
1#ifndef UPDATES_H
2#define UPDATES_H
3
4#include "table3d.h"
5
6void doUpdates(void);
7void multiplyTableLoad(void *pTable, table_type_t key, uint8_t multiplier); //Added 202201 - to update the table Y axis as TPS now works at 0.5% increments. Multiplies the load axis values by 4 (most tables) or by 2 (VVT table)
8void divideTableLoad(void *pTable, table_type_t key, uint8_t divisor); //Added 202201 - to update the table Y axis as TPS now works at 0.5% increments. This should only be needed by the VVT tables when using MAP as load.
9void multiplyTableValue(uint8_t pageNum, uint8_t multiplier); //Added to update the table values. Multiplies the value by the multiplier
10void divideTableValue(uint8_t pageNum, uint8_t divisor); //Added to update the table values. Divide the value by divisor
11
12#endif
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:349
table_type_t
Table type identifiers. Limited compile time RTTI.
Definition table3d.h:69
table_type_t key
Definition table3d.h:120
3D table data types and functions
void multiplyTableValue(uint8_t pageNum, uint8_t multiplier)
Definition updates.cpp:816
void divideTableValue(uint8_t pageNum, uint8_t divisor)
Definition updates.cpp:825
void doUpdates(void)
Definition updates.cpp:19
void multiplyTableLoad(void *pTable, table_type_t key, uint8_t multiplier)
Definition updates.cpp:796
void divideTableLoad(void *pTable, table_type_t key, uint8_t divisor)
Definition updates.cpp:806