![]() |
Speeduino
|
#include "globals.h"Macros | |
| #define | pinIsSensor(pin) ( ((pin) == pinNumbers.pinCLT) || ((pin) == pinNumbers.pinIAT) || ((pin) == pinNumbers.pinMAP) || ((pin) == pinNumbers.pinTPS) || ((pin) == pinNumbers.pinO2) || ((pin) == pinNumbers.pinBat) || (((pin) == pinNumbers.pinFlex) && (configPage2.flexEnabled != 0)) ) |
Functions | |
| bool | pinIsOutput (byte pin) |
| bool | pinIsUsed (byte pin) |
Instantiation of various (table2D, table3D) tables, volatile (interrupt modified) variables, Injector (1...8) enablement flags, etc.
| #define pinIsSensor | ( | pin | ) | ( ((pin) == pinNumbers.pinCLT) || ((pin) == pinNumbers.pinIAT) || ((pin) == pinNumbers.pinMAP) || ((pin) == pinNumbers.pinTPS) || ((pin) == pinNumbers.pinO2) || ((pin) == pinNumbers.pinBat) || (((pin) == pinNumbers.pinFlex) && (configPage2.flexEnabled != 0)) ) |




| struct table3d16RpmLoad afrTable |
16x16 afr target map
| struct table3d8RpmLoad boostTable |
8x8 boost map
| struct table3d8RpmLoad boostTableLookupDuty |
8x8 boost map lookup table
| volatile uint8_t compositeLogHistory[TOOTH_LOG_SIZE] |
Immediately below max RPM, there is a range within which we can apply a rolling cut.
The rolling cut table defines a series of relative negative RPM offsets that define the window and percent cut for each offset. I.e. RPM 0---------------------—|++++++++++++++++++++|<- max RPM | rolling cut window |
| int16_t CRANK_ANGLE_MAX_IGN = 360 |
| int16_t CRANK_ANGLE_MAX_INJ = 360 |
The number of crank degrees that the system track over. Typically 720 divided by the number of squirts per cycle (Eg 360 for wasted 2 squirt and 720 for sequential single squirt)
The number of crank degrees that the system track over. 360 for wasted / timed batch and 720 for sequential.
The master global "live" status struct. Contains all values that are updated frequently and used across modules
| struct table3d4RpmLoad dwellTable |
4x4 Dwell map
| uint16_t fixedCrankingOverride = 0 |
| struct table3d16RpmLoad fuelTable |
16x16 fuel map
| struct table3d16RpmLoad fuelTable2 |
16x16 fuel map
The count of ignition events that have taken place since the engine started
| struct table3d16RpmLoad ignitionTable |
16x16 ignition map
| struct table3d16RpmLoad ignitionTable2 |
16x16 ignition map
| pinNumbers_t pinNumbers |
Counter of seconds since cranking commenced (similar to runSecs) but in increments of 0.1 seconds
Counter of seconds since powered commenced (similar to secl) but in increments of 0.1 seconds
| uint8_t softLimitTime = 0 |
| struct table3d8RpmLoad stagingTable |
8x8 fuel staging table
| volatile uint32_t toothHistory[TOOTH_LOG_SIZE] |
Tooth trigger history - delta time (in uS) from last tooth (Indexed by toothHistoryIndex)
Current index to toothHistory array.
| struct table3d6RpmLoad trimTables[INJ_CHANNELS] |
| struct table3d8RpmLoad vvt2Table |
8x8 vvt2 map
| struct table3d8RpmLoad vvtTable |
8x8 vvt map
| struct table3d8RpmLoad wmiTable |
8x8 wmi map