forked from analogdevicesinc/scopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalibration_api.hpp
42 lines (32 loc) · 1.07 KB
/
calibration_api.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef CALIBRATION_API_HPP
#define CALIBRATION_API_HPP
#include "calibration.hpp"
namespace adiscope {
class Calibration_API: public ApiObject
{
Q_OBJECT
Q_PROPERTY(QList<double> adc_offsets READ get_adc_offsets)
Q_PROPERTY(QList<double> adc_gains READ get_adc_gains)
Q_PROPERTY(QList<double> dac_offsets READ get_dac_offsets)
Q_PROPERTY(QList<double> dac_gains READ get_dac_gains)
public:
explicit Calibration_API(Calibration *calib);
QList<double> get_adc_offsets() const;
QList<double> get_adc_gains() const;
QList<double> get_dac_offsets() const;
QList<double> get_dac_gains() const;
Q_INVOKABLE void setHardwareInCalibMode();
Q_INVOKABLE void restoreHardwareFromCalibMode();
Q_INVOKABLE bool resetCalibration();
Q_INVOKABLE bool calibrateAll();
Q_INVOKABLE bool setGainMode(int, int);
Q_INVOKABLE bool setCalibrationMode(int);
Q_INVOKABLE void dacAOutputDCVolts(int);
Q_INVOKABLE void dacBOutputDCVolts(int);
Q_INVOKABLE void dacOutputStop();
Q_INVOKABLE double devTemp(const QString& devName);
private:
Calibration *calib;
};
}
#endif // CALIBRATION_API_HPP