FreeEMS  0.2.0-SNAPSHOT-285-g028e24c
Macros | Variables
globalConstants.h File Reference

Global constant declarations. More...

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

Go to the source code of this file.

Macros

#define EXTERN   extern
#define INTERFACE_VERSION   "IFreeEMS Vanilla 0.0.0"
#define INTERFACE_VERSION_LENGTH   sizeof(INTERFACE_VERSION)
#define FIRMWARE_VERSION_LENGTH   sizeof(FIRMWARE_VERSION) + sizeof(BUILD_CONFIG) + 1
#define FIRMWARE_BUILD_DATE_LENGTH   sizeof(FIRMWARE_BUILD_DATE)
#define COMPILER_VERSION_LENGTH   sizeof(__VERSION__)
#define OPERATING_SYSTEM_LENGTH   sizeof(OPERATING_SYSTEM)
#define BUILT_BY_NAME_LENGTH   sizeof(BUILT_BY_NAME)
#define SUPPORT_EMAIL_LENGTH   sizeof(SUPPORT_EMAIL)

Variables

EXTERN const volatile unsigned
short 
IATTransferTable [1024]
EXTERN const volatile unsigned
short 
CHTTransferTable [1024]
EXTERN const volatile unsigned
short 
MAFTransferTable [1024]
EXTERN const volatile unsigned char TestTransferTable [2048]
EXTERN const unsigned char interfaceVersion [INTERFACE_VERSION_LENGTH]
 Serial interface unique identifier.
EXTERN const unsigned char firmwareVersion [FIRMWARE_VERSION_LENGTH]
 Displayable firmware version identifier.
EXTERN const unsigned char buildTimeAndDate [FIRMWARE_BUILD_DATE_LENGTH]
 When and roughly where it was built.
EXTERN const unsigned char compilerVersion [COMPILER_VERSION_LENGTH]
 GCC supplied compiler version used to build it.
EXTERN const unsigned char operatingSystem [OPERATING_SYSTEM_LENGTH]
 Which OS was it built on.
EXTERN const unsigned char builtByName [BUILT_BY_NAME_LENGTH]
 Name of the person who built it.
EXTERN const unsigned char supportEmail [SUPPORT_EMAIL_LENGTH]
 Support email for this build.
EXTERN const unsigned char ectMainOnMasks [ECT_CHANNELS]
EXTERN const unsigned char ectMainOffMasks [ECT_CHANNELS]
EXTERN const unsigned char ectMainActiveMasks [ECT_CHANNELS]
EXTERN const unsigned char ectMainEnableMasks [ECT_CHANNELS]
EXTERN const unsigned char ectMainDisableMasks [ECT_CHANNELS]
EXTERN const unsigned char ectMainGoHighMasks [ECT_CHANNELS]
EXTERN const unsigned char ectMainGoLowMasks [ECT_CHANNELS]
EXTERN const volatile mainTable VETableMainFlash
EXTERN const volatile mainTable VETableSecondaryFlash
EXTERN const volatile mainTable AirflowTableFlash
EXTERN const volatile mainTable LambdaTableFlash
EXTERN const volatile mainTable IgnitionAdvanceTableMainFlash
EXTERN const volatile mainTable IgnitionAdvanceTableSecondaryFlash
EXTERN const volatile mainTable InjectionAdvanceTableMainFlash
EXTERN const volatile mainTable InjectionAdvanceTableSecondaryFlash
EXTERN const volatile mainTable VETableMainFlash2
EXTERN const volatile mainTable VETableSecondaryFlash2
EXTERN const volatile mainTable AirflowTableFlash2
EXTERN const volatile mainTable LambdaTableFlash2
EXTERN const volatile mainTable IgnitionAdvanceTableMainFlash2
EXTERN const volatile mainTable IgnitionAdvanceTableSecondaryFlash2
EXTERN const volatile mainTable InjectionAdvanceTableMainFlash2
EXTERN const volatile mainTable InjectionAdvanceTableSecondaryFlash2
EXTERN const volatile SmallTables1 SmallTablesAFlash
EXTERN const volatile SmallTables2 SmallTablesBFlash
EXTERN const volatile SmallTables3 SmallTablesCFlash
EXTERN const volatile SmallTables4 SmallTablesDFlash
EXTERN const volatile SmallTables1 SmallTablesAFlash2
EXTERN const volatile SmallTables2 SmallTablesBFlash2
EXTERN const volatile SmallTables3 SmallTablesCFlash2
EXTERN const volatile SmallTables4 SmallTablesDFlash2
EXTERN const volatile fixedConfig1 fixedConfigs1
EXTERN const volatile fixedConfig2 fixedConfigs2
EXTERN const unsigned long masterFuelConstant
EXTERN const unsigned long MAFFuelConstant
EXTERN const unsigned short ectSwitchOnCodeTime
EXTERN const unsigned short ectSwitchOffCodeTime

