FreeEMS  0.2.0-SNAPSHOT-285-g028e24c
Macros
constantsLibrary.h File Reference

Global physical constants and configuration library. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define densityOfOctane   FUEL_DENSITY(703)
#define densityOfPetrol   FUEL_DENSITY(720)
#define stoichiometricAFRMethane   STOICH_AFR(17.245)
#define stoichiometricAFRPropane   STOICH_AFR(15.685)
#define stoichiometricAFRLPG   STOICH_AFR(15.599)
#define stoichiometricAFRButane   STOICH_AFR(15.469)
#define stoichiometricAFROctane   STOICH_AFR(15.137)
#define stoichiometricAFRPetrol   STOICH_AFR(14.700)
#define stoichiometricAFRXylene   STOICH_AFR(13.681)
#define stoichiometricAFRToluene   STOICH_AFR(13.512)
#define stoichiometricAFRBenzene   STOICH_AFR(13.282)
#define stoichiometricAFRE85   STOICH_AFR( 9.862)
#define stoichiometricAFREthanol   STOICH_AFR( 9.008)
#define stoichiometricAFRMethanol   STOICH_AFR( 6.475)
#define LC1LambdaMin   LAMBDA(0.5)
#define LC1LambdaMax   LAMBDA(1.5)
#define LC1LambdaRange   (LC1LambdaMax - LC1LambdaMin)
#define AFR1020LambdaMin   LAMBDA(0.68)
#define AFR1020LambdaMax   LAMBDA(1.36)
#define AFR1020LambdaRange   (AFR1020LambdaMax - AFR1020LambdaMin)
#define HondaDenso183kPaMin   KPA( -6.64) /* Pressure read at lowest ADC reading */
#define HondaDenso183kPaMax   KPA(182.78) /* Pressure read at highest ADC reading */
#define HondaDenso183kPaRange   (HondaDenso183kPaMax - HondaDenso183kPaMin)
#define ToyotaNA227kPaMin   KPA( 25) /* Pressure read at lowest ADC reading */
#define ToyotaNA227kPaMax   KPA(247) /* Pressure read at highest ADC reading */
#define ToyotaNA227kPaRange   (ToyotaNA227kPaMax - ToyotaNA227kPaMin)
#define GM1BarMin   KPA( 10.0) /* Pressure read at lowest ADC reading */
#define GM1BarMax   KPA(105.0) /* Pressure read at highest ADC reading */
#define GM1BarRange   (GM1BarMax - GM1BarMin)
#define GM2BarMin   KPA( 1.5) /* Pressure read at lowest ADC reading */
#define GM2BarMax   KPA(200.0) /* Pressure read at highest ADC reading */
#define GM2BarRange   (GM2BarMax - GM2BarMin)
#define GM3BarMin   KPA( 1.11) /* Pressure read at lowest ADC reading */
#define GM3BarMax   KPA(315.58) /* Pressure read at highest ADC reading */
#define GM3BarRange   (GM3BarMax - GM3BarMin)
#define MPX4100AMin   KPA( 14.0) /* Pressure read at lowest ADC reading */
#define MPX4100AMax   KPA(107.5) /* Pressure read at highest ADC reading */
#define MPX4100ARange   (MPX4100AMax - MPX4100AMin)
#define MPXA6115AMin   KPA( 10.0) /* Pressure read at lowest ADC reading */
#define MPXA6115AMax   KPA(120.0) /* Pressure read at highest ADC reading */
#define MPXA6115ARange   (MPXA6115AMax - MPXA6115AMin)
#define MPX4250AMin   KPA( 8) /* Pressure read at lowest ADC reading */
#define MPX4250AMax   KPA(260) /* Pressure read at highest ADC reading */
#define MPX4250ARange   (MPX4250AMax - MPX4250AMin)
#define MPXH6300AMin   KPA( 12) /* Pressure read at lowest ADC reading */
#define MPXH6300AMax   KPA(320) /* Pressure read at highest ADC reading */
#define MPXH6300ARange   (MPXH6300AMax - MPXH6300AMin)
#define MPXH6400AMin   KPA( 12) /* Pressure read at lowest ADC reading */
#define MPXH6400AMax   KPA(420) /* Pressure read at highest ADC reading */
#define MPXH6400ARange   (MPXH6400AMax - MPXH6400AMin)
#define standardTachoArray   {1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2}
#define standardTachoPorts   {(unsigned char*)&PORTE,(unsigned char*)&PORTK,(unsigned char*)&PORTK,(unsigned char*)&PORTK}
#define standardTachoMasks   {0x80,0x01,0x02,0x04}
#define ARRAY_OF_16_VOLTAGES   { V(6.0), V(7.2), V(8.4), V(9.0), V(9.6), V(10.2), V(10.8), V(11.4), V(12.0), V(12.6), V(13.2), V(13.8), V(14.4), V(17.8), V(21.0), V(24.5)}
#define ARRAY_OF_16_DEADTIMES   { T(2.91), T(2.30), T(1.86), T(1.70), T(1.58), T(1.47), T(1.39), T(1.30), T(1.23), T(1.15), T(1.10), T(1.04), T(0.99), T(0.76), T(0.57), T(0.40)}
#define ARRAY_OF_ID1000_DEADTIMES   { T(4.00), T(3.12), T(2.38), T(2.07), T(1.82), T(1.61), T(1.47), T(1.34), T(1.24), T(1.15), T(1.08), T(1.01), T(0.95), T(0.67), T(0.48), T(0.32)}
#define ARRAY_OF_16_DWELLS   {T(14.55), T(11.50), T(9.30), T(8.50), T(7.90), T(7.35), T(6.95), T(6.50), T(6.15), T(5.75), T(5.48), T(5.20), T(4.95), T(3.80), T(2.85), T(2.00)}
#define ARRAY_OF_16_TEMPS   { C(-30), C(-20), C(-10), C(0), C(10), C(20), C(30), C(40), C(50), C(60), C(70), C(80), C(90), C(100), C(110), C(120)}
#define ARRAY_OF_16_PERCENTS   { W(250), W(235), W(220), W(205), W(190), W(175), W(160), W(145), W(130), W(118), W(108), W(100), W(100), W(110), W(120), W(130)}
#define ARRAY_OF_16_PERCENTS_WIDE   { W(235), W(220), W(205), W(190), W(175), W(160), W(145), W(130), W(118), W(108), W(100), W(100), W(100), W(110), W(120), W(130)}
#define ARRAY_OF_16_VOLUMES   {T(6.40), T(5.06), T(4.09), T(3.74), T(3.48), T(3.23), T(3.06), T(2.86), T(2.71), T(2.53), T(2.41), T(2.29), T(2.18), T(1.67), T(1.25), T(0.88)}
#define ARRAY_OF_16_RPMS   { RPM(500), RPM(1000), RPM(1500), RPM(2000), RPM(2500), RPM(3000), RPM(3500), RPM(4000), RPM(4500), RPM(5000), RPM(5500), RPM(6000), RPM(6500), RPM(7000), RPM(7500), RPM(8000)}
#define ARRAY_OF_16_DIS6_DWELLS   { T(5.75), T(5.50), T(5.25), T(5.00), T(4.75), T(4.50), T(4.25), T(4.00), T(3.75), T(3.50), T(3.25), T(3.00), T(2.75), T(2.50), T(2.25), T(2.00)}
#define ARRAY_OF_16_BLENDS   { SHORTMAX, SHORTMAX, SHORTMAX, LR(1.5), LR(1.0), LR(0.5), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0)}
#define ARRAY_OF_16_TIMES   { 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, 61440}

