HF_Antenna

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Enumerations Enumerator
C:/Users/Sarah/Documents/Langage_C++/HF_ANTENNA/Project/port_com.h
Go to the documentation of this file.
1 #ifndef PORT_COM_H
2 #define PORT_COM_H
3
4 #include <QtGui>
5 #include <lib/qextserialport/qextserialport.h>
6 #include <QString>
7
8 enum rs232_e{RS232_NOT_USED, RS232_NOT_OPENED, RS232_OPENED};
9
10 class Port_Com: public QObject
11 {
12 Q_OBJECT
13
14 public:
15 Port_Com();
16 int open_Serial();
17 int close_Serial();
18
19 private slots:
20 void set_baudRate(BaudRateType baud);
21 void set_portName(QString name);
22
23 private:
24 QextSerialPort *portCom;
25
26 };
27
28 #endif // PORT_COM_H