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
14 class Port_Com: public QObject
15 {
16 Q_OBJECT
17
18 public:
19 Port_Com();
20 int open_Serial();
21 int close_Serial();
22 bool set_status_RS232();
23
24 private slots:
25 void set_baudRate(BaudRateType baud);
26 void set_portName(QString name);
27
28 private:
29 QextSerialPort *portCom;
30 bool status_RS232_;
31
32 };
33
34 #endif // PORT_COM_H