Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ErrorHandler by
Logger Class Reference
Logger Error handling class for mbed endpoints. More...
#include <Logger.h>
Public Member Functions | |
| Logger (RawSerial *pc, LCDCLASS *lcd) | |
| Default constructor. | |
| virtual | ~Logger () |
| Default destructor. | |
| void | log (const char *format,...) |
| log message to the serial console and LCD (if enabled) | |
| void | logConsole (const char *format,...) |
| log message to the serial console only | |
| void | turnLEDRed () |
| turn the multi-colored LED red | |
| void | turnLEDGreen () |
| turn the multi-colored LED green | |
| void | turnLEDBlue () |
| turn the multi-colored LED blue | |
| void | turnLEDPurple () |
| turn the multi-colored LED purple | |
| void | turnLEDBlack () |
| turn the multi-colored LED black | |
| void | turnLEDYellow () |
| turn the multi-colored LED yellow | |
| void | turnLEDOrange () |
| turn the multi-colored LED orange | |
| void | blinkTransportTxLED () |
| blink the transmit LED | |
| void | blinkTransportRxLED () |
| blink the receiver LED | |
Detailed Description
Logger Error handling class for mbed endpoints.
Definition at line 52 of file Logger.h.
Constructor & Destructor Documentation
| Logger | ( | RawSerial * | pc, |
| LCDCLASS * | lcd | ||
| ) |
Default constructor.
- Parameters:
-
pc RawSerial instance lcd LCDCLASS instance (or NULL)
Definition at line 71 of file Logger.cpp.
| ~Logger | ( | ) | [virtual] |
Default destructor.
Definition at line 79 of file Logger.cpp.
Member Function Documentation
| void blinkTransportRxLED | ( | ) |
blink the receiver LED
Definition at line 194 of file Logger.cpp.
| void blinkTransportTxLED | ( | ) |
blink the transmit LED
Definition at line 193 of file Logger.cpp.
| void log | ( | const char * | format, |
| ... | |||
| ) |
log message to the serial console and LCD (if enabled)
- Parameters:
-
format variable argument format
Definition at line 83 of file Logger.cpp.
| void logConsole | ( | const char * | format, |
| ... | |||
| ) |
log message to the serial console only
- Parameters:
-
format variable argument format
Definition at line 109 of file Logger.cpp.
| void turnLEDBlack | ( | ) |
turn the multi-colored LED black
Definition at line 190 of file Logger.cpp.
| void turnLEDBlue | ( | ) |
turn the multi-colored LED blue
Definition at line 187 of file Logger.cpp.
| void turnLEDGreen | ( | ) |
turn the multi-colored LED green
Definition at line 186 of file Logger.cpp.
| void turnLEDOrange | ( | ) |
turn the multi-colored LED orange
Definition at line 189 of file Logger.cpp.
| void turnLEDPurple | ( | ) |
turn the multi-colored LED purple
Definition at line 188 of file Logger.cpp.
| void turnLEDRed | ( | ) |
turn the multi-colored LED red
Definition at line 185 of file Logger.cpp.
| void turnLEDYellow | ( | ) |
turn the multi-colored LED yellow
Definition at line 191 of file Logger.cpp.
Generated on Sun Jul 24 2022 09:55:02 by
1.7.2
