Iterate over table axis elements.
Definition table3d_axes.h:31
Iterate through a tables values, row by row.
Definition table3d_values.h:87
The tune page structs and related defines.
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:175
TableType
Table type identifiers. Limited compile time RTTI.
Definition table3d.h:69
table_axis_iterator y_begin(const page_iterator_t &it)
Definition pages.cpp:540
constexpr uint8_t afrSetPage
Definition pages.h:17
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.
Definition pages.cpp:243
void setTuneToEmpty(void)
Fill the tune (config pages & tables) with zeroes.
Definition pages.cpp:464
constexpr uint8_t ignMap2Page
Definition pages.h:25
constexpr uint8_t ignSetPage
Definition pages.h:15
constexpr uint8_t boostvvtPage
Definition pages.h:18
constexpr uint8_t veMapPage
Definition pages.h:13
constexpr uint8_t ignMapPage
Definition pages.h:14
constexpr uint8_t fuelMap2Page
Definition pages.h:22
page_iterator_t page_begin(uint8_t pageNum)
Definition pages.cpp:503
constexpr uint8_t seqFuelPage
Definition pages.h:19
constexpr uint8_t MIN_PAGE_NUM
Definition pages.h:27
table_value_iterator rows_begin(const page_iterator_t &it)
Definition pages.cpp:516
constexpr uint8_t veSetPage
Definition pages.h:12
constexpr uint8_t canbusPage
Definition pages.h:20
uint16_t getPageSize(uint8_t pageNum)
Definition pages.cpp:474
byte getPageValue(uint8_t pageNum, uint16_t pageOffset)
Gets a single value from a page, with data aligned as per the ini file.
Definition pages.cpp:492
page_iterator_t advance(const page_iterator_t &it)
Definition pages.cpp:508
constexpr uint8_t warmupPage
Definition pages.h:21
table_axis_iterator x_begin(const page_iterator_t &it)
Definition pages.cpp:524
constexpr uint8_t boostvvtPage2
Definition pages.h:26
constexpr uint8_t wmiMapPage
Definition pages.h:23
table_axis_iterator x_rbegin(const page_iterator_t &it)
Definition pages.cpp:532
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.
Definition pages.cpp:485
EntityType
Definition pages.h:57
constexpr uint8_t afrMapPage
Definition pages.h:16
byte getEntityValue(const entity_t &entity, uint16_t offset)
Gets a single value from an entity, with data aligned as per the ini file.
Definition pages.cpp:202
constexpr uint8_t MAX_PAGE_NUM
Definition pages.h:28
constexpr uint8_t progOutsPage
Definition pages.h:24
Definition config_pages.h:166
The unique location of an entity within all pages.
Definition pages.h:65
uint8_t page
Definition pages.h:66
uint8_t index
Definition pages.h:67
friend bool operator!=(const entity_page_location_t &lhs, const entity_page_location_t &rhs)
Definition pages.h:91
friend bool operator==(const entity_page_location_t &lhs, const entity_page_location_t &rhs)
Definition pages.h:85
constexpr entity_page_location_t(void)
Definition pages.h:69
constexpr entity_page_location_t(uint8_t pageNum, uint8_t pageSubIndex)
Definition pages.h:74
constexpr entity_page_location_t next(void) const
Definition pages.h:80
table3d_t * pTable
If the entity is a table, this points to the table.
Definition pages.h:102
EntityType type
The entity type.
Definition pages.h:99
config_page_t * pRaw
If the entity is a raw block, this points to it.
Definition pages.h:103
bool isEntityAddressWithin(uint16_t entityAddress) const
Definition pages.h:133
uint16_t size
Size of the entity in bytes on the page
Definition pages.h:106
TableType table_key
If the entity is a table, this can be used to get the table type.
Definition pages.h:105
constexpr entity_t(void)
Definition pages.h:108
constexpr entity_t(table3d_t *table, TableType key, uint16_t theSize)
Definition pages.h:119
constexpr entity_t(config_page_t *entity, uint16_t theSize)
Definition pages.h:126
constexpr entity_t(EntityType theType, uint16_t theSize)
Definition pages.h:113
constexpr page_entity_t(void)
Definition pages.h:144
uint16_t start
Definition pages.h:142
bool isPageAddressWithin(uint16_t pageAddress) const
Check if the offset is within the entity address range.
Definition pages.h:160
constexpr page_entity_t(const entity_t &entity, uint16_t base)
Definition pages.h:148
entity_page_location_t location
Definition pages.h:169
constexpr page_iterator_t(void)=default
page_entity_t entity
Definition pages.h:168
constexpr page_iterator_t(const page_entity_t &theEntity, const entity_page_location_t &entityLocation)
Definition pages.h:172
3D table data types and functions