aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/osmosdr/osmosdr_source_c.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/osmosdr/osmosdr_source_c.h b/include/osmosdr/osmosdr_source_c.h
index dd4505c..8410849 100644
--- a/include/osmosdr/osmosdr_source_c.h
+++ b/include/osmosdr/osmosdr_source_c.h
@@ -263,6 +263,27 @@ public:
*/
virtual void set_iq_balance( const std::complex<double> &correction,
size_t chan = 0 ) = 0;
+
+ /*!
+ * Set the bandpass filter on the radio frontend.
+ * \param bandwidth the filter bandwidth in Hz
+ * \param chan the channel index 0 to N-1
+ * \return the actual filter bandwidth in Hz
+ */
+ virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
+
+ /*!
+ * Get the actual bandpass filter setting on the radio frontend.
+ * \param chan the channel index 0 to N-1
+ * \return the actual filter bandwidth in Hz
+ */
+ virtual double get_bandwidth( size_t chan = 0 ) = 0;
+
+ /*!
+ * Get the possible bandpass filter settings on the radio frontend.
+ * \return a range of bandwidths in Hz
+ */
+ virtual osmosdr::meta_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
};
#endif /* INCLUDED_OSMOSDR_SOURCE_C_H */