use super::RtlSdrDeviceHandle; pub mod fc0013; pub mod r820t; pub const KNOWN_TUNERS: [TunerInfo; 2] = [r820t::TUNER_INFO, fc0013::TUNER_INFO]; pub struct TunerInfo { pub id: &'static str, pub name: &'static str, pub i2c_addr: u8, pub check_addr: u8, pub check_val: u8, // pub gains: Vec, } 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_gain(&self, gain: u32); fn set_if_gain(&self, if_gain: u32); fn set_gain_mode(&self, mode: bool); fn display(&self) -> &str; }