pub struct MT6701Spi<SPI, CS> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<SPI, CS> AngleSensorTrait for MT6701Spi<SPI, CS>
impl<SPI, CS> AngleSensorTrait for MT6701Spi<SPI, CS>
type Error = MT6701Error
fn init(&mut self) -> Result<(), MT6701Error>
fn read_raw_angle(&mut self) -> Result<u16, MT6701Error>
fn update(&mut self, ts_ns: u64) -> Result<(), MT6701Error>
fn get_angle(&mut self) -> f32
fn get_turns(&mut self) -> i64
fn get_position(&mut self) -> f64
fn get_velocity(&mut self) -> f32
Auto Trait Implementations§
impl<SPI, CS> Freeze for MT6701Spi<SPI, CS>
impl<SPI, CS> RefUnwindSafe for MT6701Spi<SPI, CS>where
SPI: RefUnwindSafe,
CS: RefUnwindSafe,
impl<SPI, CS> Send for MT6701Spi<SPI, CS>
impl<SPI, CS> Sync for MT6701Spi<SPI, CS>
impl<SPI, CS> Unpin for MT6701Spi<SPI, CS>
impl<SPI, CS> UnwindSafe for MT6701Spi<SPI, CS>where
SPI: UnwindSafe,
CS: UnwindSafe,
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