pub struct Interpolator<'d, T: Instance> { /* private fields */ }Expand description
Interpolator Driver
Implementations§
Source§impl<'d, T: Instance> Interpolator<'d, T>
impl<'d, T: Instance> Interpolator<'d, T>
Sourcepub fn new(_peri: Peri<'d, T>) -> Self
pub fn new(_peri: Peri<'d, T>) -> Self
Create a new interpolator instance from the peripheral type.
Sourcepub fn pop(&mut self) -> u32
pub fn pop(&mut self) -> u32
Read the interpolator result (Result 2 in the datasheet), and simultaneously write lane results to both accumulators.
Sourcepub fn peek(&self) -> u32
pub fn peek(&self) -> u32
Read the interpolator result (Result 2 in the datasheet) without altering any internal state
Sourcepub fn set_base(&mut self, v: u32)
pub fn set_base(&mut self, v: u32)
Write to the interpolator Base register (Base2 in the datasheet)
Sourcepub fn set_base_1and0(&mut self, v: u32)
pub fn set_base_1and0(&mut self, v: u32)
Write the lower 16 bits to BASE0 and the upper bits to BASE1 simultaneously. Each half is sign-extended to 32 bits if that lane’s SIGNED flag is set
Sourcepub fn lane0(&mut self) -> InterpolatorLane0<'_, T>
pub fn lane0(&mut self) -> InterpolatorLane0<'_, T>
Access Lane 0
Sourcepub fn lane1(&mut self) -> InterpolatorLane1<'_, T>
pub fn lane1(&mut self) -> InterpolatorLane1<'_, T>
Access Lane 1
Auto Trait Implementations§
impl<'d, T> !UnwindSafe for Interpolator<'d, T>
impl<'d, T> Freeze for Interpolator<'d, T>
impl<'d, T> RefUnwindSafe for Interpolator<'d, T>
impl<'d, T> Send for Interpolator<'d, T>
impl<'d, T> Sync for Interpolator<'d, T>
impl<'d, T> Unpin for Interpolator<'d, T>
impl<'d, T> UnsafeUnpin for Interpolator<'d, T>
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