embassy-stm32

Crates

git

Versions

stm32u575oi

Flavors

Cordic16

Struct Cordic16 

Source
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

Source

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).

Source

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>
where W: WriteDma<T>, R: ReadDma<T>,

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.