Detailed Description

Global constant declarations.

All global constants are declared in this file for use throughout the program.

Definition in file globalConstants.h.

Macro Definition Documentation

#define EXTERN   extern

Definition at line 53 of file globalConstants.h.

#define INTERFACE_VERSION   "IFreeEMS Vanilla 0.0.0"

Definition at line 57 of file globalConstants.h.

#define INTERFACE_VERSION_LENGTH   sizeof(INTERFACE_VERSION)

Definition at line 60 of file globalConstants.h.

#define FIRMWARE_VERSION_LENGTH   sizeof(FIRMWARE_VERSION) + sizeof(BUILD_CONFIG) + 1

Definition at line 61 of file globalConstants.h.

#define FIRMWARE_BUILD_DATE_LENGTH   sizeof(FIRMWARE_BUILD_DATE)

Definition at line 62 of file globalConstants.h.

#define COMPILER_VERSION_LENGTH   sizeof(__VERSION__)

Definition at line 63 of file globalConstants.h.

#define OPERATING_SYSTEM_LENGTH   sizeof(OPERATING_SYSTEM)

Definition at line 64 of file globalConstants.h.

#define BUILT_BY_NAME_LENGTH   sizeof(BUILT_BY_NAME)

Definition at line 65 of file globalConstants.h.

#define SUPPORT_EMAIL_LENGTH   sizeof(SUPPORT_EMAIL)

Definition at line 66 of file globalConstants.h.

Variable Documentation

EXTERN const volatile unsigned short IATTransferTable[1024]

Definition at line 74 of file globalConstants.h.

Referenced by generateCoreVars(), initLookupAddresses(), and lookupBlockDetails().

EXTERN const volatile unsigned short CHTTransferTable[1024]

Definition at line 75 of file globalConstants.h.

Referenced by generateCoreVars(), initLookupAddresses(), and lookupBlockDetails().

EXTERN const volatile unsigned short MAFTransferTable[1024]

Definition at line 76 of file globalConstants.h.

Referenced by generateCoreVars(), initLookupAddresses(), and lookupBlockDetails().

EXTERN const volatile unsigned char TestTransferTable[2048]

Definition at line 77 of file globalConstants.h.

Referenced by initLookupAddresses(), and lookupBlockDetails().

EXTERN const unsigned char interfaceVersion[INTERFACE_VERSION_LENGTH]

Serial interface unique identifier.

This should only change when the serial interface changes (even a little)

This field consists of 3 chars for a 3 part version number and a free form string. For any unique string the version number is also unique. In this way tools can easily support a range of versions for a specific unique string ID

Definition at line 87 of file globalConstants.h.

EXTERN const unsigned char firmwareVersion[FIRMWARE_VERSION_LENGTH]

Displayable firmware version identifier.

This changes automatically every time the code is changed at all (even a little) thanks to Git.

Definition at line 93 of file globalConstants.h.

EXTERN const unsigned char buildTimeAndDate[FIRMWARE_BUILD_DATE_LENGTH]

When and roughly where it was built.

Definition at line 95 of file globalConstants.h.

EXTERN const unsigned char compilerVersion[COMPILER_VERSION_LENGTH]

GCC supplied compiler version used to build it.

Definition at line 96 of file globalConstants.h.

