Speeduino
Loading...
Searching...
No Matches
Functions
Universal Decoder Routines

Functions

static void addToothLogEntry (unsigned long toothTime, byte whichTooth)
 
void loggerPrimaryISR (void)
 
void loggerSecondaryISR (void)
 
void loggerTertiaryISR (void)
 
static decoder_status_t sharedGetStatus (void) noexcept
 
static bool sharedEngineIsRunning (uint32_t curTime)
 
static decoder_features_t sharedGetDecoderFeatures (void)
 
static void sharedDecoderReset (void)
 
static uint8_t getConfigPriTriggerEdge (const config4 &page4)
 
static uint8_t getConfigSecTriggerEdge (const config4 &page4)
 
static uint8_t getConfigTerTriggerEdge (const config10 &page10)
 

Detailed Description

Universal (shared between decoders) decoder routines.

Function Documentation

◆ addToothLogEntry()

static void addToothLogEntry ( unsigned long  toothTime,
byte  whichTooth 
)
inlinestatic

Add tooth log entry to toothHistory (array). Enabled by (either) currentStatus.toothLogEnabled and currentStatus.compositeTriggerUsed.

Parameters
toothTime- Tooth Time
whichTooth- 0 for Primary (Crank), 2 for Secondary (Cam) 3 for Tertiary (Cam)

◆ getConfigPriTriggerEdge()

static uint8_t getConfigPriTriggerEdge ( const config4 &  page4)
static

◆ getConfigSecTriggerEdge()

static uint8_t getConfigSecTriggerEdge ( const config4 &  page4)
static

◆ getConfigTerTriggerEdge()

static uint8_t getConfigTerTriggerEdge ( const config10 &  page10)
static

◆ loggerPrimaryISR()

void loggerPrimaryISR ( void  )

Interrupt handler for primary trigger. This function is called on both the rising and falling edges of the primary trigger, when either the composite or tooth loggers are turned on.

◆ loggerSecondaryISR()

void loggerSecondaryISR ( void  )

Interrupt handler for secondary trigger. As loggerPrimaryISR, but for the secondary trigger.

◆ loggerTertiaryISR()

void loggerTertiaryISR ( void  )

Interrupt handler for third trigger. As loggerPrimaryISR, but for the third trigger.

◆ sharedDecoderReset()

static void sharedDecoderReset ( void  )
static

◆ sharedEngineIsRunning()

static bool sharedEngineIsRunning ( uint32_t  curTime)
static

◆ sharedGetDecoderFeatures()

static decoder_features_t sharedGetDecoderFeatures ( void  )
static

◆ sharedGetStatus()

static decoder_status_t sharedGetStatus ( void  )
staticnoexcept