SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Types | Public Member Functions | Public Attributes | List of all members
FCDProSettings Struct Reference

#include <fcdprosettings.h>

Public Types

enum  fcPos_t { FC_POS_INFRA = 0, FC_POS_SUPRA, FC_POS_CENTER }
 

Public Member Functions

 FCDProSettings ()
 
void resetToDefaults ()
 
QByteArray serialize () const
 
bool deserialize (const QByteArray &data)
 

Public Attributes

quint64 m_centerFrequency
 
qint32 m_LOppmTenths
 
qint32 m_lnaGainIndex
 
qint32 m_rfFilterIndex
 
qint32 m_lnaEnhanceIndex
 
qint32 m_bandIndex
 
qint32 m_mixerGainIndex
 
qint32 m_mixerFilterIndex
 
qint32 m_biasCurrentIndex
 
qint32 m_modeIndex
 
qint32 m_gain1Index
 
qint32 m_rcFilterIndex
 
qint32 m_gain2Index
 
qint32 m_gain3Index
 
qint32 m_gain4Index
 
qint32 m_ifFilterIndex
 
qint32 m_gain5Index
 
qint32 m_gain6Index
 
quint32 m_log2Decim
 
fcPos_t m_fcPos
 
bool m_dcBlock
 
bool m_iqCorrection
 
bool m_transverterMode
 
qint64 m_transverterDeltaFrequency
 
QString m_fileRecordName
 
bool m_useReverseAPI
 
QString m_reverseAPIAddress
 
uint16_t m_reverseAPIPort
 
uint16_t m_reverseAPIDeviceIndex
 

Detailed Description

Definition at line 23 of file fcdprosettings.h.

Member Enumeration Documentation

◆ fcPos_t

Enumerator
FC_POS_INFRA 
FC_POS_SUPRA 
FC_POS_CENTER 

Definition at line 24 of file fcdprosettings.h.

Constructor & Destructor Documentation

◆ FCDProSettings()

FCDProSettings::FCDProSettings ( )

Definition at line 22 of file fcdprosettings.cpp.

References resetToDefaults().

23 {
25 }
+ Here is the call graph for this function:

Member Function Documentation

◆ deserialize()

bool FCDProSettings::deserialize ( const QByteArray &  data)

Definition at line 95 of file fcdprosettings.cpp.

