gclogger/src/GmcDevice.h

33 lines
426 B
C
Raw Normal View History

2019-05-07 23:14:21 +02:00
//
// Created by h44z on 07.05.19.
//
#ifndef GCLOGGER_GMCDEVICE_H
#define GCLOGGER_GMCDEVICE_H
#include "SerialPort.h"
class GmcDevice {
SerialPort *device;
public:
2019-05-08 18:07:23 +02:00
GmcDevice(const string &serialPort, int baud);
2019-05-07 23:14:21 +02:00
~GmcDevice();
bool close();
2019-05-08 18:07:23 +02:00
2019-05-07 23:14:21 +02:00
bool isConnected();
int getCPM();
2019-05-08 18:07:23 +02:00
2019-05-07 23:14:21 +02:00
float getTemperature();
2019-05-08 18:07:23 +02:00
2019-05-07 23:14:21 +02:00
string getVersion();
2019-05-08 18:07:23 +02:00
2019-05-07 23:14:21 +02:00
bool setHeartbeatOff();
};
#endif //GCLOGGER_GMCDEVICE_H