70 class RTC :
public QObject
75 explicit RTC(
const QString &portName, QObject *parent = 0 );
76 explicit RTC(
const Settings_t &portSettings, QObject *parent = 0 );
80 bool isConnected()
const;
85 void getRate(
const float rate );
86 void getData(
const QString &data );
87 void portError(
const QString &error );
91 void informationRequestSlot();
93 void adjustmentRequestSlot();
95 void calibrationRequestSlot();
97 void resetRequestSlot();
99 void setRegisterRequestSlot(
const float newValue );
101 void statusRequestSlot();
104 void handleError( QSerialPort::SerialPortError error );
108 bool openSerialPort()
const;
112 const QByteArray sendRequest(
Request request, quint8 size = 0,
const quint8 *
const data =
nullptr );
114 void informationRequest();
116 void adjustmentRequest();
118 void calibrationRequest();
122 void setRegisterRequest(
const float newValue );
124 bool statusRequest();
Processing the data failed.
bool m_isBusy
Definition: rtc.h:128
Received parameter(s) are invalid.
QSerialPort * m_pSerialPort
Definition: rtc.h:126
Data processing has been successful.
The Settings class.
Definition: serialportsettings.h:43
No confirmation of connection received.
float m_correctionFactor
Definition: rtc.h:130
QTimer * m_pTimerCheckConnection
Definition: rtc.h:129
The state of the device is undefined.
bool m_isConnected
Definition: rtc.h:127
StatusMessages
Definition: rtc.h:48
Request
Definition: rtc.h:33
The RTC class.
Definition: rtc.h:70