diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-05-29 16:39:07 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-08 15:49:36 +0200 |
commit | 0e09e7c98a981b1b6f19cc19e29a60c601a02970 (patch) | |
tree | 504a3f554c09ebed234c3ce86bd4a0ebccee2a8f /Transceiver52M/device/usrp1 | |
parent | 1b3a8881eb8a1d8c90be3895def091677d320894 (diff) |
Transceiver: Implement TRXC cmd NOMTXPOWER
It allows the BTS to retrieve the nominal transmit output power value of
each TRX in order to compute attenuation later on and apply it through
SETPOWER or ADJPOWER TRXC commands.
Change-Id: I1d7efe56e008d8d60e23f9a85aa40809f7f84d9c
Diffstat (limited to 'Transceiver52M/device/usrp1')
-rw-r--r-- | Transceiver52M/device/usrp1/USRPDevice.cpp | 8 | ||||
-rw-r--r-- | Transceiver52M/device/usrp1/USRPDevice.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Transceiver52M/device/usrp1/USRPDevice.cpp b/Transceiver52M/device/usrp1/USRPDevice.cpp index 1a9a7e1..73117d2 100644 --- a/Transceiver52M/device/usrp1/USRPDevice.cpp +++ b/Transceiver52M/device/usrp1/USRPDevice.cpp @@ -314,6 +314,14 @@ double USRPDevice::setRxGain(double dB, size_t chan) return rxGain; } +int USRPDevice::getNominalTxPower(size_t chan) +{ + /* TODO: return value based on some experimentally generated table depending on + * band/arfcn, which is known here thanks to TXTUNE + */ + return 23; +} + bool USRPDevice::setRxAntenna(const std::string &ant, size_t chan) { if (chan >= rx_paths.size()) { diff --git a/Transceiver52M/device/usrp1/USRPDevice.h b/Transceiver52M/device/usrp1/USRPDevice.h index a4a0886..0549192 100644 --- a/Transceiver52M/device/usrp1/USRPDevice.h +++ b/Transceiver52M/device/usrp1/USRPDevice.h @@ -180,6 +180,8 @@ private: /** return minimum Rx Gain **/ double minTxGain(void); + int getNominalTxPower(size_t chan = 0); + /** sets the RX path to use, returns true if successful and false otherwise */ bool setRxAntenna(const std::string &ant, size_t chan = 0); |