pub struct AltConfigControl {
pub accel_enabled: bool,
pub gyro_enabled: bool,
pub reset_on_user_config_write: bool,
pub switch_to_alternate: AltConfigSwitchSource,
pub switch_to_user: AltConfigSwitchSource,
}Expand description
Automatic switching policy between user and alternate accel/gyro configurations.
Fields§
§accel_enabled: boolWhether the accelerometer may switch to its alternate configuration.
gyro_enabled: boolWhether the gyroscope may switch to its alternate configuration.
reset_on_user_config_write: boolIf enabled, any later write to ACC_CONF or GYR_CONF immediately
returns the affected sensor to its user configuration.
switch_to_alternate: AltConfigSwitchSourceFeature-engine source that switches sensors into the alternate configuration.
switch_to_user: AltConfigSwitchSourceFeature-engine source that switches sensors back to the user configuration.
Trait Implementations§
Source§impl Clone for AltConfigControl
impl Clone for AltConfigControl
Source§fn clone(&self) -> AltConfigControl
fn clone(&self) -> AltConfigControl
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 AltConfigControl
impl Debug for AltConfigControl
Source§impl Format for AltConfigControlwhere
AltConfigSwitchSource: Format,
impl Format for AltConfigControlwhere
AltConfigSwitchSource: Format,
Source§impl PartialEq for AltConfigControl
impl PartialEq for AltConfigControl
impl Copy for AltConfigControl
impl Eq for AltConfigControl
impl StructuralPartialEq for AltConfigControl
Auto Trait Implementations§
impl Freeze for AltConfigControl
impl RefUnwindSafe for AltConfigControl
impl Send for AltConfigControl
impl Sync for AltConfigControl
impl Unpin for AltConfigControl
impl UnsafeUnpin for AltConfigControl
impl UnwindSafe for AltConfigControl
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