Struct lis2dw12::Lis2dw12 [−][src]
pub struct Lis2dw12<SPI, CS> { /* fields omitted */ }
Implementations
impl<SPI, SpiError, CS, PinError> Lis2dw12<SPI, CS> where
SPI: Transfer<u8, Error = SpiError>,
CS: OutputPin<Error = PinError>,
[src]
impl<SPI, SpiError, CS, PinError> Lis2dw12<SPI, CS> where
SPI: Transfer<u8, Error = SpiError>,
CS: OutputPin<Error = PinError>,
[src]pub fn new(spi: SPI, cs: CS) -> Self
[src]
pub fn destroy(self) -> (SPI, CS)
[src]
pub fn check_who_am_i(&mut self) -> Result<(), Error<SpiError, PinError>>
[src]
pub fn set_low_power_mode(
&mut self,
low_power_mode: LowPowerMode
) -> Result<(), Error<SpiError, PinError>>
[src]
&mut self,
low_power_mode: LowPowerMode
) -> Result<(), Error<SpiError, PinError>>
pub fn set_operating_mode(
&mut self,
mode: OperatingMode
) -> Result<(), Error<SpiError, PinError>>
[src]
&mut self,
mode: OperatingMode
) -> Result<(), Error<SpiError, PinError>>
pub fn set_low_noise(
&mut self,
is_enabled: bool
) -> Result<(), Error<SpiError, PinError>>
[src]
&mut self,
is_enabled: bool
) -> Result<(), Error<SpiError, PinError>>
pub fn set_full_scale_selection(
&mut self,
full_scale_selection: FullScaleSelection
) -> Result<(), Error<SpiError, PinError>>
[src]
&mut self,
full_scale_selection: FullScaleSelection
) -> Result<(), Error<SpiError, PinError>>
pub fn set_output_data_rate(
&mut self,
odr: OutputDataRate
) -> Result<(), Error<SpiError, PinError>>
[src]
&mut self,
odr: OutputDataRate
) -> Result<(), Error<SpiError, PinError>>
pub fn get_device_id(&mut self) -> Result<u8, Error<SpiError, PinError>>
[src]
pub fn get_raw(&mut self) -> Result<I16x3, Error<SpiError, PinError>>
[src]
Trait Implementations
Auto Trait Implementations
impl<SPI, CS> Send for Lis2dw12<SPI, CS> where
CS: Send,
SPI: Send,
CS: Send,
SPI: Send,
impl<SPI, CS> Sync for Lis2dw12<SPI, CS> where
CS: Sync,
SPI: Sync,
CS: Sync,
SPI: Sync,
impl<SPI, CS> Unpin for Lis2dw12<SPI, CS> where
CS: Unpin,
SPI: Unpin,
CS: Unpin,
SPI: Unpin,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self