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