generated from Template/H563ZI-HAL-CMake-Template
Some checks failed
Build and Upload Artifact / build and upload-artifact (push) Has been cancelled
19 lines
401 B
C++
19 lines
401 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
|
|
#include "../Common/serial_port.hpp"
|
|
|
|
class CanMv {
|
|
public:
|
|
explicit CanMv(UART_HandleTypeDef* uart) : serialPort(std::make_unique<SerialPort>(uart, kLength, kTimeout)) {}
|
|
|
|
~CanMv() = default;
|
|
|
|
private:
|
|
static constexpr uint32_t kLength = 128;
|
|
static constexpr uint32_t kTimeout = 10;
|
|
std::unique_ptr<SerialPort> serialPort;
|
|
};
|