pub struct SelfTestResult {
pub selection: SelfTestSelection,
pub passed: bool,
pub sample_rate_error: bool,
pub error_status: u8,
pub detail: SelfTestDetail,
}Expand description
Result of a completed BMI323 self-test run.
Fields§
§selection: SelfTestSelectionWhich sensor blocks were included in the self-test run.
passed: boolOverall pass/fail bit reported by FEATURE_IO1.st_result.
sample_rate_error: boolIndicates that the required accelerometer sample rate precondition was not met.
error_status: u8Low-level feature-engine status code from FEATURE_IO1.error_status.
On the BMI323 this field uses non-obvious encodings. In particular,
0x5 is the normal “no error” state after the feature engine is active.
detail: SelfTestDetailPer-axis and gyroscope-drive detailed result bits from st_result.
Implementations§
Source§impl SelfTestResult
impl SelfTestResult
Sourcepub const fn accelerometer_ok(self) -> bool
pub const fn accelerometer_ok(self) -> bool
Returns true if the requested accelerometer self-test portion passed.
Sourcepub const fn gyroscope_ok(self) -> bool
pub const fn gyroscope_ok(self) -> bool
Returns true if the requested gyroscope self-test portion passed.
Trait Implementations§
Source§impl Clone for SelfTestResult
impl Clone for SelfTestResult
Source§fn clone(&self) -> SelfTestResult
fn clone(&self) -> SelfTestResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelfTestResult
impl Debug for SelfTestResult
Source§impl Format for SelfTestResult
impl Format for SelfTestResult
Source§impl PartialEq for SelfTestResult
impl PartialEq for SelfTestResult
impl Copy for SelfTestResult
impl Eq for SelfTestResult
impl StructuralPartialEq for SelfTestResult
Auto Trait Implementations§
impl Freeze for SelfTestResult
impl RefUnwindSafe for SelfTestResult
impl Send for SelfTestResult
impl Sync for SelfTestResult
impl Unpin for SelfTestResult
impl UnsafeUnpin for SelfTestResult
impl UnwindSafe for SelfTestResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more