Trait lis3dh::Lis3dhCore
source · pub trait Lis3dhCore {
type BusError;
type PinError;
// Required methods
fn write_register(
&mut self,
register: Register,
value: u8
) -> Result<(), Error<Self::BusError, Self::PinError>>;
fn read_register(
&mut self,
register: Register
) -> Result<u8, Error<Self::BusError, Self::PinError>>;
fn read_accel_bytes(
&mut self
) -> Result<[u8; 6], Error<Self::BusError, Self::PinError>>;
}