EXTERN const unsigned char operatingSystem[OPERATING_SYSTEM_LENGTH]

Which OS was it built on.

Definition at line 97 of file globalConstants.h.

EXTERN const unsigned char builtByName[BUILT_BY_NAME_LENGTH]

Name of the person who built it.

Definition at line 98 of file globalConstants.h.

EXTERN const unsigned char supportEmail[SUPPORT_EMAIL_LENGTH]

Support email for this build.

Definition at line 99 of file globalConstants.h.

EXTERN const unsigned char ectMainOnMasks[ECT_CHANNELS]

Definition at line 103 of file globalConstants.h.

EXTERN const unsigned char ectMainOffMasks[ECT_CHANNELS]

Definition at line 104 of file globalConstants.h.

EXTERN const unsigned char ectMainActiveMasks[ECT_CHANNELS]

Definition at line 105 of file globalConstants.h.

EXTERN const unsigned char ectMainEnableMasks[ECT_CHANNELS]

Definition at line 106 of file globalConstants.h.

EXTERN const unsigned char ectMainDisableMasks[ECT_CHANNELS]

Definition at line 107 of file globalConstants.h.

EXTERN const unsigned char ectMainGoHighMasks[ECT_CHANNELS]

Definition at line 108 of file globalConstants.h.

EXTERN const unsigned char ectMainGoLowMasks[ECT_CHANNELS]

Definition at line 109 of file globalConstants.h.

EXTERN const volatile mainTable VETableMainFlash

Definition at line 117 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable VETableSecondaryFlash

Definition at line 118 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable AirflowTableFlash

Definition at line 119 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable LambdaTableFlash

Definition at line 120 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable IgnitionAdvanceTableMainFlash

Definition at line 122 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile mainTable IgnitionAdvanceTableSecondaryFlash

Definition at line 123 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile mainTable InjectionAdvanceTableMainFlash

Definition at line 124 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile mainTable InjectionAdvanceTableSecondaryFlash

Definition at line 125 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile mainTable VETableMainFlash2

Definition at line 127 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable VETableSecondaryFlash2

Definition at line 128 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable AirflowTableFlash2

Definition at line 129 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable LambdaTableFlash2

Definition at line 130 of file globalConstants.h.

Referenced by initFuelAddresses().

EXTERN const volatile mainTable IgnitionAdvanceTableMainFlash2

Definition at line 132 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile mainTable IgnitionAdvanceTableSecondaryFlash2

Definition at line 133 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile mainTable InjectionAdvanceTableMainFlash2

Definition at line 134 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile mainTable InjectionAdvanceTableSecondaryFlash2

Definition at line 135 of file globalConstants.h.

Referenced by initTimingAddresses().

EXTERN const volatile SmallTables1 SmallTablesAFlash

Definition at line 137 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile SmallTables2 SmallTablesBFlash

Definition at line 138 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile SmallTables3 SmallTablesCFlash

Definition at line 139 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile SmallTables4 SmallTablesDFlash

Definition at line 140 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile SmallTables1 SmallTablesAFlash2

Definition at line 142 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile SmallTables2 SmallTablesBFlash2

Definition at line 143 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile SmallTables3 SmallTablesCFlash2

Definition at line 144 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile SmallTables4 SmallTablesDFlash2

Definition at line 145 of file globalConstants.h.

Referenced by initTunableAddresses().

EXTERN const volatile fixedConfig1 fixedConfigs1
EXTERN const volatile fixedConfig2 fixedConfigs2
EXTERN const unsigned long masterFuelConstant

Definition at line 152 of file globalConstants.h.

EXTERN const unsigned long MAFFuelConstant

Definition at line 153 of file globalConstants.h.

EXTERN const unsigned short ectSwitchOnCodeTime
Todo:
TODO Move these to decoder interface AND rename to be more generic/meaningful/accurate, and make set by each decoder where appropriate

Definition at line 159 of file globalConstants.h.

EXTERN const unsigned short ectSwitchOffCodeTime

Definition at line 161 of file globalConstants.h.