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 /* Returning zero indicates that all went well */
00033 #define NO_ERROR_ALL_A_OK                               0x0000
00034 
00035 /* Unconfigured options */
00036 #define IAT_NOT_CONFIGURED_CODE                 0x1000
00037 #define CHT_NOT_CONFIGURED_CODE                 0x1001
00038 #define TPS_NOT_CONFIGURED_CODE                 0x1002
00039 #define EGO_NOT_CONFIGURED_CODE                 0x1003
00040 #define BRV_NOT_CONFIGURED_CODE                 0x1004
00041 #define MAP_NOT_CONFIGURED_CODE                 0x1005
00042 #define AAP_NOT_CONFIGURED_CODE                 0x1006
00043 #define MAT_NOT_CONFIGURED_CODE                 0x1007
00044 #define EGO2_NOT_CONFIGURED_CODE                0x1008
00045 #define IAP_NOT_CONFIGURED_CODE                 0x1009
00046 #define LOAD_NOT_CONFIGURED_CODE                0x100A
00047 #define AIRFLOW_NOT_CONFIGURED_CODE             0x100B
00048 #define BPW_NOT_CONFIGURED_CODE                 0x100C
00049 
00050 
00051 /* Badly configured options */
00052 #define VE_TABLE_MAIN_LOAD_LENGTH_TOO_LONG      0x2000
00053 #define VE_TABLE_MAIN_RPM_LENGTH_TOO_LONG       0x2001
00054 #define VE_TABLE_MAIN_MAIN_LENGTH_TOO_LONG      0x2002
00055 #define BRV_MAX_TOO_LARGE                                       0x2003
00056 
00057 
00058 /* Flash burning error codes */
00059 //#define
00060 
00061 
00062 /* Communications error codes */
00063 #define unimplementedFunction                   0x4000
00064 #define packetChecksumMismatch                  0x4001
00065 #define invalidSourceAddress                    0x4002
00066 #define payloadLengthTypeMismatch               0x4003
00067 #define payloadLengthHeaderMismatch             0x4004
00068 #define unrecognisedProtocolPayloadID   0x4005
00069 #define unrecognisedFirmwarePayloadID   0x4006
00070 #define invalidProtocolPayloadID                0x4007
00071 #define invalidFirmwarePayloadID                0x4008
00072 #define invalidMemoryActionForID                0x4009
00073 
00074 #define invalidMainTableRPMOrder                0x5000
00075 #define invalidMainTableRPMIndex                0x5001
00076 #define invalidMainTableRPMLength               0x5002
00077 #define invalidMainTableLoadOrder               0x5003
00078 #define invalidMainTableLoadIndex               0x5004
00079 #define invalidMainTableLoadLength              0x5005
00080 #define invalidMainTableMainLength              0x5006
00081 
00082 #define invalidTwoDTableAxisOrder               0x5010
00083 
00084 
00085 #else
00086         /* let us know if we are being untidy with headers */
00087         #warning "Header file ERRORDEFINES_H seen before, sort it out!"
00088 /* end of the wrapper ifdef from the very top */
00089 #endif

Generated on Mon Nov 10 21:18:50 2008 for freeems by  doxygen 1.5.2