Detailed Description

Global physical constants and configuration library.

A convenient set of ready-to-use values for from-source builds.

Definition in file constantsLibrary.h.

Macro Definition Documentation

#define densityOfOctane   FUEL_DENSITY(703)

Definition at line 45 of file constantsLibrary.h.

#define densityOfPetrol   FUEL_DENSITY(720)

Definition at line 46 of file constantsLibrary.h.

#define stoichiometricAFRMethane   STOICH_AFR(17.245)

Definition at line 49 of file constantsLibrary.h.

#define stoichiometricAFRPropane   STOICH_AFR(15.685)

Definition at line 50 of file constantsLibrary.h.

#define stoichiometricAFRLPG   STOICH_AFR(15.599)

Definition at line 51 of file constantsLibrary.h.

#define stoichiometricAFRButane   STOICH_AFR(15.469)

Definition at line 52 of file constantsLibrary.h.

#define stoichiometricAFROctane   STOICH_AFR(15.137)

Definition at line 53 of file constantsLibrary.h.

#define stoichiometricAFRPetrol   STOICH_AFR(14.700)

Definition at line 54 of file constantsLibrary.h.

#define stoichiometricAFRXylene   STOICH_AFR(13.681)

Definition at line 55 of file constantsLibrary.h.

#define stoichiometricAFRToluene   STOICH_AFR(13.512)

Definition at line 56 of file constantsLibrary.h.

#define stoichiometricAFRBenzene   STOICH_AFR(13.282)

Definition at line 57 of file constantsLibrary.h.

#define stoichiometricAFRE85   STOICH_AFR( 9.862)

Definition at line 58 of file constantsLibrary.h.

#define stoichiometricAFREthanol   STOICH_AFR( 9.008)

