errorDefines.h

Go to the documentation of this file.
00001 /*      errorDefines.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_ERRORDEFINES_H_SEEN
00027 #define FILE_ERRORDEFINES_H_SEEN
00028 
00029 
00030 /* TODO Introduce some structure to the numbering such that they can be interpreted somewhat without a chart */
00031 
00032 
00033 /* Unconfigured options */
00034 #define IAT_NOT_CONFIGURED_CODE                 0x1000
00035 #define CHT_NOT_CONFIGURED_CODE                 0x1001
00036 #define TPS_NOT_CONFIGURED_CODE                 0x1002
00037 #define EGO_NOT_CONFIGURED_CODE                 0x1003
00038 #define BRV_NOT_CONFIGURED_CODE                 0x1004
00039 #define MAP_NOT_CONFIGURED_CODE                 0x1005
00040 #define AAP_NOT_CONFIGURED_CODE                 0x1006
00041 #define MAT_NOT_CONFIGURED_CODE                 0x1007
00042 #define EGO2_NOT_CONFIGURED_CODE                0x1008
00043 #define IAP_NOT_CONFIGURED_CODE                 0x1009
00044 #define LOAD_NOT_CONFIGURED_CODE                0x100A
00045 #define AIRFLOW_NOT_CONFIGURED_CODE             0x100B
00046 #define BPW_NOT_CONFIGURED_CODE                 0x100C
00047 
00048 
00049 /* Badly configured options */
00050 #define VE_TABLE_MAIN_LOAD_LENGTH_TOO_LONG      0x2000
00051 #define VE_TABLE_MAIN_RPM_LENGTH_TOO_LONG       0x2001
00052 #define VE_TABLE_MAIN_MAIN_LENGTH_TOO_LONG      0x2002
00053 #define BRV_MAX_TOO_LARGE                                       0x2003
00054 
00055 
00056 /* Flash burning error codes */
00057 #define sizeNotMultipleOfSectorSize             0x3000
00058 #define addressNotSectorAligned                 0x3001
00059 #define addressNotWordAligned                   0x3002
00060 #define addressNotFlashRegion                   0x3003
00061 #define flashEraseFailed                                0x3004
00062 #define flashAccessError                                0x3005
00063 #define flashProtectionError                    0x3006
00064 
00065 
00066 
00067 /* Communications error codes */
00068 #define unimplementedFunction                   0x4000
00069 #define packetChecksumMismatch                  0x4001
00070 #define sourceAddressIsBroadcast                0x4002
00071 #define sourceAddressIsDuplicate                0x4003
00072 #define payloadLengthTypeMismatch               0x4004
00073 #define payloadLengthHeaderMismatch             0x4005
00074 #define unrecognisedProtocolPayloadID   0x4006
00075 #define unrecognisedFirmwarePayloadID   0x4007
00076 #define invalidProtocolPayloadID                0x4008
00077 #define invalidFirmwarePayloadID                0x4009
00078 #define invalidMemoryActionForID                0x400A
00079 #define invalidIDForMainTableAction             0x400B
00080 #define invalidIDForTwoDTableAction             0x400C
00081 #define noSuchAsyncDatalogType                  0x400D
00082 #define datalogLengthExceedsMax                 0x400E
00083 
00084 #define invalidAxisOrder                                0
00085 #define invalidAxisIndex                                1
00086 
00087 #define errorBaseMainTableRPM                   0x6000
00088 #define invalidMainTableRPMOrder                0x6000
00089 #define invalidMainTableRPMIndex                0x6001
00090 #define invalidMainTableRPMLength               0x6002
00091 #define errorBaseMainTableLoad                  0x6003
00092 #define invalidMainTableLoadOrder               0x6003
00093 #define invalidMainTableLoadIndex               0x6004
00094 #define invalidMainTableLoadLength              0x6005
00095 #define invalidMainTableMainLength              0x6006
00096 
00097 #define errorBaseTwoDTableAxis                  0x6010
00098 #define invalidTwoDTableAxisOrder               0x6010
00099 #define invalidTwoDTableIndex                   0x6011
00100 
00101 
00102 #else
00103         /* let us know if we are being untidy with headers */
00104         #warning "Header file ERRORDEFINES_H seen before, sort it out!"
00105 /* end of the wrapper ifdef from the very top */
00106 #endif

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