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 availableYDAY-axis new data availableXDAX-axis new data available
This struct splits the fields into more convenient groups:
zyxor->ZYXORxyzor-> (XOR,YOR,ZOR)zyxda->ZYXDAxyzda-> (XDA,YDA,ZDA)
Fields§
§zyxor: boolZYXOR bit
xyzor: (bool, bool, bool)(XOR, YOR, ZOR) bits
zyxda: boolZYXDA bit
xyzda: (bool, bool, bool)(XDA, YDA, ZDA) bits