FreeEMS  0.2.0-SNAPSHOT-282-g9efc524
Macros | Variables
MitsiAndMazda-CAS-4and1.h File Reference

Unique MitsiCAS-4and1 setup data and variables. More...

#include "../../inc/freeEMS.h"
#include "../../inc/utils.h"
#include "../../inc/interrupts.h"
#include "../../inc/decoderInterface.h"
Include dependency graph for MitsiAndMazda-CAS-4and1.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DECODER_MAX_CODE_TIME   150
#define NUMBER_OF_REAL_EVENTS   10
#define NUMBER_OF_VIRTUAL_EVENTS   10
#define OuterSlotAngle   ANGLE( 69.74)
#define InnerSlotAngle   ANGLE(140.00)
#define E0   ANGLE( 0)
#define E2   ANGLE(180)
#define E4   ANGLE(360)
#define E7   ANGLE(540)
#define E1   (E0 + OuterSlotAngle)
#define E3   (E2 + OuterSlotAngle)
#define E5   (E4 + OuterSlotAngle)
#define E8   (E7 + OuterSlotAngle)
#define E6   ANGLE(525.50)
#define E9   (E6 + InnerSlotAngle)

Variables

static unsigned short edgeTimeStamp
static LongTime timeStamp
unsigned char unknownLeadingEdges = 0
const unsigned short eventAngles [] = {E0, E1, E2, E3, E4, E5, E6, E7, E8, E9}
const unsigned char eventValidForCrankSync [] = {1,1,1,1,1,1,0,1,1,0}

Detailed Description

Unique MitsiCAS-4and1 setup data and variables.

Definition in file MitsiAndMazda-CAS-4and1.h.

Macro Definition Documentation

#define DECODER_MAX_CODE_TIME   150

Definition at line 36 of file MitsiAndMazda-CAS-4and1.h.

#define NUMBER_OF_REAL_EVENTS   10

Definition at line 37 of file MitsiAndMazda-CAS-4and1.h.

#define NUMBER_OF_VIRTUAL_EVENTS   10

Definition at line 38 of file MitsiAndMazda-CAS-4and1.h.

#define OuterSlotAngle   ANGLE( 69.74)

Definition at line 54 of file MitsiAndMazda-CAS-4and1.h.

#define InnerSlotAngle   ANGLE(140.00)

Definition at line 55 of file MitsiAndMazda-CAS-4and1.h.

#define E0   ANGLE( 0)

Definition at line 58 of file MitsiAndMazda-CAS-4and1.h.

#define E2   ANGLE(180)

Definition at line 59 of file MitsiAndMazda-CAS-4and1.h.

#define E4   ANGLE(360)

Definition at line 60 of file MitsiAndMazda-CAS-4and1.h.

#define E7   ANGLE(540)

Definition at line 61 of file MitsiAndMazda-CAS-4and1.h.

#define E1   (E0 + OuterSlotAngle)

Definition at line 64 of file MitsiAndMazda-CAS-4and1.h.

#define E3   (E2 + OuterSlotAngle)

Definition at line 65 of file MitsiAndMazda-CAS-4and1.h.

#define E5   (E4 + OuterSlotAngle)

Definition at line 66 of file MitsiAndMazda-CAS-4and1.h.

#define E8   (E7 + OuterSlotAngle)

Definition at line 67 of file MitsiAndMazda-CAS-4and1.h.

#define E6   ANGLE(525.50)

Definition at line 70 of file MitsiAndMazda-CAS-4and1.h.

#define E9   (E6 + InnerSlotAngle)

Definition at line 71 of file MitsiAndMazda-CAS-4and1.h.

Variable Documentation

unsigned short edgeTimeStamp
static

Definition at line 48 of file MitsiAndMazda-CAS-4and1.h.

Referenced by InjectorXISR(), main(), PrimaryRPMISR(), and SecondaryRPMISR().

LongTime timeStamp
static
Todo:
TODO why is this here, and why is it static/shared, investigate

Definition at line 49 of file MitsiAndMazda-CAS-4and1.h.

Referenced by InjectorXISR(), main(), PrimaryRPMISR(), and SecondaryRPMISR().

unsigned char unknownLeadingEdges = 0
Todo:
TODO why is this here, and why is it static/shared, investigate

Definition at line 50 of file MitsiAndMazda-CAS-4and1.h.

Referenced by perDecoderReset(), and PrimaryRPMISR().

const unsigned short eventAngles[] = {E0, E1, E2, E3, E4, E5, E6, E7, E8, E9}

Definition at line 75 of file MitsiAndMazda-CAS-4and1.h.

const unsigned char eventValidForCrankSync[] = {1,1,1,1,1,1,0,1,1,0}

Definition at line 76 of file MitsiAndMazda-CAS-4and1.h.