Struct joycon_sys::spi::SensorCalibration
source · #[repr(packed(1))]pub struct SensorCalibration { /* private fields */ }
Implementations§
source§impl SensorCalibration
impl SensorCalibration
pub fn reset() -> SensorCalibration
pub fn acc_offset(&self) -> Vector3<f64>
pub fn set_acc_offset(&mut self, offset: Vector3<f64>)
pub fn acc_factor(&self) -> Vector3<f64>
pub fn set_acc_factor(&mut self, factor: Vector3<f64>)
pub fn gyro_offset(&self) -> Vector3<f64>
pub fn set_gyro_offset(&mut self, offset: Vector3<f64>)
pub fn gyro_factor(&self) -> Vector3<f64>
pub fn set_gyro_factor(&mut self, factor: Vector3<f64>)
Trait Implementations§
source§impl Clone for SensorCalibration
impl Clone for SensorCalibration
source§fn clone(&self) -> SensorCalibration
fn clone(&self) -> SensorCalibration
Returns a copy 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 SensorCalibration
impl Debug for SensorCalibration
source§impl Default for SensorCalibration
impl Default for SensorCalibration
source§fn default() -> SensorCalibration
fn default() -> SensorCalibration
Returns the “default value” for a type. Read more
source§impl From<SensorCalibration> for UserSensorCalibration
impl From<SensorCalibration> for UserSensorCalibration
source§fn from(calib: SensorCalibration) -> Self
fn from(calib: SensorCalibration) -> Self
Converts to this type from the input type.
source§impl TryFrom<SPIReadResult> for SensorCalibration
impl TryFrom<SPIReadResult> for SensorCalibration
§type Error = WrongRangeError
type Error = WrongRangeError
The type returned in the event of a conversion error.
impl Copy for SensorCalibration
Auto Trait Implementations§
impl Freeze for SensorCalibration
impl RefUnwindSafe for SensorCalibration
impl Send for SensorCalibration
impl Sync for SensorCalibration
impl Unpin for SensorCalibration
impl UnwindSafe for SensorCalibration
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