Simple Arduino FSM
LogConfiguration.h File Reference

Contains Pre-Compiler directives for diffent Serialprints for Datalogin. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUGGER   true
 Option to activate the Serial.print global. More...
 
#define DEBUG_ERROR
 Define DEBUG_ERROR global to print all occuring errors via serial. More...
 
#define DEBUG_WARNING
 Define DEBUG_WARNING global to print all occuring warnings via serial. More...
 
#define DEBUG_STATUS
 Define DEBUG_STATUS global to print all occuring FSM status-updates via serial. More...
 
#define DEBUG_EVENT
 Define DEBUG_EVENT global to print all occuring EVENTS which lead to a statechange via serial. More...
 
#define DEBUG_INFO1
 Define DEBUG_INFO1 global to print all occuring FSM status changes (entering/leaving) via serial. More...
 
#define DEBUG_INFO2
 Define DEBUG_INFO2 global to print all occuring infos inside the FSM via serial. More...
 
#define DEBUG_INFO3
 Define DEBUG_INFO3 global to print all occuring message on hardwarelevel via serial. More...
 
#define DEBUG_FUNCCALL
 Define DEBUG_FUNCCALL global to print all occuring functioncalls via serial. More...
 
#define DBERROR(x)
 
#define DBWARNING(x)   Serial.print(x)
 
#define DBWARNINGln(x)   Serial.println(x)
 
#define DBSTATUS(x)   Serial.print(x)
 
#define DBSTATUSln(x)   Serial.println(x)
 
#define DBEVENT(x)   Serial.print(x)
 
#define DBEVENTln(x)   Serial.println(x)
 
#define DBINFO1(x)
 
#define DBINFO1ln(x)
 
#define DBINFO2(x)
 
#define DBINFO2ln(x)
 
#define DBINFO3(x)
 
#define DBINFO3ln(x)
 
#define DBFUNCCALL(x)
 
#define DBFUNCCALLln(x)
 

Detailed Description

Contains Pre-Compiler directives for diffent Serialprints for Datalogin.

Author
Luca Mazzoleni (luca..nosp@m.mazz.nosp@m.oleni.nosp@m.@hsr.nosp@m..ch)
Version
1.0 - Implement diffrent debug functions - Luca Mazzoleni (luca..nosp@m.mazz.nosp@m.oleni.nosp@m.@hsr.nosp@m..ch) - 2019-03-20
Date
2019-03-20

Definition in file LogConfiguration.h.

Macro Definition Documentation

◆ DEBUGGER

#define DEBUGGER   true

Option to activate the Serial.print global.

Definition at line 18 of file LogConfiguration.h.

◆ DEBUG_ERROR

#define DEBUG_ERROR

Define DEBUG_ERROR global to print all occuring errors via serial.

Definition at line 21 of file LogConfiguration.h.

◆ DEBUG_WARNING

#define DEBUG_WARNING

Define DEBUG_WARNING global to print all occuring warnings via serial.

Definition at line 22 of file LogConfiguration.h.

◆ DEBUG_STATUS

#define DEBUG_STATUS

Define DEBUG_STATUS global to print all occuring FSM status-updates via serial.

Definition at line 23 of file LogConfiguration.h.

◆ DEBUG_EVENT

#define DEBUG_EVENT

Define DEBUG_EVENT global to print all occuring EVENTS which lead to a statechange via serial.

Definition at line 24 of file LogConfiguration.h.

◆ DEBUG_INFO1

#define DEBUG_INFO1

Define DEBUG_INFO1 global to print all occuring FSM status changes (entering/leaving) via serial.

Definition at line 25 of file LogConfiguration.h.

◆ DEBUG_INFO2

#define DEBUG_INFO2

Define DEBUG_INFO2 global to print all occuring infos inside the FSM via serial.

Definition at line 26 of file LogConfiguration.h.

◆ DEBUG_INFO3

#define DEBUG_INFO3

Define DEBUG_INFO3 global to print all occuring message on hardwarelevel via serial.

Definition at line 27 of file LogConfiguration.h.

◆ DEBUG_FUNCCALL

#define DEBUG_FUNCCALL

Define DEBUG_FUNCCALL global to print all occuring functioncalls via serial.

Definition at line 28 of file LogConfiguration.h.

◆ DBERROR

#define DBERROR (   x)
Value:
Serial.print("ERROR: "); \
Serial.println(x);

Definition at line 32 of file LogConfiguration.h.

◆ DBWARNING

#define DBWARNING (   x)    Serial.print(x)

Definition at line 40 of file LogConfiguration.h.

◆ DBWARNINGln

#define DBWARNINGln (   x)    Serial.println(x)

Definition at line 41 of file LogConfiguration.h.

◆ DBSTATUS

#define DBSTATUS (   x)    Serial.print(x)

Definition at line 48 of file LogConfiguration.h.

◆ DBSTATUSln

#define DBSTATUSln (   x)    Serial.println(x)

Definition at line 49 of file LogConfiguration.h.

◆ DBEVENT

#define DBEVENT (   x)    Serial.print(x)

Definition at line 56 of file LogConfiguration.h.

◆ DBEVENTln

#define DBEVENTln (   x)    Serial.println(x)

Definition at line 57 of file LogConfiguration.h.

◆ DBINFO1

#define DBINFO1 (   x)
Value:
if (Serial) { \
Serial.print(x); \
};

Definition at line 64 of file LogConfiguration.h.

◆ DBINFO1ln

#define DBINFO1ln (   x)
Value:
if (Serial) { \
Serial.println(x); \
};

Definition at line 68 of file LogConfiguration.h.

◆ DBINFO2

#define DBINFO2 (   x)
Value:
if (Serial) { \
Serial.print(x); \
};

Definition at line 78 of file LogConfiguration.h.

◆ DBINFO2ln

#define DBINFO2ln (   x)
Value:
if (Serial) { \
Serial.println(x); \
};

Definition at line 82 of file LogConfiguration.h.

◆ DBINFO3

#define DBINFO3 (   x)
Value:
if (Serial) { \
Serial.print(x); \
};

Definition at line 92 of file LogConfiguration.h.

◆ DBINFO3ln

#define DBINFO3ln (   x)
Value:
if (Serial) { \
Serial.println(x); \
};

Definition at line 96 of file LogConfiguration.h.

◆ DBFUNCCALL

#define DBFUNCCALL (   x)
Value:
if (Serial) { \
Serial.print(x); \
}

Definition at line 106 of file LogConfiguration.h.

◆ DBFUNCCALLln

#define DBFUNCCALLln (   x)
Value:
if (Serial) { \
Serial.println(x); \
}

Definition at line 110 of file LogConfiguration.h.