aboutsummaryrefslogtreecommitdiffstats
path: root/lib/osmosdr_source_c_impl.h
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-04-15 23:36:55 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2013-04-15 23:36:55 +0200
commitafd56f4b5a5c9ac107aaca91364239c0ce61634d (patch)
tree6fea6f0e3c06f9a63c60ac54f443b6f22c96d298 /lib/osmosdr_source_c_impl.h
parent8578eee7ce5d74a14a3089be8ea94ada3d9627f0 (diff)
hackrf: implement BB lowpass filter control
To use the default (automatic) bandwidth filter selection, this should be set to 0.
Diffstat (limited to 'lib/osmosdr_source_c_impl.h')
-rw-r--r--lib/osmosdr_source_c_impl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/osmosdr_source_c_impl.h b/lib/osmosdr_source_c_impl.h
index 92c8d38..6c252d4 100644
--- a/lib/osmosdr_source_c_impl.h
+++ b/lib/osmosdr_source_c_impl.h
@@ -66,6 +66,10 @@ public:
void set_iq_balance_mode( int mode, size_t chan = 0 );
void set_iq_balance( const std::complex<double> &correction, size_t chan = 0 );
+ double set_bandwidth( double bandwidth, size_t chan = 0 );
+ double get_bandwidth( size_t chan = 0 );
+ osmosdr::meta_range_t get_bandwidth_range( size_t chan = 0 );
+
private:
osmosdr_source_c_impl (const std::string & args); // private constructor
@@ -73,19 +77,22 @@ private:
// access the private constructor.
friend osmosdr_source_c_sptr osmosdr_make_source_c (const std::string & args);
+ std::vector< osmosdr_src_iface * > _devs;
+
double _sample_rate;
std::map< size_t, double > _center_freq;
std::map< size_t, double > _freq_corr;
std::map< size_t, bool > _gain_mode;
std::map< size_t, double > _gain;
std::map< size_t, double > _if_gain;
+ std::map< size_t, double > _bb_gain;
std::map< size_t, std::string > _antenna;
- std::vector< osmosdr_src_iface * > _devs;
#ifdef HAVE_IQBALANCE
std::vector< iqbalance_fix_cc * > _iq_fix;
std::vector< iqbalance_optimize_c * > _iq_opt;
std::map< size_t, std::pair<float, float> > _vals;
#endif
+ std::map< size_t, double > _bandwidth;
};
#endif /* INCLUDED_OSMOSDR_SOURCE_C_IMPL_H */