将框架搭好
This commit is contained in:
34
qtserialport_copy.h
Normal file
34
qtserialport_copy.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef QTSERIALPORT_H
|
||||
#define QTSERIALPORT_H
|
||||
|
||||
#include "serialportbase.h"
|
||||
|
||||
#include <QtSerialPort/QSerialPort>
|
||||
#include <QtSerialPort/QSerialPortInfo>
|
||||
|
||||
|
||||
class QtSerialport :public SerialPortBase
|
||||
{
|
||||
// Q_OBJECT
|
||||
|
||||
public:
|
||||
QtSerialport(double * nonlinearityCoeffs, int numberOfCoeffs);
|
||||
~QtSerialport();
|
||||
|
||||
|
||||
int OpenSerialPort(string portName);
|
||||
int CloseSerialPort();
|
||||
int SetBaudrate(int baudrate);
|
||||
int SendData(const char chrMessage[], const unsigned short usLen);
|
||||
int ReadData();
|
||||
|
||||
protected:
|
||||
private:
|
||||
QSerialPort * m_serial;
|
||||
|
||||
QString m_qPortName;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // QTSERIALPORT_H
|
Reference in New Issue
Block a user