#include <Arduino.h>
#include "table3d.h"
#include "config_pages.h"
Go to the source code of this file.
|
| uint16_t | getPageSize (uint8_t pageNum) |
| |
| void | setTuneToEmpty (void) |
| | Fill the tune (config pages & tables) with zeroes.
|
| |
| byte | getPageValue (uint8_t pageNum, uint16_t pageOffset) |
| | Gets a single value from a page, with data aligned as per the ini file.
|
| |
| bool | setPageValue (uint8_t pageNum, uint16_t pageOffset, byte value) |
| | Sets a single value from a page, with data aligned as per the ini file.
|
| |
| byte | getEntityValue (const entity_t &entity, uint16_t offset) |
| | Gets a single value from an entity, with data aligned as per the ini file.
|
| |
| bool | setEntityValue (entity_t &entity, uint16_t offset, byte value) |
| | Sets a single value from a page, with data aligned as per the ini file.
|
| |
| page_iterator_t | page_begin (uint8_t pageNum) |
| | Initiates iteration over a pages entities.
|
| |
| page_iterator_t | advance (const page_iterator_t &it) |
| | Moves the iterator to the next sub-entity on the page.
|
| |
◆ EntityType
| Enumerator |
|---|
| Raw | |
| Table | |
| NoEntity | |
| End | |
◆ advance()
Moves the iterator to the next sub-entity on the page.
- Parameters
-
| [in] | it | The current iterator |
◆ getEntityValue()
| byte getEntityValue |
( |
const entity_t & |
entity, |
|
|
uint16_t |
offset |
|
) |
| |
Gets a single value from an entity, with data aligned as per the ini file.
- Parameters
-
| [in] | entity | The entity to update |
| [in] | offset | The offset within the entity |
◆ getPageSize()
| uint16_t getPageSize |
( |
uint8_t |
pageNum | ) |
|
Page size in bytes
- Parameters
-
| [in] | pageNum | The page number |
◆ getPageValue()
| byte getPageValue |
( |
uint8_t |
pageNum, |
|
|
uint16_t |
pageOffset |
|
) |
| |
Gets a single value from a page, with data aligned as per the ini file.
- Parameters
-
| [in] | pageNum | The page number to retrieve data from. |
| [in] | pageOffset | The address in the page that should be returned. This is as per the page definition in the ini. |
◆ page_begin()
Initiates iteration over a pages entities.
Test entity.type==End to determine the end of the page.
- Parameters
-
| [in] | pageNum | The page number to iterate over. |
◆ setEntityValue()
| bool setEntityValue |
( |
entity_t & |
entity, |
|
|
uint16_t |
offset, |
|
|
byte |
value |
|
) |
| |
Sets a single value from a page, with data aligned as per the ini file.
- Parameters
-
| [in] | entity | The entity to update |
| [in] | offset | The offset within the entity |
| [in] | value | The new value |
◆ setPageValue()
| bool setPageValue |
( |
uint8_t |
pageNum, |
|
|
uint16_t |
pageOffset, |
|
|
byte |
value |
|
) |
| |
Sets a single value from a page, with data aligned as per the ini file.
- Returns
- true if value set, false otherwise
- Parameters
-
| [in] | pageNum | The page number to update. |
| [in] | pageOffset | The offset within the page. |
| [in] | value | The new value |
◆ setTuneToEmpty()
| void setTuneToEmpty |
( |
void |
| ) |
|
Fill the tune (config pages & tables) with zeroes.
◆ afrMapPage
| constexpr uint8_t afrMapPage = 5 |
|
constexpr |
◆ afrSetPage
| constexpr uint8_t afrSetPage = 6 |
|
constexpr |
◆ boostvvtPage
| constexpr uint8_t boostvvtPage = 7 |
|
constexpr |
◆ boostvvtPage2
| constexpr uint8_t boostvvtPage2 = 15 |
|
constexpr |
◆ canbusPage
| constexpr uint8_t canbusPage = 9 |
|
constexpr |
◆ CLT_CALIBRATION_PAGE
Coolant sensor calibration table page number.
◆ fuelMap2Page
| constexpr uint8_t fuelMap2Page = 11 |
|
constexpr |
◆ IAT_CALIBRATION_PAGE
IAT sensor calibration table page number.
◆ ignMap2Page
| constexpr uint8_t ignMap2Page = 14 |
|
constexpr |
◆ ignMapPage
| constexpr uint8_t ignMapPage = 3 |
|
constexpr |
◆ ignSetPage
| constexpr uint8_t ignSetPage = 4 |
|
constexpr |
◆ MAX_PAGE_NUM
◆ MIN_PAGE_NUM
◆ O2_CALIBRATION_PAGE
O2 sensor calibration table page number.
◆ PAGE_IDX_CALIBRATION_BINS
| constexpr uint8_t PAGE_IDX_CALIBRATION_BINS = 2 |
|
constexpr |
Index of a calibration table bins on a "page".
◆ PAGE_IDX_CALIBRATION_CRC
| constexpr uint8_t PAGE_IDX_CALIBRATION_CRC = 0 |
|
constexpr |
Index of a calibration table CRC on a "page".
◆ PAGE_IDX_CALIBRATION_VALUES
| constexpr uint8_t PAGE_IDX_CALIBRATION_VALUES = 1 |
|
constexpr |
Index of a calibration table values on a "page".
◆ progOutsPage
| constexpr uint8_t progOutsPage = 13 |
|
constexpr |
◆ seqFuelPage
| constexpr uint8_t seqFuelPage = 8 |
|
constexpr |
◆ veMapPage
| constexpr uint8_t veMapPage = 2 |
|
constexpr |
◆ veSetPage
| constexpr uint8_t veSetPage = 1 |
|
constexpr |
◆ warmupPage
| constexpr uint8_t warmupPage = 10 |
|
constexpr |
◆ wmiMapPage
| constexpr uint8_t wmiMapPage = 12 |
|
constexpr |