generated from Template/H563ZI-HAL-CMake-Template
Some checks failed
Build and Upload Artifact / build and upload-artifact (push) Has been cancelled
20 lines
377 B
C++
20 lines
377 B
C++
#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;
|
|
};
|