Subversion Repositories Projects

Rev

Rev 440 | Rev 450 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
449 Brean 1
#ifndef QT_SERIAL_COMMUNICATION_H
2
#define QT_SERIAL_COMMUNICATION_H
3
#include "Communication.h"
4
#include "../SerialPort/ManageSerialPort.h"
392 Brean 5
 
6
/**
7
 * QT specific communication class
8
 * based on the communication interface
9
 * using the SerialPort implementation
10
 * by VIANNEY-LIAUD Philippe
11
 * ( philippe.vianney.liaud gmail.com )
12
 */
13
 
396 Brean 14
using namespace std;
15
 
449 Brean 16
class QTSerialCommunication : public Communication {
17
    private:
18
        ManageSerialPort * serial;
392 Brean 19
    public:
449 Brean 20
        QTSerialCommunication();
397 Brean 21
        void connect_MK(string addr);
22
        bool send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend);
23
        void stop_resend();
392 Brean 24
};
25
#endif