summaryrefslogtreecommitdiff
path: root/src/devices/r820t.rs
blob: fec572cdc54a932fff9ee5369a305d975fd00295 (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 R820T {
    pub device: DeviceInfo
}

pub const DEVICE_INFO: DeviceInfo = DeviceInfo {
    id: "r820t",
    name: "Rafael Micro R820T",
    i2c_addr: 0x34,
    check_addr: 0x00,
    check_val: 0x69
};

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

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