diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-08 13:44:24 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-09 11:43:32 +0200 |
commit | 992c9bd1cea410e2dd42ce7566299104b5648aff (patch) | |
tree | ef33a25592717d7215d7681dce7a41770f1dc89f /Transceiver52M/radioInterface.h | |
parent | 056ce136e65a3706a0de94aab2e78be664a5236f (diff) |
radioInterface: Operate on real Tx power attenuation rather than on device specific gains
All the Tx gain related APIs are left out of reach from radioInterface,
and in there we simply interact with radioDevice passing the attenuation
received from TRXC.
Prior gain logic is moved in base radiodevice class, with the idea that
the setTxGain() and related functions will be dropped over time in each
sublcass in favour of an specific implementation of the
SetPowerAttenuation API.
Change-Id: I4f8a1bcbed74aa9310306b97b0b1bfb02f7855e6
Diffstat (limited to 'Transceiver52M/radioInterface.h')
-rw-r--r-- | Transceiver52M/radioInterface.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Transceiver52M/radioInterface.h b/Transceiver52M/radioInterface.h index eb7ed3b..8e5f4c1 100644 --- a/Transceiver52M/radioInterface.h +++ b/Transceiver52M/radioInterface.h @@ -116,7 +116,8 @@ public: /** drive reception of GSM bursts. -1: Error. 0: Radio off. 1: Received something. */ int driveReceiveRadio(); - int setPowerAttenuation(int atten, size_t chan = 0); + /** set transmit power attenuation */ + virtual int setPowerAttenuation(int atten, size_t chan = 0); int getNominalTxPower(size_t chan = 0); /** returns the full-scale transmit amplitude **/ @@ -135,9 +136,6 @@ protected: /** drive synchronization of Tx/Rx of USRP */ void alignRadio(); - /** set transmit gain */ - virtual double setTxGain(double dB, size_t chan = 0); - friend void *AlignRadioServiceLoopAdapter(RadioInterface*); }; @@ -167,7 +165,7 @@ private: bool pushBuffer(); int pullBuffer(); bool verify_arfcn_consistency(double freq, size_t chan, bool tx); - virtual double setTxGain(double dB, size_t chan); + virtual int setPowerAttenuation(int atten, size_t chan = 0); signalVector *outerSendBuffer; signalVector *outerRecvBuffer; |