Struct lis3dh_async::DataStatus
source · pub struct DataStatus {
pub zyxor: bool,
pub xyzor: (bool, bool, bool),
pub zyxda: bool,
pub xyzda: (bool, bool, bool),
}
Expand description
Data status structure. Decoded from the STATUS_REG
register.
STATUS_REG
has the following bit fields:
ZYXOR
- X, Y and Z-axis data overrunZOR
- Z-axis data overrunYOR
- Y-axis data overrunXOR
- X-axis data overrunZYXDA
- X, Y and Z-axis new data availableZDA
- Z-axis new data availableYDA
Y-axis new data availableXDA
X-axis new data available
This struct splits the fields into more convenient groups:
zyxor
->ZYXOR
xyzor
-> (XOR
,YOR
,ZOR
)zyxda
->ZYXDA
xyzda
-> (XDA
,YDA
,ZDA
)
Fields
zyxor: bool
ZYXOR bit
xyzor: (bool, bool, bool)
(XOR, YOR, ZOR) bits
zyxda: bool
ZYXDA bit
xyzda: (bool, bool, bool)
(XDA, YDA, ZDA) bits
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DataStatus
impl Send for DataStatus
impl Sync for DataStatus
impl Unpin for DataStatus
impl UnwindSafe for DataStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more