blockDetailsLookup.h

Go to the documentation of this file.
00001 /*      blockDetailsLookup.h
00002 
00003         Copyright 2008 Fred Cooke
00004 
00005         This file is part of the FreeEMS project.
00006 
00007         FreeEMS software is free software: you can redistribute it and/or modify
00008         it under the terms of the GNU General Public License as published by
00009         the Free Software Foundation, either version 3 of the License, or
00010         (at your option) any later version.
00011 
00012         FreeEMS software is distributed in the hope that it will be useful,
00013         but WITHOUT ANY WARRANTY; without even the implied warranty of
00014         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015         GNU General Public License for more details.
00016 
00017         You should have received a copy of the GNU General Public License
00018         along with any FreeEMS software.  If not, see <http://www.gnu.org/licenses/>.
00019 
00020         We ask that if you make any changes to this file you send them upstream to us at admin@diyefi.org
00021 
00022         Thank you for choosing FreeEMS to run your engine! */
00023 
00024 /* Header file multiple inclusion protection courtesy eclipse Header Template   */
00025 /* and http://gcc.gnu.org/onlinedocs/gcc-3.1.1/cpp/ C pre processor manual              */
00026 #ifndef FILE_BLOCK_DETAILS_LOOKUP_H_SEEN
00027 #define FILE_BLOCK_DETAILS_LOOKUP_H_SEEN
00028 
00029 #ifdef BLOCK_DETAILS_LOOKUP_C
00030 #define EXTERN
00031 #else
00032 #define EXTERN extern
00033 #endif
00034 
00035 EXTERN void lookupBlockDetails(unsigned short, blockDetails*) FPAGE_FE;
00036 
00037 
00038 /* Memory block ID section */
00039 
00040 /* Fueling blocks */
00041 #define VETableMainLocationID                                           0
00042 #define VETableMain2LocationID                                          1
00043 #define VETableSecondaryLocationID                                      2
00044 #define VETableSecondary2LocationID                                     3
00045 #define VETableTertiaryLocationID                                       4
00046 #define VETableTertiary2LocationID                                      5
00047 #define LambdaTableLocationID                                           6
00048 #define LambdaTable2LocationID                                          7
00049 /* Timing blocks */
00050 #define IgnitionAdvanceTableMainLocationID                      8
00051 #define IgnitionAdvanceTableMain2LocationID                     9
00052 #define IgnitionAdvanceTableSecondaryLocationID         10
00053 #define IgnitionAdvanceTableSecondary2LocationID        11
00054 #define InjectionAdvanceTableMainLocationID                     12
00055 #define InjectionAdvanceTableMain2LocationID            13
00056 #define InjectionAdvanceTableSecondaryLocationID        14
00057 #define InjectionAdvanceTableSecondary2LocationID       15
00058 /* Tuable blocks */
00059 #define SmallTablesALocationID                                          100
00060 #define SmallTablesA2LocationID                                         101
00061 #define SmallTablesBLocationID                                          102
00062 #define SmallTablesB2LocationID                                         103
00063 #define SmallTablesCLocationID                                          104
00064 #define SmallTablesC2LocationID                                         105
00065 #define SmallTablesDLocationID                                          106
00066 #define SmallTablesD2LocationID                                         107
00067 /* Flash ONLY fixed config blocks */
00068 #define FixedConfig1LocationID                                          200
00069 #define FixedConfig2LocationID                                          201
00070 /* Flash ONLY lookup tables blocks */
00071 #define IATTransferTableLocationID                                      300 /* 2k */
00072 #define CHTTransferTableLocationID                                      301 /* 2k */
00073 #define MAFTransferTableLocationID                                      302 /* 2k */
00074 #define TestTransferTableLocationID                                     303 /* 2k */
00075 
00076 /* Individual small chunks of small tables blocks */
00077 /* twoDTableUS          = 400 - 899 */
00078 /* arrays/structs       = 900 - 999 */
00079 /* fillers                      = 1000+ */
00080 
00081 /* TablesA */
00082 #define dwellDesiredVersusVoltageTableLocationID                400
00083 #define dwellDesiredVersusVoltageTable2LocationID               401
00084 #define injectorDeadTimeTableLocationID                                 402
00085 #define injectorDeadTimeTable2LocationID                                403
00086 #define postStartEnrichmentTableLocationID                              404
00087 #define postStartEnrichmentTable2LocationID                             405
00088 #define engineTempEnrichmentTableFixedLocationID                406
00089 #define engineTempEnrichmentTableFixed2LocationID               407
00090 #define primingVolumeTableLocationID                                    408
00091 #define primingVolumeTable2LocationID                                   409
00092 #define engineTempEnrichmentTablePercentLocationID              410
00093 #define engineTempEnrichmentTablePercent2LocationID             411
00094 #define dwellMaxVersusRPMTableLocationID                                412
00095 #define dwellMaxVersusRPMTable2LocationID                               413
00096 
00097 
00098 /* TablesB */
00099 #define perCylinderFuelTrimsLocationID                                  900
00100 #define perCylinderFuelTrims2LocationID                                 901
00101 
00102 /* TablesC */
00103 
00104 /* TablesD */
00105 
00106 /* filler defs */
00107 #define fillerALocationID                                                       1000
00108 #define fillerA2LocationID                                                      1001
00109 #define fillerBLocationID                                                       1002
00110 #define fillerB2LocationID                                                      1003
00111 #define fillerCLocationID                                                       1004
00112 #define fillerC2LocationID                                                      1005
00113 #define fillerDLocationID                                                       1006
00114 #define fillerD2LocationID                                                      1007
00115 
00116 
00117 /* Individual small chunks of fixed config blocks */
00118 
00119 // TODO no point till we can burn down small pieces via buffer.
00120 
00121 
00122 #undef EXTERN
00123 
00124 #else
00125         /* let us know if we are being untidy with headers */
00126         #warning "Header file BLOCK_DETAILS_LOOKUP_H seen before, sort it out!"
00127 /* end of the wrapper ifdef from the very top */
00128 #endif

Generated on Mon Dec 22 21:29:17 2008 for freeems by  doxygen 1.5.2