diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-04-24 17:48:52 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-04-24 18:46:48 +0200 |
commit | 0fc20d14b31c116b758dbfb9a1988b619270a034 (patch) | |
tree | ff698cfcc48ef527c50ad323e565ecdbcabfbe7f /Transceiver52M/device/uhd | |
parent | a4316ee4c5d2f097823616f1ca3fa82b2f25204c (diff) |
Move device specific code out of radioInterface
This way code of radioInterface is independent of the device and doesn't
need to be rebuild for each device.
Change-Id: Id104e1edef02f863b6465ced5b4241050dc188f9
Diffstat (limited to 'Transceiver52M/device/uhd')
-rw-r--r-- | Transceiver52M/device/uhd/UHDDevice.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Transceiver52M/device/uhd/UHDDevice.cpp b/Transceiver52M/device/uhd/UHDDevice.cpp index 4466da4..ecdebe1 100644 --- a/Transceiver52M/device/uhd/UHDDevice.cpp +++ b/Transceiver52M/device/uhd/UHDDevice.cpp @@ -255,6 +255,8 @@ public: bool setTxAntenna(const std::string &ant, size_t chan); std::string getTxAntenna(size_t chan); + bool requiresRadioAlign(); + inline double getSampleRate() { return tx_rate; } inline double numberRead() { return rx_pkt_cnt; } inline double numberWritten() { return 0; } @@ -1282,6 +1284,11 @@ std::string uhd_device::getTxAntenna(size_t chan) return usrp_dev->get_tx_antenna(chan); } +bool uhd_device::requiresRadioAlign() +{ + return false; +} + /* * Only allow sampling the Rx path lower than Tx and not vice-versa. * Using Tx with 4 SPS and Rx at 1 SPS is the only allowed mixed |