pub enum SelfTestSelection {
Accelerometer,
Gyroscope,
Both,
}Expand description
Self-test selection written to the BMI323 st_select extended register.
Variants§
Accelerometer
Run accelerometer self-test only.
Gyroscope
Run gyroscope self-test only.
Both
Run both accelerometer and gyroscope self-tests.
Implementations§
Source§impl SelfTestSelection
impl SelfTestSelection
Sourcepub const fn tests_accelerometer(self) -> bool
pub const fn tests_accelerometer(self) -> bool
Returns true if the accelerometer self-test is enabled.
Sourcepub const fn tests_gyroscope(self) -> bool
pub const fn tests_gyroscope(self) -> bool
Returns true if the gyroscope self-test is enabled.
Trait Implementations§
Source§impl Clone for SelfTestSelection
impl Clone for SelfTestSelection
Source§fn clone(&self) -> SelfTestSelection
fn clone(&self) -> SelfTestSelection
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 SelfTestSelection
impl Debug for SelfTestSelection
Source§impl Format for SelfTestSelection
impl Format for SelfTestSelection
Source§impl PartialEq for SelfTestSelection
impl PartialEq for SelfTestSelection
impl Copy for SelfTestSelection
impl Eq for SelfTestSelection
impl StructuralPartialEq for SelfTestSelection
Auto Trait Implementations§
impl Freeze for SelfTestSelection
impl RefUnwindSafe for SelfTestSelection
impl Send for SelfTestSelection
impl Sync for SelfTestSelection
impl Unpin for SelfTestSelection
impl UnsafeUnpin for SelfTestSelection
impl UnwindSafe for SelfTestSelection
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