pub struct FrontMsbGyro(/* private fields */);Implementations§
Source§impl FrontMsbGyro
impl FrontMsbGyro
Sourcepub const fn with_x_deg_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_x_deg_checked(self, value: f32) -> Result<Self, ()>
Gyro readings from the board
Units: mdps
Bits: 0..16
Sourcepub const fn with_x_deg(self, value: f32) -> Self
pub const fn with_x_deg(self, value: f32) -> Self
Gyro readings from the board
Units: mdps
Bits: 0..16
Sourcepub const fn set_x_deg(&mut self, value: f32)
pub const fn set_x_deg(&mut self, value: f32)
Gyro readings from the board
Units: mdps
Bits: 0..16
Sourcepub const fn set_x_deg_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_x_deg_checked(&mut self, value: f32) -> Result<(), ()>
Gyro readings from the board
Units: mdps
Bits: 0..16
Sourcepub const fn with_y_deg_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_y_deg_checked(self, value: f32) -> Result<Self, ()>
Gyro readings from the board
Units: mdps
Bits: 16..32
Sourcepub const fn with_y_deg(self, value: f32) -> Self
pub const fn with_y_deg(self, value: f32) -> Self
Gyro readings from the board
Units: mdps
Bits: 16..32
Sourcepub const fn set_y_deg(&mut self, value: f32)
pub const fn set_y_deg(&mut self, value: f32)
Gyro readings from the board
Units: mdps
Bits: 16..32
Sourcepub const fn set_y_deg_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_y_deg_checked(&mut self, value: f32) -> Result<(), ()>
Gyro readings from the board
Units: mdps
Bits: 16..32
Sourcepub const fn with_z_deg_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_z_deg_checked(self, value: f32) -> Result<Self, ()>
Gyro readings from the board
Units: mdps
Bits: 32..48
Sourcepub const fn with_z_deg(self, value: f32) -> Self
pub const fn with_z_deg(self, value: f32) -> Self
Gyro readings from the board
Units: mdps
Bits: 32..48
Source§impl FrontMsbGyro
impl FrontMsbGyro
Sourcepub fn try_with_x_deg(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_x_deg(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_x_deg but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_x_deg(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_x_deg(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_x_deg but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_y_deg(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_y_deg(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_y_deg but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_y_deg(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_y_deg(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_y_deg but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_z_deg(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_z_deg(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_z_deg but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_z_deg(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_z_deg(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_z_deg but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for FrontMsbGyro
impl Clone for FrontMsbGyro
Source§fn clone(&self) -> FrontMsbGyro
fn clone(&self) -> FrontMsbGyro
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more