pub struct Cordic16<'d, 'a, T: Instance> { /* private fields */ }Expand description
q1.15 related
Implementations§
Source§impl<'d, 'a, T: Instance> Cordic16<'d, 'a, T>
q1.15 related
impl<'d, 'a, T: Instance> Cordic16<'d, 'a, T>
q1.15 related
Sourcepub fn blocking_calc(
&mut self,
arg: &Aligned<A4, [Q16<15>]>,
res: &mut Aligned<A4, [Q16<15>]>,
) -> Result<usize, CordicError>
pub fn blocking_calc( &mut self, arg: &Aligned<A4, [Q16<15>]>, res: &mut Aligned<A4, [Q16<15>]>, ) -> Result<usize, CordicError>
Run a blocking CORDIC calculation in q1.15 format.
In q1.15 mode, each WDATA write / RDATA read contains two packed 16-bit values,
so nargs and nres are always 1 (one register access = two values).
Sourcepub async fn async_calc<'b, W, R>(
&mut self,
write_dma: Peri<'b, W>,
read_dma: Peri<'b, R>,
irq: impl Binding<W::Interrupt, InterruptHandler<W>> + Binding<R::Interrupt, InterruptHandler<R>> + 'b,
arg: &Aligned<A4, [Q16<15>]>,
res: &mut Aligned<A4, [Q16<15>]>,
) -> Result<usize, CordicError>
pub async fn async_calc<'b, W, R>( &mut self, write_dma: Peri<'b, W>, read_dma: Peri<'b, R>, irq: impl Binding<W::Interrupt, InterruptHandler<W>> + Binding<R::Interrupt, InterruptHandler<R>> + 'b, arg: &Aligned<A4, [Q16<15>]>, res: &mut Aligned<A4, [Q16<15>]>, ) -> Result<usize, CordicError>
Run an async CORDIC calculation in q1.15 format.
In q1.15 mode, each WDATA write / RDATA read contains two packed 16-bit values,
so nargs and nres are always 1 (one register access = two values).
Auto Trait Implementations§
impl<'d, 'a, T> Freeze for Cordic16<'d, 'a, T>
impl<'d, 'a, T> RefUnwindSafe for Cordic16<'d, 'a, T>where
T: RefUnwindSafe,
impl<'d, 'a, T> Send for Cordic16<'d, 'a, T>where
T: Send,
impl<'d, 'a, T> Sync for Cordic16<'d, 'a, T>where
T: Sync,
impl<'d, 'a, T> Unpin for Cordic16<'d, 'a, T>
impl<'d, 'a, T> !UnwindSafe for Cordic16<'d, 'a, 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