pub struct Bmi08xSensor {
pub dev_a: SpiDevice<'static, CriticalSectionRawMutex, Spi<'static, Async, Master>, Output<'static>>,
pub dev_g: SpiDevice<'static, CriticalSectionRawMutex, Spi<'static, Async, Master>, Output<'static>>,
pub sample_rate: SampleRate,
pub drdy_a: ExtiInput<'static, Async>,
pub drdy_g: ExtiInput<'static, Async>,
pub jumper: Output<'static>,
pub range_a: AccelRange,
pub range_g: GyroRange,
}Fields§
§dev_a: SpiDevice<'static, CriticalSectionRawMutex, Spi<'static, Async, Master>, Output<'static>>§dev_g: SpiDevice<'static, CriticalSectionRawMutex, Spi<'static, Async, Master>, Output<'static>>§sample_rate: SampleRate§drdy_a: ExtiInput<'static, Async>§drdy_g: ExtiInput<'static, Async>§jumper: Output<'static>§range_a: AccelRange§range_g: GyroRangeImplementations§
Source§impl Bmi08xSensor
impl Bmi08xSensor
Auto Trait Implementations§
impl Freeze for Bmi08xSensor
impl !RefUnwindSafe for Bmi08xSensor
impl Send for Bmi08xSensor
impl Sync for Bmi08xSensor
impl Unpin for Bmi08xSensor
impl UnsafeUnpin for Bmi08xSensor
impl !UnwindSafe for Bmi08xSensor
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.