summaryrefslogtreecommitdiff
path: root/src/devices/fc0013.rs
blob: d2f6062b4f40b584c2d9c8a88b99ed958f5834d3 (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
use super::{DeviceInfo, Device};
use usb::Usb;

#[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, _usb: &Usb) {
        println!("Init {}", self.device.name);
    }
}