summaryrefslogtreecommitdiff
path: root/src/devices/fc0013.rs
blob: 2af58fbe12b1c6d4dadb2c1d43e9f4d1c5047da1 (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
use super::{DeviceInfo, Actions};

pub struct FC0013 {
    device: DeviceInfo
}

pub const DEVICE_INFO: DeviceInfo = DeviceInfo {
    id: "fc0013",
    name: "Fitipower FC0013",
    i2c_addr: 0xc6,
    check_addr: 0x00,
    check_val: 0xa3
};

impl FC0013 {
    fn new() -> FC0013 {
        FC0013 {
            device: DEVICE_INFO
        }
    }
}

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