blob: 028c36b4a9a8dc11d0e6d38f141c09f19f6b0074 (
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, Device};
pub struct FC0013 {
pub device: DeviceInfo
}
pub const DEVICE_INFO: DeviceInfo = DeviceInfo {
id: "fc0013",
name: "Fitipower FC0013",
i2c_addr: 0xc6,
check_addr: 0x00,
check_val: 0xa3
};
impl FC0013 {
pub fn new() -> FC0013 {
FC0013 {
device: DEVICE_INFO
}
}
}
impl Device for FC0013 {
fn init(&self) {
println!("Init {}", self.device.name);
}
}
|