Debugging macros and functions for serial and CAN output. More...
Go to the source code of this file.
Macros | |
| #define | DEBUG 0 |
| #define | DEBUG_SERIAL (1 && DEBUG) |
| #define | DEBUG_CAN (1 && DEBUG) |
| #define | DEBUG_GENERAL 1 |
Functions | |
| void | DBG_GENERAL (const char *x) |
| Prints a general debug message to the serial console. | |
| void | DBGLN_GENERAL (const char *x) |
| Prints a line to the serial console for general debug. | |
| void | DBG_GENERAL_CAN (canid_t id, uint8_t data0=0x00, uint8_t data1=0x00, uint8_t data2=0x00, uint8_t data3=0x00, uint8_t data4=0x00, uint8_t data5=0x00, uint8_t data6=0x00, uint8_t data7=0x00) |
| Sends arbitrary debug data via CAN with specified message ID and data bytes. | |
Debugging macros and functions for serial and CAN output.
Definition in file Debug.hpp.
|
inline |
Prints a general debug message to the serial console.
| x | The message to print. |
Definition at line 44 of file Debug.hpp.
References Debug_Serial::print().
|
inline |
Sends arbitrary debug data via CAN with specified message ID and data bytes.
| id | CAN message ID |
| data0 | Byte 0 of CAN data (default 0x00) |
| data1 | Byte 1 of CAN data (default 0x00) |
| data2 | Byte 2 of CAN data (default 0x00) |
| data3 | Byte 3 of CAN data (default 0x00) |
| data4 | Byte 4 of CAN data (default 0x00) |
| data5 | Byte 5 of CAN data (default 0x00) |
| data6 | Byte 6 of CAN data (default 0x00) |
| data7 | Byte 7 of CAN data (default 0x00) |
Definition at line 78 of file Debug.hpp.
References Debug_CAN::send_message().
|
inline |
Prints a line to the serial console for general debug.
| x | The message to print. |
Definition at line 56 of file Debug.hpp.
References Debug_Serial::println().
Referenced by BMS::checkHv(), and setup().