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.