diff options
Diffstat (limited to 'src/tuners/mod.rs')
| -rw-r--r-- | src/tuners/mod.rs | 12 |
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; } |