Definition at line 59 of file constantsLibrary.h.

#define stoichiometricAFRMethanol   STOICH_AFR( 6.475)

Definition at line 60 of file constantsLibrary.h.

#define LC1LambdaMin   LAMBDA(0.5)

Definition at line 63 of file constantsLibrary.h.

#define LC1LambdaMax   LAMBDA(1.5)

Definition at line 64 of file constantsLibrary.h.

#define LC1LambdaRange   (LC1LambdaMax - LC1LambdaMin)

Definition at line 65 of file constantsLibrary.h.

#define AFR1020LambdaMin   LAMBDA(0.68)

Definition at line 66 of file constantsLibrary.h.

#define AFR1020LambdaMax   LAMBDA(1.36)

Definition at line 67 of file constantsLibrary.h.

#define AFR1020LambdaRange   (AFR1020LambdaMax - AFR1020LambdaMin)

Definition at line 68 of file constantsLibrary.h.

#define HondaDenso183kPaMin   KPA( -6.64) /* Pressure read at lowest ADC reading */

Definition at line 85 of file constantsLibrary.h.

#define HondaDenso183kPaMax   KPA(182.78) /* Pressure read at highest ADC reading */

Definition at line 86 of file constantsLibrary.h.

#define HondaDenso183kPaRange   (HondaDenso183kPaMax - HondaDenso183kPaMin)

Definition at line 87 of file constantsLibrary.h.

#define ToyotaNA227kPaMin   KPA( 25) /* Pressure read at lowest ADC reading */

Definition at line 90 of file constantsLibrary.h.

#define ToyotaNA227kPaMax   KPA(247) /* Pressure read at highest ADC reading */

Definition at line 91 of file constantsLibrary.h.

#define ToyotaNA227kPaRange   (ToyotaNA227kPaMax - ToyotaNA227kPaMin)

Definition at line 92 of file constantsLibrary.h.

#define GM1BarMin   KPA( 10.0) /* Pressure read at lowest ADC reading */

Definition at line 96 of file constantsLibrary.h.

#define GM1BarMax   KPA(105.0) /* Pressure read at highest ADC reading */

Definition at line 97 of file constantsLibrary.h.

#define GM1BarRange   (GM1BarMax - GM1BarMin)

Definition at line 98 of file constantsLibrary.h.

#define GM2BarMin   KPA( 1.5) /* Pressure read at lowest ADC reading */

Definition at line 101 of file constantsLibrary.h.

#define GM2BarMax   KPA(200.0) /* Pressure read at highest ADC reading */

Definition at line 102 of file constantsLibrary.h.

#define GM2BarRange   (GM2BarMax - GM2BarMin)

Definition at line 103 of file constantsLibrary.h.

#define GM3BarMin   KPA( 1.11) /* Pressure read at lowest ADC reading */

Definition at line 106 of file constantsLibrary.h.

#define GM3BarMax   KPA(315.58) /* Pressure read at highest ADC reading */

Definition at line 107 of file constantsLibrary.h.

#define GM3BarRange   (GM3BarMax - GM3BarMin)

Definition at line 108 of file constantsLibrary.h.

#define MPX4100AMin   KPA( 14.0) /* Pressure read at lowest ADC reading */

Definition at line 111 of file constantsLibrary.h.

#define MPX4100AMax   KPA(107.5) /* Pressure read at highest ADC reading */

Definition at line 112 of file constantsLibrary.h.

#define MPX4100ARange   (MPX4100AMax - MPX4100AMin)

Definition at line 113 of file constantsLibrary.h.

#define MPXA6115AMin   KPA( 10.0) /* Pressure read at lowest ADC reading */

Definition at line 116 of file constantsLibrary.h.

#define MPXA6115AMax   KPA(120.0) /* Pressure read at highest ADC reading */

Definition at line 117 of file constantsLibrary.h.

#define MPXA6115ARange   (MPXA6115AMax - MPXA6115AMin)

Definition at line 118 of file constantsLibrary.h.

#define MPX4250AMin   KPA( 8) /* Pressure read at lowest ADC reading */

Definition at line 121 of file constantsLibrary.h.

#define MPX4250AMax   KPA(260) /* Pressure read at highest ADC reading */

Definition at line 122 of file constantsLibrary.h.

#define MPX4250ARange   (MPX4250AMax - MPX4250AMin)

Definition at line 123 of file constantsLibrary.h.

#define MPXH6300AMin   KPA( 12) /* Pressure read at lowest ADC reading */

Definition at line 125 of file constantsLibrary.h.

#define MPXH6300AMax   KPA(320) /* Pressure read at highest ADC reading */

Definition at line 126 of file constantsLibrary.h.

