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); }