summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2021-04-25 11:07:32 +0300
committerYuval Adam <_@yuv.al>2021-04-25 11:07:32 +0300
commit0fbe61bf1af789b2d3cba19b9a69d3453382032e (patch)
tree4d420b48ac5a206535cc6b078b29cc979b501c7e /src
parent308de1d8bf47c8a73d1cd6fe36e9d5adf2f22d8a (diff)
Add initial Tuners enum
Diffstat (limited to 'src')
-rw-r--r--src/tuners/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tuners/mod.rs b/src/tuners/mod.rs
index 9a7c9ce..ac354b1 100644
--- a/src/tuners/mod.rs
+++ b/src/tuners/mod.rs
@@ -18,9 +18,14 @@ pub trait Tuner {
fn init(&self, handle: &RtlSdrDeviceHandle);
fn exit(&self);
fn set_freq(&self, freq: u32);
- fn set_bandwidth(&self, bw: u16, rate: u32, handle: &RtlSdrDeviceHandle);
+ fn set_bandwidth(&mut self, bw: u32, rate: u32, handle: &RtlSdrDeviceHandle);
fn set_gain(&self, gain: u32);
fn set_if_gain(&self, if_gain: u32);
fn set_gain_mode(&self, mode: bool);
fn display(&self) -> &str;
}
+
+pub enum Tuners {
+ R820T(r820t::R820T),
+ FC0013(fc0013::FC0013),
+}