SynchroTime
Classes | Enumerations
rtc.h File Reference
#include <QObject>
#include "serialportsettings.h"
Include dependency graph for rtc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RTC
 The RTC class. More...
 

Enumerations

enum  Request : quint8 {
  Request::INFO = 'i', Request::ADJUST = 'a', Request::CALIBR = 'c', Request::RESET = 'r',
  Request::SETREG = 's', Request::STATUS = 't'
}
 
enum  StatusMessages : quint8 {
  StatusMessages::STATUS_SUCCESS = 0x00, StatusMessages::STATUS_ERROR = 0x01, StatusMessages::STATUS_INVALID_PARAMETER = 0x02, StatusMessages::STATUS_INPUT_DATA_TOLONG = 0x03,
  StatusMessages::STATUS_NOT_SUPPORTED = 0x04, StatusMessages::STATUS_UNKNOWN_ERROR = 0x05, StatusMessages::STATUS_DISCONNECTION = 0x06
}
 

Enumeration Type Documentation

enum Request : quint8
strong

Requests to be sent to the RTC device. Sent as the second byte in the protocol.

Enumerator
INFO 

Information request.

ADJUST 

Adjustment request.

CALIBR 

Calibration request.

RESET 

Reset request.

SETREG 

Set register request.

STATUS 

Status request.

enum StatusMessages : quint8
strong

Contains all possible error codes in response to a status request.

Enumerator
STATUS_SUCCESS 

Data processing has been successful.

STATUS_ERROR 

Processing the data failed.

STATUS_INVALID_PARAMETER 

Received parameter(s) are invalid.

STATUS_INPUT_DATA_TOLONG 

Input data too long.

STATUS_NOT_SUPPORTED 

The state of the device is undefined.

STATUS_UNKNOWN_ERROR 

Unexpected error.

STATUS_DISCONNECTION 

No confirmation of connection received.