#ifndef FREQUENCYTUNINGSTATUSPULSEDTO_H
#define FREQUENCYTUNINGSTATUSPULSEDTO_H

#include <QObject>
#include "protocol/dto/DeviceFrameBaseDto.h"

/**
 * @brief The FrequencyTuningStatusPulseDto class
 * 频率微调设备工作状态：秒脉冲状态
 */
class FrequencyTuningStatusPulseDto : public DeviceFrameBaseDto
{
    Q_OBJECT
public:
    explicit FrequencyTuningStatusPulseDto(QObject *parent = nullptr);

    QString synchStatus; // <1> 同步状态：1=正常；0=异常
    qlonglong secondDiff; // <2> 秒差，单位1ns，范围-500ms~500ms
    QString refValid; // <3> 参考有效：1=有效；0=无效
    qlonglong phaseShiftAcc; // <4> 移相累计值，单位1ps，范围-500ms~500ms
    qlonglong pulseWidth; // <5> 移脉宽，单位1ns，范围10us~500ms

    QJsonObject toJSON();
};

#endif // FREQUENCYTUNINGSTATUSPULSEDTO_H
