pub mod i2c;
pub mod spi;
pub use self::i2c::I2cInterface;
pub use self::spi::SpiInterface;
pub trait SensorInterface {
type InterfaceError;
fn register_read(&mut self, reg: u8) -> Result<u8, Self::InterfaceError>;
fn register_write(&mut self, reg: u8, val: u8) -> Result<(), Self::InterfaceError>;
fn read_vec3_i16(&mut self, reg: u8) -> Result<[i16; 3], Self::InterfaceError>;
fn using_spi(&self) -> bool;
}