pub struct Imu;Implementations§
Source§impl Imu
impl Imu
pub fn begin(&mut self) -> bool
pub fn begin_for_board(&mut self, board: Board) -> bool
pub fn init(&mut self) -> bool
pub fn init_for_board(&mut self, board: Board) -> bool
pub fn ak8963(&self) -> ImuDevice
pub fn bmm150(&self) -> ImuDevice
pub fn bmi270(&self) -> ImuDevice
pub fn mpu6886(&self) -> ImuDevice
pub fn sh200q(&self) -> ImuDevice
pub fn accel(&self) -> Option<Vec3>
pub fn accel_data(&self) -> Option<Vec3>
pub fn gyro(&self) -> Option<Vec3>
pub fn gyro_data(&self) -> Option<Vec3>
pub fn mag(&self) -> Option<Vec3>
pub fn gyro_mag(&self) -> Option<Vec3>
pub fn temperature_c(&self) -> Option<f32>
pub fn is_enabled(&self) -> bool
pub fn kind(&self) -> ImuKind
pub fn update(&mut self) -> bool
pub fn update_mask(&mut self) -> ImuSensorMask
pub fn data(&self) -> Option<ImuData>
pub fn load_offset_from_nvs(&mut self) -> bool
pub fn save_offset_to_nvs(&mut self) -> bool
pub fn offset_data(&self, index: i32) -> f32
pub fn set_calibration(&mut self, x: f32, y: f32, z: f32)
pub fn sleep(&mut self) -> bool
pub fn set_clock_hz(&mut self, freq: u32)
pub fn set_axis_order( &mut self, axis0: ImuAxis, axis1: ImuAxis, axis2: ImuAxis, ) -> bool
pub fn set_axis_order_right_handed( &mut self, axis0: ImuAxis, axis1: ImuAxis, ) -> bool
pub fn set_axis_order_left_handed( &mut self, axis0: ImuAxis, axis1: ImuAxis, ) -> bool
pub fn set_int_pin_active_logic(&mut self, level: bool) -> bool
pub fn set_calibration_strength(&mut self, accel: u8, gyro: u8, mag: u8)
pub fn clear_offset_data(&mut self)
pub fn set_offset_data(&mut self, index: usize, value: i32)
pub fn offset_data_i32(&self, index: usize) -> i32
pub fn raw_data(&self, index: usize) -> i16
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Imu
impl RefUnwindSafe for Imu
impl Send for Imu
impl Sync for Imu
impl Unpin for Imu
impl UnsafeUnpin for Imu
impl UnwindSafe for Imu
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