pub struct ImuGyro(/* private fields */);Implementations§
Source§impl ImuGyro
impl ImuGyro
Sourcepub const fn imu_gyro_x(&self) -> f32
pub const fn imu_gyro_x(&self) -> f32
IMU Gyroscope Reading
Units: mdps
Bits: 0..16
Sourcepub const fn with_imu_gyro_x_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_imu_gyro_x_checked(self, value: f32) -> Result<Self, ()>
IMU Gyroscope Reading
Units: mdps
Bits: 0..16
Sourcepub const fn with_imu_gyro_x(self, value: f32) -> Self
pub const fn with_imu_gyro_x(self, value: f32) -> Self
IMU Gyroscope Reading
Units: mdps
Bits: 0..16
Sourcepub const fn set_imu_gyro_x(&mut self, value: f32)
pub const fn set_imu_gyro_x(&mut self, value: f32)
IMU Gyroscope Reading
Units: mdps
Bits: 0..16
Sourcepub const fn set_imu_gyro_x_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_imu_gyro_x_checked(&mut self, value: f32) -> Result<(), ()>
IMU Gyroscope Reading
Units: mdps
Bits: 0..16
Sourcepub const fn imu_gyro_y(&self) -> f32
pub const fn imu_gyro_y(&self) -> f32
IMU Gyroscope Reading
Units: mdps
Bits: 16..32
Sourcepub const fn with_imu_gyro_y_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_imu_gyro_y_checked(self, value: f32) -> Result<Self, ()>
IMU Gyroscope Reading
Units: mdps
Bits: 16..32
Sourcepub const fn with_imu_gyro_y(self, value: f32) -> Self
pub const fn with_imu_gyro_y(self, value: f32) -> Self
IMU Gyroscope Reading
Units: mdps
Bits: 16..32
Sourcepub const fn set_imu_gyro_y(&mut self, value: f32)
pub const fn set_imu_gyro_y(&mut self, value: f32)
IMU Gyroscope Reading
Units: mdps
Bits: 16..32
Sourcepub const fn set_imu_gyro_y_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_imu_gyro_y_checked(&mut self, value: f32) -> Result<(), ()>
IMU Gyroscope Reading
Units: mdps
Bits: 16..32
Sourcepub const fn imu_gyro_z(&self) -> f32
pub const fn imu_gyro_z(&self) -> f32
IMU Gyroscope Reading
Units: mdps
Bits: 32..48
Sourcepub const fn with_imu_gyro_z_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_imu_gyro_z_checked(self, value: f32) -> Result<Self, ()>
IMU Gyroscope Reading
Units: mdps
Bits: 32..48
Sourcepub const fn with_imu_gyro_z(self, value: f32) -> Self
pub const fn with_imu_gyro_z(self, value: f32) -> Self
IMU Gyroscope Reading
Units: mdps
Bits: 32..48
Sourcepub const fn set_imu_gyro_z(&mut self, value: f32)
pub const fn set_imu_gyro_z(&mut self, value: f32)
IMU Gyroscope Reading
Units: mdps
Bits: 32..48
Source§impl ImuGyro
impl ImuGyro
Sourcepub fn try_with_imu_gyro_x(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_imu_gyro_x(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_imu_gyro_x but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_imu_gyro_x(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_imu_gyro_x(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_imu_gyro_x but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_imu_gyro_y(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_imu_gyro_y(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_imu_gyro_y but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_imu_gyro_y(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_imu_gyro_y(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_imu_gyro_y but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_imu_gyro_z(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_imu_gyro_z(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_imu_gyro_z but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_imu_gyro_z(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_imu_gyro_z(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_imu_gyro_z but returns
OutOfRange instead of saturating an unrepresentable value.