SEPIA
Software documentation for the APEX SEPIA receivers
tuning.h
Go to the documentation of this file.
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef TUNING_H
3 #define TUNING_H
4 
10 #include <QString>
11 
16 struct Tuning {
17  Tuning();
18 
26  bool lookup(double f, const QString &bandName);
27  void reset();
28  QString toString();
29 
30  double GHz;
31  float maxPower;
32  float PA[2];
33  float V[4];
34  float I[4];
35  int harmonic;
36 };
37 
38 #include <QMetaType>
39 
40 Q_DECLARE_METATYPE(Tuning)
41 
42 #endif
A class representing a LO/mixer tuning.
Definition: tuning.h:16
double GHz
LO frequency in GHz.
Definition: tuning.h:30
float PA[2]
expected PA drain voltage
Definition: tuning.h:32
float maxPower
maximum allowed PA drain voltage
Definition: tuning.h:31
bool lookup(double f, const QString &bandName)
Lookup a tuning from the tuning table (via an SQL database)
Definition: tuning.cpp:15
float I[4]
mixer currents to aim for in tuning
Definition: tuning.h:34
int harmonic
harmonic number to be used in LO tuning
Definition: tuning.h:35
float V[4]
mixer biases to be used at this frequency
Definition: tuning.h:33