0,0 → 1,25 |
#ifndef QT_SERIAL_COMMUNICATION_H |
#define QT_SERIAL_COMMUNICATION_H |
#include "Communication.h" |
#include "../SerialPort/ManageSerialPort.h" |
|
/** |
* QT specific communication class |
* based on the communication interface |
* using the SerialPort implementation |
* by VIANNEY-LIAUD Philippe |
* ( philippe.vianney.liaud gmail.com ) |
*/ |
|
using namespace std; |
|
class QTSerialCommunication : public Communication { |
private: |
ManageSerialPort * serial; |
public: |
QTSerialCommunication(); |
void connect_MK(string addr); |
bool send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend); |
void stop_resend(); |
}; |
#endif |