[−][src]Struct fk_lis3dsh::LIS3DSH
Implementations
impl<CB, E, PinError> LIS3DSH<CB> where
CB: CommBus<CommError = Error<E, PinError>>,
PinError: Debug,
E: Debug,
[src]
CB: CommBus<CommError = Error<E, PinError>>,
PinError: Debug,
E: Debug,
pub fn new_with_interface<DELAY>(
commbus: CB,
delay: &mut DELAY
) -> Result<LIS3DSH<CB>, Error<E, PinError>> where
DELAY: DelayMs<u8>,
[src]
commbus: CB,
delay: &mut DELAY
) -> Result<LIS3DSH<CB>, Error<E, PinError>> where
DELAY: DelayMs<u8>,
pub fn get_device_id(&mut self) -> Result<u8, Error<E, PinError>>
[src]
WHO_AM_I
register.
pub fn get_status_reg(&mut self, reg: u8) -> Result<u8, Error<E, PinError>>
[src]
pub fn set_datarate(
&mut self,
datarate: DataRate
) -> Result<(), Error<E, PinError>>
[src]
&mut self,
datarate: DataRate
) -> Result<(), Error<E, PinError>>
pub fn get_range(&mut self) -> Result<Range, Error<E, PinError>>
[src]
pub fn has_data(&mut self) -> Result<bool, Error<E, PinError>>
[src]
Trait Implementations
impl<CB, E, PinError> Accelerometer for LIS3DSH<CB> where
CB: CommBus<CommError = Error<E, PinError>>,
PinError: Debug,
E: Debug,
[src]
CB: CommBus<CommError = Error<E, PinError>>,
PinError: Debug,
E: Debug,
type Error = Error<E, PinError>
Error type
fn accel_norm(&mut self) -> Result<F32x3, AccelerometerError<Self::Error>>
[src]
fn sample_rate(&mut self) -> Result<f32, AccelerometerError<Self::Error>>
[src]
Get the sample rate of the accelerometer data.
impl<CB, E, PinError> RawAccelerometer<I16x3> for LIS3DSH<CB> where
CB: CommBus<CommError = Error<E, PinError>>,
PinError: Debug,
E: Debug,
[src]
CB: CommBus<CommError = Error<E, PinError>>,
PinError: Debug,
E: Debug,
Auto Trait Implementations
impl<CB> Send for LIS3DSH<CB> where
CB: Send,
CB: Send,
impl<CB> Sync for LIS3DSH<CB> where
CB: Sync,
CB: Sync,
impl<CB> Unpin for LIS3DSH<CB> where
CB: Unpin,
CB: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,