FreeEMS
0.2.0-SNAPSHOT-285-g028e24c
|
To facilitate testing of output circuits and physical hardware such as injectors and coils on the bench or in the car. More...
#include "../inc/freeEMS.h"
#include "../inc/interrupts.h"
#include "../inc/decoderInterface.h"
#include "inc/BenchTest.h"
#include "inc/defaultSecondaryRPMISR.c"
Go to the source code of this file.
Macros | |
#define | DECODER_IMPLEMENTATION_C |
#define | DECODER_MAX_CODE_TIME 66 |
#define | NUMBER_OF_REAL_EVENTS 1 |
#define | NUMBER_OF_VIRTUAL_EVENTS 1 |
Functions | |
void | decoderInitPreliminary () |
void | perDecoderReset () |
void | PrimaryRPMISR () |
RPM ISRs, IC timer for engine position and RPM. |
Variables | |
const unsigned short | eventAngles [] = {0} |
const unsigned char | eventValidForCrankSync [] = {0} |
To facilitate testing of output circuits and physical hardware such as injectors and coils on the bench or in the car.
This "decoder" is intended to generate an output pattern that allows various testing to occur without any external stimulus. This is useful for scheduler testing, injector testing, output hardware testing, coil testing, etc. This will be the only decoder that will be usable with just a cpu and comms interface.
Definition in file BenchTest.c.
#define DECODER_IMPLEMENTATION_C |
Definition at line 43 of file BenchTest.c.
#define DECODER_MAX_CODE_TIME 66 |
Definition at line 44 of file BenchTest.c.
#define NUMBER_OF_REAL_EVENTS 1 |
Definition at line 45 of file BenchTest.c.
Referenced by PrimaryRPMISR().
#define NUMBER_OF_VIRTUAL_EVENTS 1 |
Definition at line 46 of file BenchTest.c.
void decoderInitPreliminary | ( | void | ) |
Definition at line 56 of file BenchTest.c.
Referenced by initECTTimer().
void perDecoderReset | ( | void | ) |
Definition at line 71 of file BenchTest.c.
Referenced by resetToNonRunningState().
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 85 of file BenchTest.c.
const unsigned short eventAngles[] = {0} |
Definition at line 74 of file BenchTest.c.
Referenced by PrimaryRPMISR(), scheduleOutputs(), and SecondaryRPMISR().
const unsigned char eventValidForCrankSync[] = {0} |
Definition at line 75 of file BenchTest.c.