diff options
Diffstat (limited to 'include/osmosdr/sink.h')
-rw-r--r-- | include/osmosdr/sink.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/include/osmosdr/sink.h b/include/osmosdr/sink.h index f6f304f..a4b52c4 100644 --- a/include/osmosdr/sink.h +++ b/include/osmosdr/sink.h @@ -234,29 +234,23 @@ public: */ virtual std::string get_antenna( size_t chan = 0 ) = 0; - enum IQBalanceMode { - IQBalanceOff = 0, - IQBalanceManual, - IQBalanceAutomatic - }; - /*! - * Set the RX frontend IQ balance mode. + * Set the TX frontend DC offset value. + * The value is complex to control both I and Q. * - * \param mode iq balance correction mode: 0 = Off, 1 = Manual, 2 = Automatic + * \param offset the dc offset (1.0 is full-scale) * \param chan the channel index 0 to N-1 */ - virtual void set_iq_balance_mode( int mode, size_t chan = 0 ) = 0; + virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0; /*! - * Set the RX frontend IQ balance correction. + * Set the TX frontend IQ balance correction. * Use this to adjust the magnitude and phase of I and Q. * - * \param correction the complex correction value + * \param balance the complex correction value * \param chan the channel index 0 to N-1 */ - virtual void set_iq_balance( const std::complex<double> &correction, - size_t chan = 0 ) = 0; + virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0; /*! * Set the bandpass filter on the radio frontend. |