summaryrefslogtreecommitdiff
path: root/src/devices/fc0013.rs
blob: 8404b908c5c4643fbfa5090a950e031df5233b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use super::{DeviceInfo, Device};

#[allow(dead_code)]
pub struct FC0013 {
    pub device: DeviceInfo
}

#[allow(dead_code)]
pub const DEVICE_INFO: DeviceInfo = DeviceInfo {
    id: "fc0013",
    name: "Fitipower FC0013",
    i2c_addr: 0xc6,
    check_addr: 0x00,
    check_val: 0xa3
};

#[allow(dead_code)]
impl FC0013 {
    pub fn new() -> FC0013 {
        FC0013 {
            device: DEVICE_INFO
        }
    }
}

impl Device for FC0013 {
    fn init(&self) {
        println!("Init {}", self.device.name);
    }

    fn exit(&self){
        unimplemented!()
    }

    fn set_freq(&self, _freq: u32){
        unimplemented!()
    }

    fn set_bw(&self, _bw: u32){
        unimplemented!()
    }

    fn set_gain(&self, _gain: u32){
        unimplemented!()
    }

    fn set_if_gain(&self, _if_gain: u32){
        unimplemented!()
    }

    fn set_gain_mode(&self, _mode: bool){
        unimplemented!()
    }
}