|
void | nullTriggerHandler (void) |
|
uint16_t | nullGetRPM (void) |
|
int | nullGetCrankAngle (void) |
|
static void | triggerRoverMEMSCommon (void) |
| Pointer to the triggerSetEndTeeth function of each decoder.
|
|
static void | triggerRecordVVT1Angle (void) |
|
static void | addToothLogEntry (unsigned long toothTime, byte whichTooth) |
|
void | loggerPrimaryISR (void) |
|
void | loggerSecondaryISR (void) |
|
void | loggerTertiaryISR (void) |
|
static uint16_t | timeToAngleIntervalTooth (uint32_t time) |
|
static bool | IsCranking (const statuses &status) |
|
bool | engineIsRunning (uint32_t curTime) |
| Is the engine running?
|
|
void | resetDecoder (void) |
| This function is called when the engine is stopped, or when the engine is started. It resets the decoder state and the tooth tracking variables.
|
|
static bool | SetRevolutionTime (uint32_t revTime) |
|
static bool | UpdateRevolutionTimeFromTeeth (bool isCamTeeth) |
|
static uint16_t | clampRpm (uint16_t rpm) |
|
static uint16_t | RpmFromRevolutionTimeUs (uint32_t revTime) |
|
static uint16_t | stdGetRPM (bool isCamTeeth) |
|
static void | setFilter (unsigned long curGap) |
|
static int | crankingGetRPM (byte totalTeeth, bool isCamTeeth) |
|
static void | checkPerToothTiming (int16_t crankAngle, uint16_t currentTooth) |
|
void | triggerSetup_missingTooth (void) |
|
void | triggerPri_missingTooth (void) |
|
void | triggerSec_missingTooth (void) |
|
void | triggerThird_missingTooth (void) |
|
uint16_t | getRPM_missingTooth (void) |
|
int | getCrankAngle_missingTooth (void) |
|
static uint16_t | clampToToothCount (int16_t toothNum, uint8_t toothAdder) |
|
static uint16_t | clampToActualTeeth (uint16_t toothNum, uint8_t toothAdder) |
|
static uint16_t | calcEndTeeth_missingTooth (int endAngle, uint8_t toothAdder) |
|
void | triggerSetEndTeeth_missingTooth (void) |
|
void | triggerSetup_DualWheel (void) |
|
void | triggerPri_DualWheel (void) |
|
void | triggerSec_DualWheel (void) |
|
uint16_t | getRPM_DualWheel (void) |
|
int | getCrankAngle_DualWheel (void) |
|
static uint16_t | calcEndTeeth_DualWheel (int ignitionAngle, uint8_t toothAdder) |
|
void | triggerSetEndTeeth_DualWheel (void) |
|
void | triggerSetup_BasicDistributor (void) |
|
void | triggerPri_BasicDistributor (void) |
|
void | triggerSec_BasicDistributor (void) |
|
uint16_t | getRPM_BasicDistributor (void) |
|
int | getCrankAngle_BasicDistributor (void) |
|
void | triggerSetEndTeeth_BasicDistributor (void) |
|
void | triggerSetup_GM7X (void) |
|
void | triggerPri_GM7X (void) |
|
void | triggerSec_GM7X (void) |
|
uint16_t | getRPM_GM7X (void) |
|
int | getCrankAngle_GM7X (void) |
|
void | triggerSetEndTeeth_GM7X (void) |
|
void | triggerSetup_4G63 (void) |
|
void | triggerPri_4G63 (void) |
|
void | triggerSec_4G63 (void) |
|
uint16_t | getRPM_4G63 (void) |
|
int | getCrankAngle_4G63 (void) |
|
void | triggerSetEndTeeth_4G63 (void) |
|
void | triggerSetup_24X (void) |
|
void | triggerPri_24X (void) |
|
void | triggerSec_24X (void) |
|
uint16_t | getRPM_24X (void) |
|
int | getCrankAngle_24X (void) |
|
void | triggerSetEndTeeth_24X (void) |
|
void | triggerSetup_Jeep2000 (void) |
|
void | triggerPri_Jeep2000 (void) |
|
void | triggerSec_Jeep2000 (void) |
|
uint16_t | getRPM_Jeep2000 (void) |
|
int | getCrankAngle_Jeep2000 (void) |
|
void | triggerSetEndTeeth_Jeep2000 (void) |
|
void | triggerSetup_Audi135 (void) |
|
void | triggerPri_Audi135 (void) |
|
void | triggerSec_Audi135 (void) |
|
uint16_t | getRPM_Audi135 (void) |
|
int | getCrankAngle_Audi135 (void) |
|
void | triggerSetEndTeeth_Audi135 (void) |
|
void | triggerSetup_HondaD17 (void) |
|
void | triggerPri_HondaD17 (void) |
|
void | triggerSec_HondaD17 (void) |
|
uint16_t | getRPM_HondaD17 (void) |
|
int | getCrankAngle_HondaD17 (void) |
|
void | triggerSetEndTeeth_HondaD17 (void) |
|
void | triggerSetup_HondaJ32 (void) |
|
void | triggerPri_HondaJ32 (void) |
|
void | triggerSec_HondaJ32 (void) |
|
uint16_t | getRPM_HondaJ32 (void) |
|
int | getCrankAngle_HondaJ32 (void) |
|
void | triggerSetEndTeeth_HondaJ32 (void) |
|
void | triggerSetup_Miata9905 (void) |
|
void | triggerPri_Miata9905 (void) |
|
void | triggerSec_Miata9905 (void) |
|
uint16_t | getRPM_Miata9905 (void) |
|
int | getCrankAngle_Miata9905 (void) |
|
int | getCamAngle_Miata9905 (void) |
|
void | triggerSetEndTeeth_Miata9905 (void) |
|
void | triggerSetup_MazdaAU (void) |
|
void | triggerPri_MazdaAU (void) |
|
void | triggerSec_MazdaAU (void) |
|
uint16_t | getRPM_MazdaAU (void) |
|
int | getCrankAngle_MazdaAU (void) |
|
void | triggerSetEndTeeth_MazdaAU (void) |
|
void | triggerSetup_non360 (void) |
|
void | triggerPri_non360 (void) |
|
void | triggerSec_non360 (void) |
|
uint16_t | getRPM_non360 (void) |
|
int | getCrankAngle_non360 (void) |
|
void | triggerSetEndTeeth_non360 (void) |
|
void | triggerSetup_Nissan360 (void) |
|
void | triggerPri_Nissan360 (void) |
|
void | triggerSec_Nissan360 (void) |
|
uint16_t | getRPM_Nissan360 (void) |
|
int | getCrankAngle_Nissan360 (void) |
|
void | triggerSetEndTeeth_Nissan360 (void) |
|
void | triggerSetup_Subaru67 (void) |
|
void | triggerPri_Subaru67 (void) |
|
void | triggerSec_Subaru67 (void) |
|
uint16_t | getRPM_Subaru67 (void) |
|
int | getCrankAngle_Subaru67 (void) |
|
void | triggerSetEndTeeth_Subaru67 (void) |
|
void | triggerSetup_Daihatsu (void) |
|
void | triggerPri_Daihatsu (void) |
|
void | triggerSec_Daihatsu (void) |
|
uint16_t | getRPM_Daihatsu (void) |
|
int | getCrankAngle_Daihatsu (void) |
|
void | triggerSetEndTeeth_Daihatsu (void) |
|
void | triggerSetup_Harley (void) |
|
void | triggerPri_Harley (void) |
|
void | triggerSec_Harley (void) |
|
uint16_t | getRPM_Harley (void) |
|
int | getCrankAngle_Harley (void) |
|
void | triggerSetEndTeeth_Harley (void) |
|
void | triggerSetup_ThirtySixMinus222 (void) |
|
void | triggerPri_ThirtySixMinus222 (void) |
|
void | triggerSec_ThirtySixMinus222 (void) |
|
uint16_t | getRPM_ThirtySixMinus222 (void) |
|
int | getCrankAngle_ThirtySixMinus222 (void) |
|
void | triggerSetEndTeeth_ThirtySixMinus222 (void) |
|
void | triggerSetup_ThirtySixMinus21 (void) |
|
void | triggerPri_ThirtySixMinus21 (void) |
|
void | triggerSec_ThirtySixMinus21 (void) |
|
uint16_t | getRPM_ThirtySixMinus21 (void) |
|
int | getCrankAngle_ThirtySixMinus21 (void) |
|
void | triggerSetEndTeeth_ThirtySixMinus21 (void) |
|
void | triggerSetup_420a (void) |
|
void | triggerPri_420a (void) |
|
void | triggerSec_420a (void) |
|
uint16_t | getRPM_420a (void) |
|
int | getCrankAngle_420a (void) |
|
void | triggerSetEndTeeth_420a (void) |
|
void | triggerPri_Webber (void) |
|
void | triggerSec_Webber (void) |
|
void | triggerSetup_FordST170 (void) |
|
void | triggerSec_FordST170 (void) |
|
uint16_t | getRPM_FordST170 (void) |
|
int | getCrankAngle_FordST170 (void) |
|
static uint16_t | calcSetEndTeeth_FordST170 (int ignitionAngle, uint8_t toothAdder) |
|
void | triggerSetEndTeeth_FordST170 (void) |
|
void | triggerSetup_DRZ400 (void) |
|
void | triggerSec_DRZ400 (void) |
|
void | triggerSetup_NGC (void) |
|
void | triggerPri_NGC (void) |
|
void | triggerSec_NGC4 (void) |
|
void | triggerSec_NGC68 (void) |
|
uint16_t | getRPM_NGC (void) |
|
static uint16_t | calcSetEndTeeth_NGC_SkipMissing (uint16_t toothNum) |
|
static uint16_t | calcSetEndTeeth_NGC (int ignitionAngle, uint8_t toothAdder) |
|
void | triggerSetEndTeeth_NGC (void) |
|
void | triggerSetup_Vmax (void) |
|
void | triggerPri_Vmax (void) |
|
void | triggerSec_Vmax (void) |
|
uint16_t | getRPM_Vmax (void) |
|
int | getCrankAngle_Vmax (void) |
|
void | triggerSetEndTeeth_Vmax (void) |
|
void | triggerSetup_Renix (void) |
|
void | triggerPri_Renix (void) |
|
static uint16_t | calcEndTeeth_Renix (int ignitionAngle, uint8_t toothAdder) |
|
void | triggerSetEndTeeth_Renix (void) |
|
void | triggerSetup_RoverMEMS () |
|
void | triggerPri_RoverMEMS () |
|
int | getCrankAngle_RoverMEMS () |
|
void | triggerSec_RoverMEMS () |
|
uint16_t | getRPM_RoverMEMS () |
|
void | triggerSetEndTeeth_RoverMEMS () |
|
void | triggerSetup_SuzukiK6A (void) |
|
void | triggerPri_SuzukiK6A (void) |
|
void | triggerSec_SuzukiK6A (void) |
|
uint16_t | getRPM_SuzukiK6A (void) |
|
int | getCrankAngle_SuzukiK6A (void) |
|
static uint16_t | calcEndTeeth_SuzukiK6A (int ignitionAngle) |
|
void | triggerSetEndTeeth_SuzukiK6A (void) |
|
Crank and Cam decoders
This file contains the various crank and cam wheel decoder functions. Each decoder must have the following 4 functions (Where xxxx is the decoder name):
- triggerSetup_xxxx - Called once from within setup() and configures any required variables
- triggerPri_xxxx - Called each time the primary (No. 1) crank/cam signal is triggered (Called as an interrupt, so variables must be declared volatile)
- triggerSec_xxxx - Called each time the secondary (No. 2) crank/cam signal is triggered (Called as an interrupt, so variables must be declared volatile)
- getRPM_xxxx - Returns the current RPM, as calculated by the decoder
- getCrankAngle_xxxx - Returns the current crank angle, as calculated by the decoder
- getCamAngle_xxxx - Returns the current CAM angle, as calculated by the decoder
Each decoder must utilise at least the following variables:
- toothLastToothTime - The time (In uS) that the last primary tooth was 'seen'