Speeduino
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
errors.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  packedError
 

Macros

#define ERR_NONE   0
 
#define ERR_UNKNOWN   1
 
#define ERR_IAT_SHORT   2
 
#define ERR_IAT_GND   3
 
#define ERR_CLT_SHORT   4
 
#define ERR_CLT_GND   5
 
#define ERR_O2_SHORT   6
 
#define ERR_O2_GND   7
 
#define ERR_TPS_SHORT   8
 
#define ERR_TPS_GND   9
 
#define ERR_BAT_HIGH   10
 
#define ERR_BAT_LOW   11
 
#define ERR_MAP_HIGH   12
 
#define ERR_MAP_LOW   13
 
#define ERR_DEFAULT_IAT_SHORT   80
 
#define ERR_DEFAULT_IAT_GND   80
 
#define ERR_DEFAULT_CKT_SHORT   80
 
#define ERR_DEFAULT_CLT_GND   80
 
#define ERR_DEFAULT_O2_SHORT   147
 
#define ERR_DEFAULT_O2_GND   147
 
#define ERR_DEFAULT_TPS_SHORT   50
 
#define ERR_DEFAULT_TPS_GND   50
 
#define ERR_DEFAULT_BAT_HIGH   130
 
#define ERR_DEFAULT_BAT_LOW   130
 
#define ERR_DEFAULT_MAP_HIGH   240
 
#define ERR_DEFAULT_MAP_LOW   80
 
#define MAX_ERRORS   4
 

Functions

byte getNextError (void)
 
byte setError (byte errorID)
 
void clearError (byte errorID)
 

Variables

byte errorCount
 

Macro Definition Documentation

◆ ERR_BAT_HIGH

#define ERR_BAT_HIGH   10

◆ ERR_BAT_LOW

#define ERR_BAT_LOW   11

◆ ERR_CLT_GND

#define ERR_CLT_GND   5

◆ ERR_CLT_SHORT

#define ERR_CLT_SHORT   4

◆ ERR_DEFAULT_BAT_HIGH

#define ERR_DEFAULT_BAT_HIGH   130

◆ ERR_DEFAULT_BAT_LOW

#define ERR_DEFAULT_BAT_LOW   130

◆ ERR_DEFAULT_CKT_SHORT

#define ERR_DEFAULT_CKT_SHORT   80

◆ ERR_DEFAULT_CLT_GND

#define ERR_DEFAULT_CLT_GND   80

◆ ERR_DEFAULT_IAT_GND

#define ERR_DEFAULT_IAT_GND   80

◆ ERR_DEFAULT_IAT_SHORT

#define ERR_DEFAULT_IAT_SHORT   80

◆ ERR_DEFAULT_MAP_HIGH

#define ERR_DEFAULT_MAP_HIGH   240

◆ ERR_DEFAULT_MAP_LOW

#define ERR_DEFAULT_MAP_LOW   80

◆ ERR_DEFAULT_O2_GND

#define ERR_DEFAULT_O2_GND   147

◆ ERR_DEFAULT_O2_SHORT

#define ERR_DEFAULT_O2_SHORT   147

◆ ERR_DEFAULT_TPS_GND

#define ERR_DEFAULT_TPS_GND   50

◆ ERR_DEFAULT_TPS_SHORT

#define ERR_DEFAULT_TPS_SHORT   50

◆ ERR_IAT_GND

#define ERR_IAT_GND   3

◆ ERR_IAT_SHORT

#define ERR_IAT_SHORT   2

◆ ERR_MAP_HIGH

#define ERR_MAP_HIGH   12

◆ ERR_MAP_LOW

#define ERR_MAP_LOW   13

◆ ERR_NONE

#define ERR_NONE   0

◆ ERR_O2_GND

#define ERR_O2_GND   7

◆ ERR_O2_SHORT

#define ERR_O2_SHORT   6

◆ ERR_TPS_GND

#define ERR_TPS_GND   9

◆ ERR_TPS_SHORT

#define ERR_TPS_SHORT   8

◆ ERR_UNKNOWN

#define ERR_UNKNOWN   1

◆ MAX_ERRORS

#define MAX_ERRORS   4

Function Documentation

◆ clearError()

void clearError ( byte  errorID)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNextError()

byte getNextError ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setError()

byte setError ( byte  errorID)
Here is the caller graph for this function:

Variable Documentation

◆ errorCount

byte errorCount
extern