FreeEMS
0.2.0-SNAPSHOT-285-g028e24c
|
Reads Mitsi 4 and 2 CAS units. More...
#include "inc/MitsiAndMazda-CAS-4and2.h"
Go to the source code of this file.
Macros | |
#define | DECODER_IMPLEMENTATION_C |
Functions | |
void | decoderInitPreliminary () |
void | perDecoderReset () |
void | PrimaryRPMISR () |
RPM ISRs, IC timer for engine position and RPM. | |
void | SecondaryRPMISR () |
RPM ISRs, IC timer for engine position and RPM. |
Reads Mitsi 4 and 2 CAS units.
Two interrupts share state and cross communicate to find and maintain sync and position information.
Development thread: http://forum.diyefi.org/viewtopic.php?f=56&t=1110
Definition in file MitsiAndMazda-CAS-4and2.c.
#define DECODER_IMPLEMENTATION_C |
Definition at line 27 of file MitsiAndMazda-CAS-4and2.c.
void decoderInitPreliminary | ( | void | ) |
Definition at line 31 of file MitsiAndMazda-CAS-4and2.c.
void perDecoderReset | ( | void | ) |
Definition at line 32 of file MitsiAndMazda-CAS-4and2.c.
References doubleHighSeen.
void PrimaryRPMISR | ( | void | ) |
RPM ISRs, IC timer for engine position and RPM.
There are multiple copies of this interrupt handler, each is linked with the rest of the code once such that if there are N decoder implementations and/or variants, then there are N loadable binaries produced after a full build.
For details on any specific decoder implementation, see the documentation for that specific file.
Definition at line 51 of file MitsiAndMazda-CAS-4and2.c.
References decoderSetting::accelerationInputEventTimeTolerance, ADCBuffers, BIT0, CALC_FUEL_IGN, CAM_SYNC, Clocks, coreStatusA, Counters, KeyUserDebug::currentEvent, DEBUG_TURN_PIN_OFF, DEBUG_TURN_PIN_ON, decoderSetting::decelerationInputEventTimeTolerance, DECODER_BENCHMARKS, KeyUserDebug::decoderFlags, fixedConfig2::decoderSettings, doubleHighSeen, edgeTimeStamp, eventAngles, fixedConfigs2, KeyUserDebug::inputEventTimeTolerance, KeyUserDebugs, LAST_PERIOD_VALID, LAST_TIMESTAMP_VALID, lastEventTimeStamp, lastTicksPerDegree, NBIT0, numberOfRealEvents, OK_TO_SCHEDULE, PORTB, PRIMARY_EVENT_ARRIVED_TOO_EARLY, PRIMARY_EVENT_ARRIVED_TOO_LATE, KeyUserDebug::primaryTeethSeen, PTIT, resetToNonRunningState(), sampleEachADC(), SET_SYNC_LEVEL_TO, STATE_MISMATCH_IN_PRIMARY_RPM_ISR, Counter::syncedADCreadings, TC0, TFLG, TFLGOF, ticks_per_degree_multiplier, ticksPerDegreeRecord, LongTime::timeLong, Clock::timeoutADCreadingClock, timerExtensionClock, LongTime::timeShorts, timeStamp, and totalEventAngleRange.
void SecondaryRPMISR | ( | void | ) |
RPM ISRs, IC timer for engine position and RPM.
There are multiple copies of this interrupt handler, each is linked with the rest of the code once such that if there are N decoder implementations and/or variants, then there are N loadable binaries produced after a full build.For details on any specific decoder implementation, see the documentation for that specific file.
Definition at line 177 of file MitsiAndMazda-CAS-4and2.c.
References decoderSetting::accelerationInputEventTimeTolerance, ADCBuffers, BIT1, CALC_FUEL_IGN, CAM_SYNC, Clocks, coreStatusA, Counters, KeyUserDebug::currentEvent, DEBUG_TURN_PIN_OFF, DEBUG_TURN_PIN_ON, decoderSetting::decelerationInputEventTimeTolerance, DECODER_BENCHMARKS, KeyUserDebug::decoderFlags, fixedConfig2::decoderSettings, edgeTimeStamp, eventAngles, fixedConfigs2, KeyUserDebug::inputEventTimeTolerance, KeyUserDebugs, LAST_PERIOD_VALID, LAST_TIMESTAMP_VALID, lastEventTimeStamp, lastTicksPerDegree, NBIT1, OK_TO_SCHEDULE, PORTB, PTIT, resetToNonRunningState(), sampleEachADC(), SECONDARY_EVENT_ARRIVED_TOO_EARLY, SECONDARY_EVENT_ARRIVED_TOO_LATE, KeyUserDebug::secondaryTeethSeen, SET_SYNC_LEVEL_TO, STATE_MISMATCH_IN_SECONDARY_RPM_ISR, Counter::syncedADCreadings, TC1, TFLG, TFLGOF, ticks_per_degree_multiplier, ticksPerDegreeRecord, LongTime::timeLong, Clock::timeoutADCreadingClock, timerExtensionClock, LongTime::timeShorts, and timeStamp.