|
SBB Micro
Source code for the self-balancing-bike microcontroller unit (Teensy 4.1-based). 🚀️
|
Definitions of debug functions and variables. More...
Go to the source code of this file.
Classes | |
| struct | TxData |
Macros | |
| #define | DODEBUG 1 |
| Enable or disable debugging (1/0). | |
| #define | HEADER 0xFF812345 |
| 4-bytes header of data packet. | |
| #define | TERMINATOR 0xFF8CABDE |
| 4-bytes terminator of data packet. | |
| #define | DEBUG_SAMPLING_FAC 10 |
| Sampling factor of data streaming (expressed in units of SAMPLING_TIME). | |
| #define | MAX_MISSING_READS 50 |
| Maximum consecutive missing readings. | |
Enumerations | |
| enum | serialAction { TX_DATA = 0x01 , TX_TIME = 0x02 , TX_SIGNAMES = 0x03 } |
Functions | |
| void | start_debug (void) |
| Initialize the debug. | |
| void | do_debug (void) |
| Stream and receive signals. | |
Variables | |
| struct TxData | txdata |
| Data to transmit via Serial. | |
| const int | NUMSIGS = 41 |
| Number of signals. | |
| const char | SPLIT_CHAR = '\0' |
| Char to split strings. | |
| String | signames [NUMSIGS] |
| Names of the signals. | |
Definitions of debug functions and variables.
File to defined the debug functions and variables. Function prototypes are in prototypes.h.
| enum serialAction |
| const int NUMSIGS = 41 |
Number of signals.
| String signames[NUMSIGS] |
Names of the signals.
| const char SPLIT_CHAR = '\0' |
Char to split strings.
| struct TxData txdata |
Data to transmit via Serial.