diff options
Diffstat (limited to 'Transceiver52M/device/common/radioDevice.h')
-rw-r--r-- | Transceiver52M/device/common/radioDevice.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/Transceiver52M/device/common/radioDevice.h b/Transceiver52M/device/common/radioDevice.h index e51527d..cfe65da 100644 --- a/Transceiver52M/device/common/radioDevice.h +++ b/Transceiver52M/device/common/radioDevice.h @@ -151,17 +151,8 @@ class RadioDevice { virtual double getRxFreq(size_t chan = 0) = 0; virtual double getSampleRate()=0; - /* Default backward-compatible implementation based on TxGain APIs. New - implementations should be based on getNominalTxPower() once implemented for - the specific backend. */ - virtual double setPowerAttenuation(int atten, size_t chan) { - double rfGain; - rfGain = setTxGain(maxTxGain() - atten, chan); - return maxTxGain() - rfGain; - } - virtual double getPowerAttenuation(size_t chan=0) { - return maxTxGain() - getTxGain(chan); - } + virtual double setPowerAttenuation(int atten, size_t chan) = 0; + virtual double getPowerAttenuation(size_t chan=0) = 0; protected: size_t tx_sps, rx_sps; @@ -171,15 +162,6 @@ class RadioDevice { std::vector<std::string> tx_paths, rx_paths; std::vector<struct device_counters> m_ctr; - /** sets the transmit chan gain, returns the gain setting **/ - virtual double setTxGain(double dB, size_t chan = 0) = 0; - - /** get transmit gain */ - virtual double getTxGain(size_t chan = 0) = 0; - - /** return maximum Tx Gain **/ - virtual double maxTxGain(void) = 0; - RadioDevice(size_t tx_sps, size_t rx_sps, InterfaceType type, size_t chan_num, double offset, const std::vector<std::string>& tx_paths, const std::vector<std::string>& rx_paths): |