#ifndef SERIAL_PORT_H #define SERIAL_PORT_H #include #include #include #include #include "datatypes.h" using boost::asio::async_read; using boost::asio::dynamic_buffer; class serial_port { public: serial_port(const std::string & device); TransCheck read_frame(); private: void flush(); boost::asio::io_context ioContext; boost::asio::serial_port port{ioContext}; }; #endif // SERIAL_PORT_H