Rearranged headers somewhat, much more still to do.
[freeems-vanilla.git] / src / inc / blockDetailsLookup.h
blobb06e87c306fe523dc710cf83ab6ce68dae37407b
1 /* blockDetailsLookup.h
3 Copyright 2008 Fred Cooke
5 This file is part of the FreeEMS project.
7 FreeEMS software is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 FreeEMS software is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with any FreeEMS software. If not, see <http://www.gnu.org/licenses/>.
20 We ask that if you make any changes to this file you send them upstream to us at admin@diyefi.org
22 Thank you for choosing FreeEMS to run your engine! */
24 /* Header file multiple inclusion protection courtesy eclipse Header Template */
25 /* and http://gcc.gnu.org/onlinedocs/gcc-3.1.1/cpp/ C pre processor manual */
26 #ifndef FILE_BLOCK_DETAILS_LOOKUP_H_SEEN
27 #define FILE_BLOCK_DETAILS_LOOKUP_H_SEEN
29 #ifdef BLOCK_DETAILS_LOOKUP_C
30 #define EXTERN
31 #else
32 #define EXTERN extern
33 #endif
35 EXTERN unsigned short lookupBlockDetails(unsigned short, blockDetails*) FPAGE_FE;
38 /* Memory block ID section */
40 /* Fueling blocks */
41 #define VETableMainLocationID 0
42 #define VETableMain2LocationID 1
43 #define VETableSecondaryLocationID 2
44 #define VETableSecondary2LocationID 3
45 #define VETableTertiaryLocationID 4
46 #define VETableTertiary2LocationID 5
47 #define LambdaTableLocationID 6
48 #define LambdaTable2LocationID 7
49 /* Timing blocks */
50 #define IgnitionAdvanceTableMainLocationID 8
51 #define IgnitionAdvanceTableMain2LocationID 9
52 #define IgnitionAdvanceTableSecondaryLocationID 10
53 #define IgnitionAdvanceTableSecondary2LocationID 11
54 #define InjectionAdvanceTableMainLocationID 12
55 #define InjectionAdvanceTableMain2LocationID 13
56 #define InjectionAdvanceTableSecondaryLocationID 14
57 #define InjectionAdvanceTableSecondary2LocationID 15
58 /* Tuable blocks */
59 #define SmallTablesALocationID 100
60 #define SmallTablesA2LocationID 101
61 #define SmallTablesBLocationID 102
62 #define SmallTablesB2LocationID 103
63 #define SmallTablesCLocationID 104
64 #define SmallTablesC2LocationID 105
65 #define SmallTablesDLocationID 106
66 #define SmallTablesD2LocationID 107
67 /* Flash ONLY fixed config blocks */
68 #define FixedConfig1LocationID 200
69 #define FixedConfig2LocationID 201
70 /* Flash ONLY lookup tables blocks */
71 #define IATTransferTableLocationID 300 /* 2k */
72 #define CHTTransferTableLocationID 301 /* 2k */
73 #define MAFTransferTableLocationID 302 /* 2k */
74 #define TestTransferTableLocationID 303 /* 2k */
76 /* Individual small chunks of small tables blocks */
77 /* twoDTableUS = 400 - 899 */
78 /* arrays/structs = 900 - 999 */
79 /* fillers = 1000+ */
81 /* TablesA */
82 #define dwellDesiredVersusVoltageTableLocationID 400
83 #define dwellDesiredVersusVoltageTable2LocationID 401
84 #define injectorDeadTimeTableLocationID 402
85 #define injectorDeadTimeTable2LocationID 403
86 #define postStartEnrichmentTableLocationID 404
87 #define postStartEnrichmentTable2LocationID 405
88 #define engineTempEnrichmentTableFixedLocationID 406
89 #define engineTempEnrichmentTableFixed2LocationID 407
90 #define primingVolumeTableLocationID 408
91 #define primingVolumeTable2LocationID 409
92 #define engineTempEnrichmentTablePercentLocationID 410
93 #define engineTempEnrichmentTablePercent2LocationID 411
94 #define dwellMaxVersusRPMTableLocationID 412
95 #define dwellMaxVersusRPMTable2LocationID 413
98 /* TablesB */
99 #define perCylinderFuelTrimsLocationID 900
100 #define perCylinderFuelTrims2LocationID 901
102 /* TablesC */
104 /* TablesD */
106 /* filler defs */
107 #define fillerALocationID 1000
108 #define fillerA2LocationID 1001
109 #define fillerBLocationID 1002
110 #define fillerB2LocationID 1003
111 #define fillerCLocationID 1004
112 #define fillerC2LocationID 1005
113 #define fillerDLocationID 1006
114 #define fillerD2LocationID 1007
117 /* Individual small chunks of fixed config blocks */
119 // TODO no point till we can burn down small pieces via buffer.
122 #undef EXTERN
124 #else
125 /* let us know if we are being untidy with headers */
126 #warning "Header file BLOCK_DETAILS_LOOKUP_H seen before, sort it out!"
127 /* end of the wrapper ifdef from the very top */
128 #endif