References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_bandIndex, m_biasCurrentIndex, m_dcBlock, m_fcPos, m_gain1Index, m_gain2Index, m_gain3Index, m_gain4Index, m_gain5Index, m_gain6Index, m_ifFilterIndex, m_iqCorrection, m_lnaEnhanceIndex, m_lnaGainIndex, m_log2Decim, m_LOppmTenths, m_mixerFilterIndex, m_mixerGainIndex, m_modeIndex, m_rcFilterIndex, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfFilterIndex, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readS64(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().

Referenced by FCDProGui::deserialize(), and FCDProInput::deserialize().

96 {
97  SimpleDeserializer d(data);
98 
99  if (!d.isValid())
100  {
101  resetToDefaults();
102  return false;
103  }
104 
105  if (d.getVersion() == 1)
106  {
107  int intval;
108  uint32_t uintval;
109 
110  d.readBool(1, &m_dcBlock, false);
111  d.readBool(2, &m_iqCorrection, false);
112  d.readS32(3, &m_LOppmTenths, 0);
113  d.readS32(4, &m_lnaGainIndex, 0);
114  d.readS32(5, &m_rfFilterIndex, 0);
115  d.readS32(6, &m_lnaEnhanceIndex, 0);
116  d.readS32(7, &m_bandIndex, 0);
117  d.readS32(8, &m_mixerGainIndex, 0);
118  d.readS32(9, &m_mixerFilterIndex, 0);
119  d.readS32(10, &m_biasCurrentIndex, 0);
120  d.readS32(11, &m_modeIndex, 0);
121  d.readS32(12, &m_gain1Index, 0);
122  d.readS32(13, &m_rcFilterIndex, 0);
123  d.readS32(14, &m_gain2Index, 0);
124  d.readS32(15, &m_gain3Index, 0);
125  d.readS32(16, &m_gain4Index, 0);
126  d.readS32(17, &m_ifFilterIndex, 0);
127  d.readS32(18, &m_gain5Index, 0);
128  d.readS32(19, &m_gain6Index, 0);
129  d.readU32(20, &m_log2Decim, 0);
130  d.readS32(21, &intval, 2);
131  m_fcPos = (fcPos_t) intval;
132  d.readBool(22, &m_transverterMode, false);
133  d.readS64(23, &m_transverterDeltaFrequency, 0);
134  d.readBool(24, &m_useReverseAPI, false);
135  d.readString(25, &m_reverseAPIAddress, "127.0.0.1");
136  d.readU32(26, &uintval, 0);
137 
138  if ((uintval > 1023) && (uintval < 65535)) {
139  m_reverseAPIPort = uintval;
140  } else {
141  m_reverseAPIPort = 8888;
142  }
143 
144  d.readU32(27, &uintval, 0);
145  m_reverseAPIDeviceIndex = uintval > 99 ? 99 : uintval;
146 
147  return true;
148  }
149  else
150  {
151  resetToDefaults();
152  return false;
153  }
154 }
uint16_t m_reverseAPIPort
qint32 m_lnaEnhanceIndex
qint32 m_mixerGainIndex
quint32 m_log2Decim
qint32 m_lnaGainIndex
qint32 m_ifFilterIndex
unsigned int uint32_t
Definition: rtptypes_win.h:46
qint64 m_transverterDeltaFrequency
uint16_t m_reverseAPIDeviceIndex
qint32 m_LOppmTenths
qint32 m_rfFilterIndex
qint32 m_mixerFilterIndex
QString m_reverseAPIAddress
qint32 m_rcFilterIndex
qint32 m_biasCurrentIndex
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetToDefaults()

void FCDProSettings::resetToDefaults ( )

Definition at line 27 of file fcdprosettings.cpp.

References FC_POS_CENTER, m_bandIndex, m_biasCurrentIndex, m_centerFrequency, m_dcBlock, m_fcPos, m_fileRecordName, m_gain1Index, m_gain2Index, m_gain3Index, m_gain4Index, m_gain5Index, m_gain6Index, m_ifFilterIndex, m_iqCorrection, m_lnaEnhanceIndex, m_lnaGainIndex, m_log2Decim, m_LOppmTenths, m_mixerFilterIndex, m_mixerGainIndex, m_modeIndex, m_rcFilterIndex, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfFilterIndex, m_transverterDeltaFrequency, m_transverterMode, and m_useReverseAPI.

Referenced by deserialize(), FCDProInput::deserialize(), FCDProSettings(), and FCDProGui::resetToDefaults().

28 {
29  m_centerFrequency = 435000 * 1000;
30  m_dcBlock = false;
31  m_iqCorrection = false;
32  m_LOppmTenths = 0;
33  m_lnaGainIndex = 0;
34  m_rfFilterIndex = 0;
36  m_bandIndex = 0;
37  m_mixerGainIndex = 0;
40  m_modeIndex = 0;
41  m_gain1Index = 0;
42  m_rcFilterIndex = 0;
43  m_gain2Index = 0;
44  m_gain3Index = 0;
45  m_gain4Index = 0;
46  m_ifFilterIndex = 0;
47  m_gain5Index = 0;
48  m_gain6Index = 0;
49  m_log2Decim = 0;
51  m_transverterMode = false;
53  m_fileRecordName = "";
54  m_useReverseAPI = false;
55  m_reverseAPIAddress = "127.0.0.1";
56  m_reverseAPIPort = 8888;
58 }
uint16_t m_reverseAPIPort
qint32 m_lnaEnhanceIndex
qint32 m_mixerGainIndex
quint32 m_log2Decim
qint32 m_lnaGainIndex
qint32 m_ifFilterIndex
qint64 m_transverterDeltaFrequency
uint16_t m_reverseAPIDeviceIndex
qint32 m_LOppmTenths
qint32 m_rfFilterIndex
qint32 m_mixerFilterIndex
QString m_reverseAPIAddress
QString m_fileRecordName
qint32 m_rcFilterIndex
quint64 m_centerFrequency
qint32 m_biasCurrentIndex
+ Here is the caller graph for this function:

◆ serialize()

QByteArray FCDProSettings::serialize ( ) const

Definition at line 60 of file fcdprosettings.cpp.

References SimpleSerializer::final(), m_bandIndex, m_biasCurrentIndex, m_dcBlock, m_fcPos, m_gain1Index, m_gain2Index, m_gain3Index, m_gain4Index, m_gain5Index, m_gain6Index, m_ifFilterIndex, m_iqCorrection, m_lnaEnhanceIndex, m_lnaGainIndex, m_log2Decim, m_LOppmTenths, m_mixerFilterIndex, m_mixerGainIndex, m_modeIndex, m_rcFilterIndex, m_reverseAPIAddress, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfFilterIndex, m_transverterDeltaFrequency, m_transverterMode, m_useReverseAPI, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeS64(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().

Referenced by FCDProGui::serialize(), and FCDProInput::serialize().

61 {
62  SimpleSerializer s(1);
63 
64  s.writeBool(1, m_dcBlock);
65  s.writeBool(2, m_iqCorrection);
66  s.writeS32(3, m_LOppmTenths);
67  s.writeS32(4, m_lnaGainIndex);
68  s.writeS32(5, m_rfFilterIndex);
69  s.writeS32(6, m_lnaEnhanceIndex);
70  s.writeS32(7, m_bandIndex);
71  s.writeS32(8, m_mixerGainIndex);
72  s.writeS32(9, m_mixerFilterIndex);
73  s.writeS32(10, m_biasCurrentIndex);
74  s.writeS32(11, m_modeIndex);
75  s.writeS32(12, m_gain1Index);
76  s.writeS32(13, m_rcFilterIndex);
77  s.writeS32(14, m_gain2Index);
78  s.writeS32(15, m_gain3Index);
79  s.writeS32(16, m_gain4Index);
80  s.writeS32(17, m_ifFilterIndex);
81  s.writeS32(18, m_gain5Index);
82  s.writeS32(19, m_gain6Index);
83  s.writeU32(20, m_log2Decim);
84  s.writeS32(21, (int) m_fcPos);
85  s.writeBool(22, m_transverterMode);
86  s.writeS64(23, m_transverterDeltaFrequency);
87  s.writeBool(24, m_useReverseAPI);
88  s.writeString(25, m_reverseAPIAddress);
89  s.writeU32(26, m_reverseAPIPort);
90  s.writeU32(27, m_reverseAPIDeviceIndex);
91 
92  return s.final();
93 }
uint16_t m_reverseAPIPort
qint32 m_lnaEnhanceIndex
qint32 m_mixerGainIndex
quint32 m_log2Decim
qint32 m_lnaGainIndex
qint32 m_ifFilterIndex
qint64 m_transverterDeltaFrequency
uint16_t m_reverseAPIDeviceIndex
qint32 m_LOppmTenths
qint32 m_rfFilterIndex
qint32 m_mixerFilterIndex
QString m_reverseAPIAddress
qint32 m_rcFilterIndex
qint32 m_biasCurrentIndex
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bandIndex

qint32 FCDProSettings::m_bandIndex

◆ m_biasCurrentIndex

qint32 FCDProSettings::m_biasCurrentIndex

◆ m_centerFrequency

quint64 FCDProSettings::m_centerFrequency

◆ m_dcBlock

bool FCDProSettings::m_dcBlock

◆ m_fcPos

fcPos_t FCDProSettings::m_fcPos

◆ m_fileRecordName

QString FCDProSettings::m_fileRecordName

◆ m_gain1Index

qint32 FCDProSettings::m_gain1Index

◆ m_gain2Index

qint32 FCDProSettings::m_gain2Index

◆ m_gain3Index

qint32 FCDProSettings::m_gain3Index

◆ m_gain4Index

qint32 FCDProSettings::m_gain4Index

◆ m_gain5Index

qint32 FCDProSettings::m_gain5Index

◆ m_gain6Index

qint32 FCDProSettings::m_gain6Index

◆ m_ifFilterIndex

qint32 FCDProSettings::m_ifFilterIndex

◆ m_iqCorrection

bool FCDProSettings::m_iqCorrection

◆ m_lnaEnhanceIndex

qint32 FCDProSettings::m_lnaEnhanceIndex

◆ m_lnaGainIndex

qint32 FCDProSettings::m_lnaGainIndex

◆ m_log2Decim

quint32 FCDProSettings::m_log2Decim

◆ m_LOppmTenths

qint32 FCDProSettings::m_LOppmTenths

◆ m_mixerFilterIndex

qint32 FCDProSettings::m_mixerFilterIndex

◆ m_mixerGainIndex

qint32 FCDProSettings::m_mixerGainIndex

◆ m_modeIndex

qint32 FCDProSettings::m_modeIndex

◆ m_rcFilterIndex

qint32 FCDProSettings::m_rcFilterIndex

◆ m_reverseAPIAddress

QString FCDProSettings::m_reverseAPIAddress

◆ m_reverseAPIDeviceIndex

uint16_t FCDProSettings::m_reverseAPIDeviceIndex

◆ m_reverseAPIPort

uint16_t FCDProSettings::m_reverseAPIPort

◆ m_rfFilterIndex

qint32 FCDProSettings::m_rfFilterIndex

◆ m_transverterDeltaFrequency

qint64 FCDProSettings::m_transverterDeltaFrequency

◆ m_transverterMode

bool FCDProSettings::m_transverterMode

◆ m_useReverseAPI

bool FCDProSettings::m_useReverseAPI

The documentation for this struct was generated from the following files: