pub struct LightningBoardImuAccelerationData(/* private fields */);Implementations§
Source§impl LightningBoardImuAccelerationData
impl LightningBoardImuAccelerationData
Sourcepub const fn accel_x(&self) -> f32
pub const fn accel_x(&self) -> f32
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 0..16
Sourcepub const fn with_accel_x_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_accel_x_checked(self, value: f32) -> Result<Self, ()>
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 0..16
Sourcepub const fn with_accel_x(self, value: f32) -> Self
pub const fn with_accel_x(self, value: f32) -> Self
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 0..16
Sourcepub const fn set_accel_x(&mut self, value: f32)
pub const fn set_accel_x(&mut self, value: f32)
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 0..16
Sourcepub const fn set_accel_x_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_accel_x_checked(&mut self, value: f32) -> Result<(), ()>
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 0..16
Sourcepub const fn accel_y(&self) -> f32
pub const fn accel_y(&self) -> f32
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 16..32
Sourcepub const fn with_accel_y_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_accel_y_checked(self, value: f32) -> Result<Self, ()>
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 16..32
Sourcepub const fn with_accel_y(self, value: f32) -> Self
pub const fn with_accel_y(self, value: f32) -> Self
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 16..32
Sourcepub const fn set_accel_y(&mut self, value: f32)
pub const fn set_accel_y(&mut self, value: f32)
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 16..32
Sourcepub const fn set_accel_y_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_accel_y_checked(&mut self, value: f32) -> Result<(), ()>
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 16..32
Sourcepub const fn accel_z(&self) -> f32
pub const fn accel_z(&self) -> f32
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 32..48
Sourcepub const fn with_accel_z_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_accel_z_checked(self, value: f32) -> Result<Self, ()>
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 32..48
Sourcepub const fn with_accel_z(self, value: f32) -> Self
pub const fn with_accel_z(self, value: f32) -> Self
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 32..48
Sourcepub const fn set_accel_z(&mut self, value: f32)
pub const fn set_accel_z(&mut self, value: f32)
Lightning Board IMU Acceleration Data.
The IMU Acceleration Data on the Lightning Board.
Units: mg
Bits: 32..48
Source§impl LightningBoardImuAccelerationData
impl LightningBoardImuAccelerationData
Sourcepub fn try_with_accel_x(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_accel_x(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_accel_x but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_accel_x(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_accel_x(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_accel_x but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_accel_y(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_accel_y(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_accel_y but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_accel_y(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_accel_y(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_accel_y but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_accel_z(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_accel_z(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_accel_z but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_accel_z(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_accel_z(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_accel_z but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for LightningBoardImuAccelerationData
impl Clone for LightningBoardImuAccelerationData
Source§fn clone(&self) -> LightningBoardImuAccelerationData
fn clone(&self) -> LightningBoardImuAccelerationData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more