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