diff options
| author | Yuval Adam <_@yuv.al> | 2021-04-16 17:23:10 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2021-04-17 10:33:57 +0300 |
| commit | 01824ebaa3096d40a962b921ed239241f92e1076 (patch) | |
| tree | 1b3d9f810b5086e52678fbed7f6e96e9e39d4cdf /src/devices/fc0013.rs | |
| parent | 199f7cfb5749a1810db7923780e5a65eb17b8e11 (diff) | |
Implement search_tuner()
Diffstat (limited to 'src/devices/fc0013.rs')
| -rw-r--r-- | src/devices/fc0013.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/devices/fc0013.rs b/src/devices/fc0013.rs index 3a26218..7c64758 100644 --- a/src/devices/fc0013.rs +++ b/src/devices/fc0013.rs @@ -1,12 +1,12 @@ -use super::{Device, DeviceInfo}; +use super::{Tuner, TunerInfo}; #[allow(dead_code)] pub struct FC0013 { - pub device: DeviceInfo, + pub device: TunerInfo, } #[allow(dead_code)] -pub const DEVICE_INFO: DeviceInfo = DeviceInfo { +pub const TUNER_INFO: TunerInfo = TunerInfo { id: "fc0013", name: "Fitipower FC0013", i2c_addr: 0xc6, @@ -17,13 +17,11 @@ pub const DEVICE_INFO: DeviceInfo = DeviceInfo { #[allow(dead_code)] impl FC0013 { pub fn new() -> FC0013 { - FC0013 { - device: DEVICE_INFO, - } + FC0013 { device: TUNER_INFO } } } -impl Device for FC0013 { +impl Tuner for FC0013 { fn init(&self) { println!("Init {}", self.device.name); } |
