Galaxis Codebase  1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
ECUHandler.hpp File Reference
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <chrono>
#include <thread>
#include <sstream>
#include <functional>
#include <mutex>
#include <boost/crc.hpp>
#include <atomic>
#include <array>
#include "util/Conversions.hpp"
#include "util/Packets.hpp"
#include "com/ICommunication.h"
#include "com/UART.hpp"
Include dependency graph for ECUHandler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ECUHandler
 

Macros

#define xlog(X, Y)
 

Typedefs

using CRCType = boost::crc_32_type
 
typedef std::function< void(const EcuPacket *const, const std::array< std::chrono::duration< double, std::milli >, 10 > &)> PublishMeasurementsCallback
 Callback function that processes an ECU packet. More...
 

Macro Definition Documentation

◆ xlog

#define xlog (   X,
  Y 
)
Value:
do { \
std::cout << "[" << (X) << "]: " << (Y) << std::endl; \
} while(0)

Definition at line 3 of file ECUHandler.hpp.

Typedef Documentation

◆ CRCType

using CRCType = boost::crc_32_type

Definition at line 29 of file ECUHandler.hpp.

◆ PublishMeasurementsCallback

typedef std::function<void(const EcuPacket* const, const std::array<std::chrono::duration<double, std::milli>, 10>&)> PublishMeasurementsCallback

Callback function that processes an ECU packet.

Definition at line 34 of file ECUHandler.hpp.