8#define ADCFILTER_TPS_DEFAULT 50U
9#define ADCFILTER_CLT_DEFAULT 180U
10#define ADCFILTER_IAT_DEFAULT 180U
11#define ADCFILTER_O2_DEFAULT 128U
12#define ADCFILTER_BAT_DEFAULT 128U
13#define ADCFILTER_MAP_DEFAULT 20U
14#define ADCFILTER_BARO_DEFAULT 64U
16#define ADCFILTER_PSI_DEFAULT 150U
18#define FILTER_FLEX_DEFAULT 75U
20#define VSS_GEAR_HYSTERESIS 10U
23#define TPS_READ_FREQUENCY 30
29 #define READ_FLEX() ((*flex_pin_port & flex_pin_mask) ? true : false)
31 #define READ_FLEX() digitalRead(pinFlex)
volatile unsigned int toothHistoryIndex
Current index to toothHistory array.
Definition globals.cpp:117
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:349
byte getFuelPressure(void)
Definition sensors.cpp:822
byte getOilPressure(void)
Definition sensors.cpp:837
void readTPS(bool useFilter=true)
Definition sensors.cpp:544
void readMAP(void)
Definition sensors.cpp:495
void readBaro(void)
Definition sensors.cpp:632
byte getGear(void)
Definition sensors.cpp:798
uint32_t vssGetPulseGap(byte toothHistoryIndex)
Returns the VSS pulse gap for a given history point.
Definition sensors.cpp:739
void initialiseMAPBaro(void)
Initialize the MAP calculation & Baro values.
Definition sensors.cpp:646
void vssPulse(void)
The ISR function for VSS pulses.
Definition sensors.cpp:901
void readIAT(void)
Definition sensors.cpp:593
uint32_t getMAPDeltaTime(void)
Get the time in µS between the last 2 MAP readings.
Definition sensors.cpp:538
int16_t getMAPDelta(void)
Get the MAP change between the last 2 readings.
Definition sensors.cpp:533
uint16_t readAuxdigital(uint8_t digitalPin)
Definition sensors.cpp:916
void readO2_2(void)
Definition sensors.cpp:693
void resetMAPcycleAndEvent(void)
Definition sensors.cpp:668
void readBat(void)
Definition sensors.cpp:701
void readO2(void)
Definition sensors.cpp:677
void flexPulse(void)
Definition sensors.cpp:870
volatile byte flexCounter
Definition sensors.cpp:30
uint8_t getAnalogKnock(void)
Definition sensors.cpp:854
void knockPulse(void)
Definition sensors.cpp:888
uint16_t getSpeed(void)
Definition sensors.cpp:754
void initialiseADC(void)
Definition sensors.cpp:133
volatile uint32_t flexPulseWidth
Definition sensors.cpp:32
void readCLT(bool useFilter=true)
Definition sensors.cpp:583
bool auxIsEnabled
Definition sensors.cpp:25
uint16_t readAuxanalog(uint8_t analogPin)
Definition sensors.cpp:911