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

Unique MitsiCAS-4and2 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-4and2.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   12
#define NUMBER_OF_VIRTUAL_EVENTS   12
#define OuterSlotAngle   ANGLE( 69.74)
#define LargeInnerSlotAngle   ANGLE(140.00)
#define SmallInnerSlotAngle   ANGLE(70.00)
#define E0   ANGLE( 0)
#define E3   ANGLE(180)
#define E6   ANGLE(360)
#define E9   ANGLE(540)
#define E1   (E0 + OuterSlotAngle)
#define E5   (E3 + OuterSlotAngle)
#define E7   (E6 + OuterSlotAngle)
#define E10   (E9 + OuterSlotAngle)
#define E8   ANGLE(525.50)
#define E11   (E8 + LargeInnerSlotAngle)
#define E2   E8 - ANGLE(360)
#define E4   (E2 + SmallInnerSlotAngle)

Variables

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

Detailed Description

Unique MitsiCAS-4and2 setup data and variables.

Development thread: http://forum.diyefi.org/viewtopic.php?f=56&t=1110

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

Macro Definition Documentation

#define DECODER_MAX_CODE_TIME   150

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

#define NUMBER_OF_REAL_EVENTS   12

Definition at line 39 of file MitsiAndMazda-CAS-4and2.h.

#define NUMBER_OF_VIRTUAL_EVENTS   12

Definition at line 40 of file MitsiAndMazda-CAS-4and2.h.

#define OuterSlotAngle   ANGLE( 69.74)

Definition at line 56 of file MitsiAndMazda-CAS-4and2.h.

#define LargeInnerSlotAngle   ANGLE(140.00)

Definition at line 57 of file MitsiAndMazda-CAS-4and2.h.

#define SmallInnerSlotAngle   ANGLE(70.00)

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

#define E0   ANGLE( 0)

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

#define E3   ANGLE(180)

Definition at line 62 of file MitsiAndMazda-CAS-4and2.h.

#define E6   ANGLE(360)

Definition at line 63 of file MitsiAndMazda-CAS-4and2.h.

#define E9   ANGLE(540)

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

#define E1   (E0 + OuterSlotAngle)

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

#define E5   (E3 + OuterSlotAngle)

Definition at line 68 of file MitsiAndMazda-CAS-4and2.h.

#define E7   (E6 + OuterSlotAngle)

Definition at line 69 of file MitsiAndMazda-CAS-4and2.h.

#define E10   (E9 + OuterSlotAngle)

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

#define E8   ANGLE(525.50)

Definition at line 73 of file MitsiAndMazda-CAS-4and2.h.

#define E11   (E8 + LargeInnerSlotAngle)

Definition at line 74 of file MitsiAndMazda-CAS-4and2.h.

#define E2   E8 - ANGLE(360)

Definition at line 77 of file MitsiAndMazda-CAS-4and2.h.

#define E4   (E2 + SmallInnerSlotAngle)

Definition at line 78 of file MitsiAndMazda-CAS-4and2.h.

Variable Documentation

unsigned short edgeTimeStamp
static

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

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

Definition at line 51 of file MitsiAndMazda-CAS-4and2.h.

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

Definition at line 52 of file MitsiAndMazda-CAS-4and2.h.

Referenced by perDecoderReset(), and PrimaryRPMISR().

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

Definition at line 82 of file MitsiAndMazda-CAS-4and2.h.

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

Definition at line 83 of file MitsiAndMazda-CAS-4and2.h.