SynchroTime
Macros
rtc.cpp File Reference

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>
Include dependency graph for rtc.cpp:

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...
 

Detailed Description

This file contains the implementations of the methods of the RTC class.

Macro Definition Documentation

#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")
#define ESC_RESET   QStringLiteral("\x1b[0m")
#define ESC_WHITE   QStringLiteral("\x1b[37m")
#define ESC_YELLOW   QStringLiteral("\x1b[33m")
#define STARTBYTE   0x40
#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().