pub struct FrontMsbAccel(/* private fields */);Implementations§
Source§impl FrontMsbAccel
impl FrontMsbAccel
Sourcepub const fn with_x_force_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_x_force_checked(self, value: f32) -> Result<Self, ()>
IMU readings from the board
Units: mg
Bits: 0..16
Sourcepub const fn with_x_force(self, value: f32) -> Self
pub const fn with_x_force(self, value: f32) -> Self
IMU readings from the board
Units: mg
Bits: 0..16
Sourcepub const fn set_x_force(&mut self, value: f32)
pub const fn set_x_force(&mut self, value: f32)
IMU readings from the board
Units: mg
Bits: 0..16
Sourcepub const fn set_x_force_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_x_force_checked(&mut self, value: f32) -> Result<(), ()>
IMU readings from the board
Units: mg
Bits: 0..16
Sourcepub const fn with_y_force_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_y_force_checked(self, value: f32) -> Result<Self, ()>
IMU readings from the board
Units: mg
Bits: 16..32
Sourcepub const fn with_y_force(self, value: f32) -> Self
pub const fn with_y_force(self, value: f32) -> Self
IMU readings from the board
Units: mg
Bits: 16..32
Sourcepub const fn set_y_force(&mut self, value: f32)
pub const fn set_y_force(&mut self, value: f32)
IMU readings from the board
Units: mg
Bits: 16..32
Sourcepub const fn set_y_force_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_y_force_checked(&mut self, value: f32) -> Result<(), ()>
IMU readings from the board
Units: mg
Bits: 16..32
Sourcepub const fn with_z_force_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_z_force_checked(self, value: f32) -> Result<Self, ()>
IMU readings from the board
Units: mg
Bits: 32..48
Sourcepub const fn with_z_force(self, value: f32) -> Self
pub const fn with_z_force(self, value: f32) -> Self
IMU readings from the board
Units: mg
Bits: 32..48
Sourcepub const fn set_z_force(&mut self, value: f32)
pub const fn set_z_force(&mut self, value: f32)
IMU readings from the board
Units: mg
Bits: 32..48
Source§impl FrontMsbAccel
impl FrontMsbAccel
Sourcepub fn try_with_x_force(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_x_force(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_x_force but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_x_force(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_x_force(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_x_force but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_y_force(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_y_force(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_y_force but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_y_force(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_y_force(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_y_force but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_z_force(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_z_force(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_z_force but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_z_force(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_z_force(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_z_force but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for FrontMsbAccel
impl Clone for FrontMsbAccel
Source§fn clone(&self) -> FrontMsbAccel
fn clone(&self) -> FrontMsbAccel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more