summaryrefslogtreecommitdiff
path: root/src/devices/mod.rs
blob: 659b131e029f612cb899c32c90faa6151df0d084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use usb::Usb;

pub mod fc0013;
pub mod r820t;

pub struct DeviceInfo {
    pub id: &'static str,
    pub name: &'static str,
    pub i2c_addr: u8,
    pub check_addr: u8,
    pub check_val: u8
}

pub trait Device {
    fn init(&self, &Usb);
}