pub struct GyroConfig {
pub mode: GyroMode,
pub average: AverageSamples,
pub bandwidth: Bandwidth,
pub range: GyroRange,
pub odr: OutputDataRate,
}Expand description
High-level gyroscope configuration written to GYR_CONF.
Default::default() yields:
- mode:
GyroMode::Normal - average:
AverageSamples::Avg1 - bandwidth:
Bandwidth::OdrOver2 - range:
GyroRange::Dps2000 - odr:
OutputDataRate::Hz50
Fields§
§mode: GyroModeSensor operating mode.
average: AverageSamplesSample averaging depth.
bandwidth: BandwidthLow-pass filter bandwidth.
range: GyroRangeFull-scale range.
odr: OutputDataRateOutput data rate.
Implementations§
Trait Implementations§
Source§impl Clone for GyroConfig
impl Clone for GyroConfig
Source§fn clone(&self) -> GyroConfig
fn clone(&self) -> GyroConfig
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 GyroConfig
impl Debug for GyroConfig
Source§impl Default for GyroConfig
impl Default for GyroConfig
Source§impl Format for GyroConfigwhere
GyroMode: Format,
AverageSamples: Format,
Bandwidth: Format,
GyroRange: Format,
OutputDataRate: Format,
impl Format for GyroConfigwhere
GyroMode: Format,
AverageSamples: Format,
Bandwidth: Format,
GyroRange: Format,
OutputDataRate: Format,
Source§impl PartialEq for GyroConfig
impl PartialEq for GyroConfig
impl Copy for GyroConfig
impl Eq for GyroConfig
impl StructuralPartialEq for GyroConfig
Auto Trait Implementations§
impl Freeze for GyroConfig
impl RefUnwindSafe for GyroConfig
impl Send for GyroConfig
impl Sync for GyroConfig
impl Unpin for GyroConfig
impl UnsafeUnpin for GyroConfig
impl UnwindSafe for GyroConfig
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