This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Macros | Functions
Error.hpp File Reference
#include "Debug.hpp"
Include dependency graph for Error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ERROR(x, e)
 
#define FATAL_ERROR(x, e)
 

Functions

void fatalErrorExit () __attribute__((noreturn))
 Function that executes and loops forever, blinking the LED when a fatal error is encountered. More...
 

Macro Definition Documentation

◆ ERROR

#define ERROR (   x,
 
)
Value:
do { \
DEBUGFN(x << " (0x" << hex << uppercase << e << dec << nouppercase \
<< ')'); \
} while (0)

Definition at line 27 of file Error.hpp.

◆ FATAL_ERROR

#define FATAL_ERROR (   x,
 
)
Value:
do { \
DEBUGFN(F("Fatal Error: ") << x << " (0x" << hex << uppercase << e \
<< dec << nouppercase << ')'); \
fatalErrorExit(); \
} while (0)
Examples
2.VU-Meter-OLED-USB-DAC.ino, MCU-OLED-SSD1306-x2.ino, MCU-OLED-SSD1306.ino, and VU-Meter-Bridge.ino.

Definition at line 35 of file Error.hpp.

Function Documentation

◆ fatalErrorExit()

void fatalErrorExit ( )

Function that executes and loops forever, blinking the LED when a fatal error is encountered.

Definition at line 8 of file Exit.cpp.

uppercase
Print & uppercase(Print &printer)
Definition: PrintStream.cpp:35
nouppercase
Print & nouppercase(Print &printer)
Definition: PrintStream.cpp:40
dec
Print & dec(Print &printer)
Definition: PrintStream.cpp:77
hex
Print & hex(Print &printer)
Definition: PrintStream.cpp:62
MIDI_Notes::F
constexpr int8_t F
Definition: Notes.hpp:23