20 lines
388 B
Plaintext
20 lines
388 B
Plaintext
#ifndef SERIAL_H
|
|
#define SERIAL_H
|
|
#include <QtGui>
|
|
#include "mycom.h"
|
|
class serial : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
serial(QWidget *parent = 0);
|
|
~serial();
|
|
void init_serial( int baudrate, int portNumber,int stopbit );
|
|
|
|
public slots:
|
|
void open_serial();
|
|
void close_serial();
|
|
void read_serial();
|
|
void send_serial(char *buf,int len);
|
|
};
|
|
#endif // SERIAL_H
|