#define MPXH6300ARange   (MPXH6300AMax - MPXH6300AMin)

Definition at line 127 of file constantsLibrary.h.

#define MPXH6400AMin   KPA( 12) /* Pressure read at lowest ADC reading */

Definition at line 129 of file constantsLibrary.h.

#define MPXH6400AMax   KPA(420) /* Pressure read at highest ADC reading */

Definition at line 130 of file constantsLibrary.h.

#define MPXH6400ARange   (MPXH6400AMax - MPXH6400AMin)

Definition at line 131 of file constantsLibrary.h.

#define standardTachoArray   {1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2}

Definition at line 135 of file constantsLibrary.h.

#define standardTachoPorts   {(unsigned char*)&PORTE,(unsigned char*)&PORTK,(unsigned char*)&PORTK,(unsigned char*)&PORTK}

Definition at line 136 of file constantsLibrary.h.

#define standardTachoMasks   {0x80,0x01,0x02,0x04}

Definition at line 137 of file constantsLibrary.h.

#define ARRAY_OF_16_VOLTAGES   { V(6.0), V(7.2), V(8.4), V(9.0), V(9.6), V(10.2), V(10.8), V(11.4), V(12.0), V(12.6), V(13.2), V(13.8), V(14.4), V(17.8), V(21.0), V(24.5)}

Definition at line 141 of file constantsLibrary.h.

#define ARRAY_OF_16_DEADTIMES   { T(2.91), T(2.30), T(1.86), T(1.70), T(1.58), T(1.47), T(1.39), T(1.30), T(1.23), T(1.15), T(1.10), T(1.04), T(0.99), T(0.76), T(0.57), T(0.40)}

Definition at line 142 of file constantsLibrary.h.

#define ARRAY_OF_ID1000_DEADTIMES   { T(4.00), T(3.12), T(2.38), T(2.07), T(1.82), T(1.61), T(1.47), T(1.34), T(1.24), T(1.15), T(1.08), T(1.01), T(0.95), T(0.67), T(0.48), T(0.32)}

Definition at line 143 of file constantsLibrary.h.

#define ARRAY_OF_16_DWELLS   {T(14.55), T(11.50), T(9.30), T(8.50), T(7.90), T(7.35), T(6.95), T(6.50), T(6.15), T(5.75), T(5.48), T(5.20), T(4.95), T(3.80), T(2.85), T(2.00)}

Definition at line 144 of file constantsLibrary.h.

#define ARRAY_OF_16_TEMPS   { C(-30), C(-20), C(-10), C(0), C(10), C(20), C(30), C(40), C(50), C(60), C(70), C(80), C(90), C(100), C(110), C(120)}

Definition at line 147 of file constantsLibrary.h.

#define ARRAY_OF_16_PERCENTS   { W(250), W(235), W(220), W(205), W(190), W(175), W(160), W(145), W(130), W(118), W(108), W(100), W(100), W(110), W(120), W(130)}

Definition at line 148 of file constantsLibrary.h.

#define ARRAY_OF_16_PERCENTS_WIDE   { W(235), W(220), W(205), W(190), W(175), W(160), W(145), W(130), W(118), W(108), W(100), W(100), W(100), W(110), W(120), W(130)}

Definition at line 149 of file constantsLibrary.h.

#define ARRAY_OF_16_VOLUMES   {T(6.40), T(5.06), T(4.09), T(3.74), T(3.48), T(3.23), T(3.06), T(2.86), T(2.71), T(2.53), T(2.41), T(2.29), T(2.18), T(1.67), T(1.25), T(0.88)}

Definition at line 150 of file constantsLibrary.h.

#define ARRAY_OF_16_RPMS   { RPM(500), RPM(1000), RPM(1500), RPM(2000), RPM(2500), RPM(3000), RPM(3500), RPM(4000), RPM(4500), RPM(5000), RPM(5500), RPM(6000), RPM(6500), RPM(7000), RPM(7500), RPM(8000)}

Definition at line 153 of file constantsLibrary.h.

#define ARRAY_OF_16_DIS6_DWELLS   { T(5.75), T(5.50), T(5.25), T(5.00), T(4.75), T(4.50), T(4.25), T(4.00), T(3.75), T(3.50), T(3.25), T(3.00), T(2.75), T(2.50), T(2.25), T(2.00)}

Definition at line 154 of file constantsLibrary.h.

#define ARRAY_OF_16_BLENDS   { SHORTMAX, SHORTMAX, SHORTMAX, LR(1.5), LR(1.0), LR(0.5), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0), LR(0.0)}

Definition at line 155 of file constantsLibrary.h.

#define ARRAY_OF_16_TIMES   { 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, 61440}

Definition at line 158 of file constantsLibrary.h.