FreeEMS  0.2.0-SNAPSHOT-282-g9efc524
Macros | Functions | Variables
VR-Distributor-X-Cylinders.c File Reference

Reads any signal that is once per cylinder and only has one good edge. More...

#include "../inc/freeEMS.h"
#include "../inc/interrupts.h"
#include "../inc/decoderInterface.h"
#include "../inc/utils.h"
#include "../inc/defaultPrimaryRPMISR.c"
#include "../inc/defaultSecondaryRPMISR.c"
Include dependency graph for VR-Distributor-X-Cylinders.c:

Go to the source code of this file.

Macros

#define DECODER_IMPLEMENTATION_C
#define DECODER_MAX_CODE_TIME   150
#define NUMBER_OF_REAL_EVENTS   1
#define NUMBER_OF_VIRTUAL_EVENTS   4

Functions

void decoderInitPreliminary ()
void perDecoderReset ()

Variables

const unsigned short eventAngles [] = {0,180,360,540}
const unsigned char eventValidForCrankSync [] = {0,0,0,0}

Detailed Description

Reads any signal that is once per cylinder and only has one good edge.

This file contains the two interrupt service routines required for to build cleanly. However, only the first one is used due to the simple nature of it.

Definition in file VR-Distributor-X-Cylinders.c.

Macro Definition Documentation

#define DECODER_IMPLEMENTATION_C

Definition at line 39 of file VR-Distributor-X-Cylinders.c.

#define DECODER_MAX_CODE_TIME   150

Definition at line 40 of file VR-Distributor-X-Cylinders.c.

#define NUMBER_OF_REAL_EVENTS   1

Definition at line 41 of file VR-Distributor-X-Cylinders.c.

#define NUMBER_OF_VIRTUAL_EVENTS   4

Definition at line 42 of file VR-Distributor-X-Cylinders.c.

Function Documentation

void decoderInitPreliminary ( void  )
Todo:
TODO Perhaps use some of the space freed by shrinking all timing tables for this: /unsigned long wheelEventTimeStamps[numberOfWheelEvents]; // For logging wheel patterns as observed

Definition at line 49 of file VR-Distributor-X-Cylinders.c.

{} // This decoder works with the defaults
void perDecoderReset ( void  )

Definition at line 50 of file VR-Distributor-X-Cylinders.c.

{} // Nothing special to reset for this code

Variable Documentation

const unsigned short eventAngles[] = {0,180,360,540}

Definition at line 52 of file VR-Distributor-X-Cylinders.c.

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

Definition at line 53 of file VR-Distributor-X-Cylinders.c.