Go to the documentation of this file.
65 #ifndef XSSTATUSFLAG_H
66 #define XSSTATUSFLAG_H
@ XSF_SyncIn
When set indicates a sync-in event has been triggered.
XsStatus(int status)
Status object constructor.
XsStatus const & operator=(XsStatus const &a)
Assignment operator.
void clear()
Clear status object.
@ XSF_GpsValid
Is set when the device has a GPS receiver and the receiver says that there is a GPS position fix.
@ XSF_NoRotationRunningNormally
If all these flags are set (out of the XSF_NoRotationMask) then the No Rotation algorithm is running ...
@ XSFO_FilterModeNrOfBits
XsStatus const & operator|=(XsStatus const &a)
Binary OR operator.
@ XSF_NoRotationSamplesRejected
If only this flag is set (out of the XSF_NoRotationMask) then the No Rotation algorithm is running bu...
XsStatus const & operator&=(XsStatus const &a)
Binary AND operator.
@ XSF_ClippingDetected
When set Indicates clipping has occurred.
@ XSF_Interpolated
When set Indicates the sample is an interpolation between other samples.
static bool anyGyrClipped(int status)
Return if any gyr channel clipped.
@ XSF_RepresentativeMotion
Indicates if the In-Run Compass Calibration is doing the representative motion analysis.
void set(XsStatus const &a)
Set statusflag of status object.
@ XSF_FilterMode
Mask for the 3 bit filter mode field.
@ XSF_NoRotationAborted
If only this flag is set (out of the XSF_NoRotationMask) then the No Rotation algorithm was aborted b...
@ XSF_SelfTestOk
Is set when the self test result was ok.
void set(uint32_t a)
Set statusflag of status object.
@ XSF_NoRotationMask
If all of these flags are set, the No Rotation algorithm is running.
static bool anyAccClipped(int status)
Return if any acc channel clipped.
@ XSF_ExternalClockSynced
Indicates whether the internal clock is synced with an external clock (Either GNNS or custom provided...
@ XSF_OrientationValid
Is set when the computed orientation is valid. The orientation may be invalid during startup or when ...
@ XSF_RtkStatus
Mask for 2 bit RTK status field 00: No RTK; 01: RTK floating; 10: RTK fixed.
XsStatusFlag get() const
Return statusflag of status object.
static bool anyMagClipped(int status)
Return if any mag channel clipped.
bool anyMagClipped() const
Return if any mag channel clipped.
@ XSFO_OffsetRepresentativeMotion
XsStatus()
Status object constructor, clears all flags.
void set(int a)
Set statusflag of status object.
XsStatusFlagOffset
Status flag bit offsets.
uint32_t m_status
Statusflag.
@ XSF_Retransmitted
When set Indicates the sample was received as a retransmission.
bool anyGyrClipped() const
Return if any gyr channel clipped.
@ XSFO_OffsetExternalClockSynced
@ XSF_SyncOut
When set Indicates a sync-out event has been generated.
XsStatusFlag
Status flags.
bool anyAccClipped() const
Return if any acc channel clipped.
XsStatus(const XsStatus &s)
Status object constructor.
@ XSFO_OffsetOrientationValid
@ XSF_HaveGnssTimePulse
Indicates that the 1PPS GNSS time pulse is present.
@ XSF_FilterInputStart
Marks that the corresponding data is the first data fed to the (onboard) filter.