pub struct SelfTestDetail(pub u16);Expand description
Detailed self-test result bits read from the BMI323 st_result extended
register.
Tuple Fields§
§0: u16Implementations§
Source§impl SelfTestDetail
impl SelfTestDetail
Sourcepub const fn acc_sens_x_ok(self) -> bool
pub const fn acc_sens_x_ok(self) -> bool
Returns true if the accelerometer X-axis self-test passed.
Sourcepub const fn acc_sens_y_ok(self) -> bool
pub const fn acc_sens_y_ok(self) -> bool
Returns true if the accelerometer Y-axis self-test passed.
Sourcepub const fn acc_sens_z_ok(self) -> bool
pub const fn acc_sens_z_ok(self) -> bool
Returns true if the accelerometer Z-axis self-test passed.
Sourcepub const fn gyr_sens_x_ok(self) -> bool
pub const fn gyr_sens_x_ok(self) -> bool
Returns true if the gyroscope X-axis self-test passed.
Sourcepub const fn gyr_sens_y_ok(self) -> bool
pub const fn gyr_sens_y_ok(self) -> bool
Returns true if the gyroscope Y-axis self-test passed.
Sourcepub const fn gyr_sens_z_ok(self) -> bool
pub const fn gyr_sens_z_ok(self) -> bool
Returns true if the gyroscope Z-axis self-test passed.
Sourcepub const fn gyr_drive_ok(self) -> bool
pub const fn gyr_drive_ok(self) -> bool
Returns true if the gyroscope drive self-test passed.
Sourcepub const fn accelerometer_ok(self) -> bool
pub const fn accelerometer_ok(self) -> bool
Returns true when all requested accelerometer axes passed.
Sourcepub const fn gyroscope_ok(self) -> bool
pub const fn gyroscope_ok(self) -> bool
Returns true when all requested gyroscope checks passed.
Trait Implementations§
Source§impl Clone for SelfTestDetail
impl Clone for SelfTestDetail
Source§fn clone(&self) -> SelfTestDetail
fn clone(&self) -> SelfTestDetail
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 SelfTestDetail
impl Debug for SelfTestDetail
Source§impl Format for SelfTestDetail
impl Format for SelfTestDetail
Source§impl PartialEq for SelfTestDetail
impl PartialEq for SelfTestDetail
impl Copy for SelfTestDetail
impl Eq for SelfTestDetail
impl StructuralPartialEq for SelfTestDetail
Auto Trait Implementations§
impl Freeze for SelfTestDetail
impl RefUnwindSafe for SelfTestDetail
impl Send for SelfTestDetail
impl Sync for SelfTestDetail
impl Unpin for SelfTestDetail
impl UnsafeUnpin for SelfTestDetail
impl UnwindSafe for SelfTestDetail
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