You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
444 B
C++
25 lines
444 B
C++
#ifndef _SERIALMSGHANDLER_HPP_
|
|
#define _SERIALMSGHANDLER_HPP_
|
|
|
|
#include <string>
|
|
#include <cstdint>
|
|
|
|
#include "MsgHandler.hpp"
|
|
|
|
class SerialMsgHandler : public MsgHandler
|
|
{
|
|
public:
|
|
SerialMsgHandler();
|
|
~SerialMsgHandler();
|
|
|
|
// 打开串口
|
|
bool OpenPort(const std::string& port, const std::string& baudrate);
|
|
|
|
// 设置串口参数
|
|
bool setPortAttributes(int baudrate);
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // _SERIALMSGHANDLER_HPP_
|