Red Bird Racing VCU v2
 
Loading...
Searching...
No Matches
Debug_serial.cpp
Go to the documentation of this file.
1/**
2 * @file Debug_serial.cpp
3 * @author Planeson, Chiho, Red Bird Racing
4 * @brief Implementation of the Debug_Serial namespace for serial debugging functions
5 * @version 2.0
6 * @date 2026-02-25
7 * @see Debug_serial.hpp
8 */
9
10#include "Debug_serial.hpp"
11#include "Enums.hpp"
12
13/**
14 * @brief Initializes the Debug_Serial interface.
15 * It should be called before using any other Debug_Serial functions.
16 *
17 */
19{
20 Serial.begin(115200);
21}
22
23/**
24 * @brief Prints a string to the serial console.
25 *
26 * @param msg The message to print.
27 * @note Serial exclusive
28 */
29void Debug_Serial::print(const char *msg) { Serial.print(msg); }
30
31/**
32 * @brief Prints a string AND a newline to the serial console.
33 *
34 * @param msg The message to print.
35 * @note Serial exclusive
36 */
37void Debug_Serial::println(const char *msg) { Serial.println(msg); }
38
39
Declaration of the Debug_Serial namespace for serial debugging functions.
Enumeration definitions for the VCU.
void println(const char *msg)
Prints a string AND a newline to the serial console.
void initialize()
Initializes the Debug_Serial interface. It should be called before using any other Debug_Serial funct...
void print(const char *msg)
Prints a string to the serial console.