SynchroTime
|
This file contains the implementations of the methods of the RTC class. More...
#include "rtc.h"
#include <QDebug>
#include <QThread>
#include <QDateTime>
#include <QElapsedTimer>
#include <QTimer>
#include <QSerialPort>
#include <QtEndian>
#include <cmath>
Macros | |
#define | STARTBYTE 0x40 |
The starting byte of the data set from the communication protocol. More... | |
#define | DEVICE_ID 0x00 |
ID of the RTC device. More... | |
#define | WAIT_REBOOT 2500 |
Interval for a time-out in milliseconds. More... | |
#define | WAIT_TIME 50 |
The waiting time for the reading or written in milliseconds. More... | |
#define | ESC_RED QStringLiteral("\x1b[31m") |
ESCAPE sequence for red. More... | |
#define | ESC_YELLOW QStringLiteral("\x1b[33m") |
ESCAPE sequence for yellow. More... | |
#define | ESC_BLUE QStringLiteral("\x1b[36m") |
ESCAPE sequence for blue. More... | |
#define | ESC_WHITE QStringLiteral("\x1b[37m") |
ESCAPE sequence for white. More... | |
#define | ESC_RESET QStringLiteral("\x1b[0m") |
Reset color. More... | |
This file contains the implementations of the methods of the RTC class.
#define DEVICE_ID 0x00 |
ID of the RTC device.
#define ESC_BLUE QStringLiteral("\x1b[36m") |
ESCAPE sequence for blue.
#define ESC_RED QStringLiteral("\x1b[31m") |
ESCAPE sequence for red.
Referenced by RTC::adjustmentRequest(), RTC::calibrationRequest(), RTC::informationRequest(), RTC::resetRequest(), RTC::setRegisterRequest(), and RTC::statusRequest().
#define ESC_RESET QStringLiteral("\x1b[0m") |
Reset color.
Referenced by RTC::adjustmentRequest(), RTC::calibrationRequest(), RTC::informationRequest(), RTC::resetRequest(), RTC::setRegisterRequest(), and RTC::statusRequest().
#define ESC_WHITE QStringLiteral("\x1b[37m") |
ESCAPE sequence for white.
Referenced by RTC::adjustmentRequest(), RTC::calibrationRequest(), RTC::informationRequest(), RTC::resetRequest(), and RTC::setRegisterRequest().
#define ESC_YELLOW QStringLiteral("\x1b[33m") |
ESCAPE sequence for yellow.
Referenced by RTC::adjustmentRequest(), RTC::calibrationRequest(), RTC::resetRequest(), and RTC::setRegisterRequest().
#define STARTBYTE 0x40 |
The starting byte of the data set from the communication protocol.
Referenced by RTC::adjustmentRequest(), RTC::calibrationRequest(), RTC::informationRequest(), RTC::resetRequest(), RTC::sendRequest(), RTC::setRegisterRequest(), and RTC::statusRequest().
#define WAIT_REBOOT 2500 |
Interval for a time-out in milliseconds.
Referenced by RTC::connectToRTC(), and RTC::openSerialPort().
#define WAIT_TIME 50 |
The waiting time for the reading or written in milliseconds.
Referenced by RTC::sendRequest().