summaryrefslogtreecommitdiff
path: root/src/tuners/mod.rs
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2021-04-28 09:48:55 +0300
committerYuval Adam <_@yuv.al>2021-04-28 09:48:55 +0300
commit25db452b3fb9c83ff8600362467bcde63591d67f (patch)
tree80e35e5ec18c6559917829f810d64b1be0f66070 /src/tuners/mod.rs
parent5979051bd97b61762567fb4710de3dc8a69135c6 (diff)
WIP
Diffstat (limited to 'src/tuners/mod.rs')
-rw-r--r--src/tuners/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tuners/mod.rs b/src/tuners/mod.rs
index ac354b1..7734126 100644
--- a/src/tuners/mod.rs
+++ b/src/tuners/mod.rs
@@ -16,12 +16,12 @@ pub struct TunerInfo {
pub trait Tuner {
fn init(&self, handle: &RtlSdrDeviceHandle);
- fn exit(&self);
- fn set_freq(&self, freq: u32);
- 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 exit(&self, handle: &RtlSdrDeviceHandle);
+ fn set_frequency(&self, freq: u32, handle: &RtlSdrDeviceHandle);
+ fn set_bandwidth(&mut self, rate: u32, handle: &RtlSdrDeviceHandle);
+ fn set_gain(&self, gain: u32, handle: &RtlSdrDeviceHandle);
+ fn set_if_gain(&self, if_gain: u32, handle: &RtlSdrDeviceHandle);
+ fn set_gain_mode(&self, mode: bool, handle: &RtlSdrDeviceHandle);
fn display(&self) -> &str;
}