diff options
Diffstat (limited to 'OutputUHD.cpp')
-rw-r--r-- | OutputUHD.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OutputUHD.cpp b/OutputUHD.cpp index 9536ebd..255f63f 100644 --- a/OutputUHD.cpp +++ b/OutputUHD.cpp @@ -136,3 +136,21 @@ ssize_t OutputUHD::Receive(complexf *samples, size_t sizeIn, double *first_sampl return num_rx_samps; } +void OutputUHD::SetTxGain(double gain) +{ + m_txgain = gain; + + MDEBUG("OutputUHD:Setting TX Gain: %f ...\n", m_txgain); + m_usrp->set_tx_gain(m_txgain); + MDEBUG("OutputUHD:Actual TX Gain: %f ...\n", m_usrp->get_tx_gain()); +} + +void OutputUHD::SetRxGain(double gain) +{ + m_rxgain = gain; + + MDEBUG("OutputUHD:Setting RX Gain: %f ...\n", m_rxgain); + m_usrp->set_rx_gain(m_rxgain); + MDEBUG("OutputUHD:Actual RX Gain: %f ...\n", m_usrp->get_rx_gain()); +} + |