#pragma once

#include <cstdint>

#include "../Common/serial_port.hpp"

class CanMv {
public:
    explicit CanMv(UART_HandleTypeDef* uart) : serialPort(new SerialPort(uart, kLength, kTimeout)) {}

    ~CanMv() {
        delete serialPort;
    }

private:
    static constexpr uint32_t kLength  = 128;
    static constexpr uint32_t kTimeout = 10;
    SerialPort* serialPort;
};
