FreeEMS  0.2.0-SNAPSHOT-282-g9efc524
Data Fields
Counter Struct Reference

Use this block to manage the execution count of various functions loops and ISRs etc. TODO break this up into smaller chunks. More...

#include <counterTypes.h>

Data Fields

unsigned char normalSchedule
 times events were scheduled normally.
unsigned char timerStretchedToSchedule
 times timer needed to be extended to prevent not scheduling.
unsigned char pinScheduledToGoHigh
 Behaviour chosen from decoder based on register and pin state.
unsigned char pinScheduledAlready
 Behaviour chosen from decoder based on register and pin state.
unsigned char pinScheduledToSelfSchedule
 Behaviour chosen from decoder based on register and pin state.
unsigned char pinScheduledAgainToStayOn
 Behaviour chosen from decoder based on register and pin state.
unsigned char pinScheduledToToggleError
 Behaviour chosen from decoder based on register and pin state.
unsigned char pinScheduledToDoNothing
 Behaviour chosen from decoder based on register and pin state.
unsigned char pinScheduledFromCold
 Behaviour chosen from decoder based on register and pin state.
unsigned char pinScheduledWithTimerExtension
 Behaviour chosen from decoder based on register and pin state.
unsigned char injectorSwitchOns
 number of times the injector switched on
unsigned char injectorSwitchOffs
 number of times the injector switched off to stay off
unsigned char injectorTimerExtensions
 number of times the injector ISR fired and rescheduled itself to fire and do nothing again
unsigned char injectorTimerExtensionFinals
 number of times the injector ISR fired and scheduled the injector to switch on
unsigned char injectorSelfSchedules
 number of times the injector switched off and scheduled itself again
unsigned char injectorSelfScheduleExtensions
 number of times the injector switched off and scheduled itself again with timer extension
unsigned char syncedADCreadings
 Incremented each time a synchronous ADC reading is taken.
unsigned char timeoutADCreadings
 Incremented for each ADC reading in RTC because of timeout.
unsigned char calculationsPerformed
 Incremented for each time the fuel and ign calcs are done.
unsigned char sparePadding
 Replace with something useful.

Detailed Description

Use this block to manage the execution count of various functions loops and ISRs etc. TODO break this up into smaller chunks.

Definition at line 159 of file counterTypes.h.

Field Documentation

unsigned char Counter::normalSchedule

times events were scheduled normally.

Definition at line 161 of file counterTypes.h.

unsigned char Counter::timerStretchedToSchedule

times timer needed to be extended to prevent not scheduling.

Definition at line 162 of file counterTypes.h.

Referenced by scheduleOutputs().

unsigned char Counter::pinScheduledToGoHigh

Behaviour chosen from decoder based on register and pin state.

Definition at line 165 of file counterTypes.h.

unsigned char Counter::pinScheduledAlready

Behaviour chosen from decoder based on register and pin state.

Definition at line 166 of file counterTypes.h.

Referenced by schedulePortTPin().

unsigned char Counter::pinScheduledToSelfSchedule

Behaviour chosen from decoder based on register and pin state.

Definition at line 167 of file counterTypes.h.

Referenced by schedulePortTPin().

unsigned char Counter::pinScheduledAgainToStayOn

Behaviour chosen from decoder based on register and pin state.

Definition at line 168 of file counterTypes.h.

Referenced by schedulePortTPin().

unsigned char Counter::pinScheduledToToggleError

Behaviour chosen from decoder based on register and pin state.

Definition at line 170 of file counterTypes.h.

Referenced by schedulePortTPin().

unsigned char Counter::pinScheduledToDoNothing

Behaviour chosen from decoder based on register and pin state.

Definition at line 171 of file counterTypes.h.

Referenced by schedulePortTPin().

unsigned char Counter::pinScheduledFromCold

Behaviour chosen from decoder based on register and pin state.

Definition at line 172 of file counterTypes.h.

Referenced by schedulePortTPin().

unsigned char Counter::pinScheduledWithTimerExtension

Behaviour chosen from decoder based on register and pin state.

Definition at line 173 of file counterTypes.h.

unsigned char Counter::injectorSwitchOns

number of times the injector switched on

Definition at line 176 of file counterTypes.h.

Referenced by InjectorXISR().

unsigned char Counter::injectorSwitchOffs

number of times the injector switched off to stay off

Definition at line 177 of file counterTypes.h.

Referenced by InjectorXISR().

unsigned char Counter::injectorTimerExtensions

number of times the injector ISR fired and rescheduled itself to fire and do nothing again

Definition at line 178 of file counterTypes.h.

Referenced by InjectorXISR().

unsigned char Counter::injectorTimerExtensionFinals

number of times the injector ISR fired and scheduled the injector to switch on

Definition at line 179 of file counterTypes.h.

Referenced by InjectorXISR().

unsigned char Counter::injectorSelfSchedules

number of times the injector switched off and scheduled itself again

Definition at line 181 of file counterTypes.h.

Referenced by InjectorXISR().

unsigned char Counter::injectorSelfScheduleExtensions

number of times the injector switched off and scheduled itself again with timer extension

Definition at line 182 of file counterTypes.h.

Referenced by InjectorXISR().

unsigned char Counter::syncedADCreadings

Incremented each time a synchronous ADC reading is taken.

Definition at line 184 of file counterTypes.h.

Referenced by PrimaryRPMISR(), and SecondaryRPMISR().

unsigned char Counter::timeoutADCreadings

Incremented for each ADC reading in RTC because of timeout.

Definition at line 185 of file counterTypes.h.

Referenced by main().

unsigned char Counter::calculationsPerformed

Incremented for each time the fuel and ign calcs are done.

Definition at line 186 of file counterTypes.h.

Referenced by main().

unsigned char Counter::sparePadding

Replace with something useful.

Definition at line 188 of file counterTypes.h.


The documentation for this struct was generated from the following file: