tableLookup.h

Go to the documentation of this file.
00001 /*      tableLookup.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_TABLELOOKUP_H_SEEN
00027 #define FILE_TABLELOOKUP_H_SEEN
00028 
00029 #ifdef TABLELOOKUP_C
00030 #define EXTERN
00031 #else
00032 #define EXTERN extern
00033 #endif
00034 
00035 
00036 EXTERN unsigned short lookupTwoDTableUS(twoDTableUS *, unsigned short) TEXT;
00037 EXTERN unsigned short lookupPagedMainTableCellValue(mainTable *, unsigned short, unsigned short, unsigned char) TEXT;
00038 
00039 EXTERN unsigned short setPagedMainTableCellValue(unsigned char, mainTable*, unsigned short, unsigned short, unsigned short) TEXT;
00040 EXTERN unsigned short setPagedMainTableRPMValue(unsigned char, mainTable*, unsigned short, unsigned short) TEXT;
00041 EXTERN unsigned short setPagedMainTableLoadValue(unsigned char, mainTable*, unsigned short, unsigned short) TEXT;
00042 
00043 EXTERN unsigned short setPagedTwoDTableCellValue(unsigned char, twoDTableUS*, unsigned short, unsigned short) TEXT;
00044 EXTERN unsigned short setPagedTwoDTableAxisValue(unsigned char, twoDTableUS*, unsigned short, unsigned short) TEXT;
00045 
00046 
00047 EXTERN unsigned short validateMainTable(mainTable*) TEXT;
00048 EXTERN unsigned short validateTwoDTable(twoDTableUS*) TEXT;
00049 
00050 
00051 /* These might change or might stay the same, so keeping for now */
00052 //EXTERN unsigned short lookup16Bit3dUS(unsigned short*, unsigned short, unsigned short, unsigned short*, unsigned short*, unsigned char, unsigned char); bad wrong.
00053 //EXTERN unsigned char lookup8Bit2dUC(void);
00054 //EXTERN unsigned char lookup8Bit3dUC(void);
00055 //EXTERN signed short lookup16Bit3D(void);
00056 //EXTERN signed char lookup8Bit3D(void);
00057 //EXTERN signed short lookup16Bit2D(void);
00058 //EXTERN signed char lookup8Bit2D(void);
00059 
00060 #undef EXTERN
00061 
00062 #else
00063         /* let us know if we are being untidy with headers */
00064         #warning "Header file TABLELOOKUP_H seen before, sort it out!"
00065 /* end of the wrapper ifdef from the very top */
00066 #endif

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