Enum lis3dh_async::FifoMode
source · pub enum FifoMode {
ByPass,
Fifo,
Stream,
StreamToFifoInt1,
StreamToFifoInt2,
}
Expand description
FIFO behavior. See the spec for full details.
Variants§
ByPass
The FIFO is not operational
Fifo
In FIFO mode, the buffer continues filling data from the X, Y and Z accelerometer channels until it is full (a set of 32 samples stored). When the FIFO is full, it stops collecting data from the input channels and the FIFO content remains unchanged.
Stream
In Stream mode the FIFO continues filling data from the X, Y, and Z accelerometer channels until the buffer is full (a set of 32 samples stored) at which point the FIFO buffer index restarts from the beginning and older data is replaced by the current data. The oldest values continue to be overwritten until a read operation frees the FIFO slots
StreamToFifoInt1
In Stream-to-FIFO mode, data from the X, Y and Z accelerometer channels are collected in a combination of Stream mode and FIFO mode. The FIFO buffer starts operating in Stream mode and switches to FIFO mode when interrupt 1 occurs.
StreamToFifoInt2
In Stream-to-FIFO mode, data from the X, Y and Z accelerometer channels are collected in a combination of Stream mode and FIFO mode. The FIFO buffer starts operating in Stream mode and switches to FIFO mode when interrupt 2 occurs.
Implementations§
Trait Implementations§
source§impl PartialEq for FifoMode
impl PartialEq for FifoMode
impl Copy for FifoMode
impl Eq for FifoMode
impl StructuralPartialEq for FifoMode
Auto Trait Implementations§
impl Freeze for FifoMode
impl RefUnwindSafe for FifoMode
impl Send for FifoMode
impl Sync for FifoMode
impl Unpin for FifoMode
impl UnwindSafe for FifoMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)