pub struct Cordic<'d, T: Instance> { /* private fields */ }Expand description
CORDIC driver
Implementations§
Source§impl<'d, T: Instance> Cordic<'d, T>
impl<'d, T: Instance> Cordic<'d, T>
Sourcepub fn q1_31<'a>(
&'a mut self,
arg_count: AccessCount,
res_count: AccessCount,
) -> Cordic32<'d, 'a, T>
pub fn q1_31<'a>( &'a mut self, arg_count: AccessCount, res_count: AccessCount, ) -> Cordic32<'d, 'a, T>
q1.31 related Set the argument access count.
AccessCount::One: each WDATA write provides one argument (ARG1), reusing the previous ARG2.
AccessCount::Two: arguments are written in pairs (ARG1 then ARG2) to WDATA.
Set the result access count.
AccessCount::One: each calculation produces one RDATA read (primary result only).
AccessCount::Two: each calculation produces two RDATA reads (primary + secondary).
Trait Implementations§
Source§impl<'d, T: Instance> SetConfig for Cordic<'d, T>
impl<'d, T: Instance> SetConfig for Cordic<'d, T>
Source§fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
Set a new config for Cordic driver.
This calls [Self::reconfigure], which resets ARG2 to +1.
To change only arg_count/res_count without resetting ARG2,
use [Self::set_access_counts] instead.
Source§type ConfigError = Infallible
type ConfigError = Infallible
The error type that can occur if
set_config fails.Auto Trait Implementations§
impl<'d, T> Freeze for Cordic<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for Cordic<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Cordic<'d, T>where
T: Send,
impl<'d, T> Sync for Cordic<'d, T>where
T: Sync,
impl<'d, T> Unpin for Cordic<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Cordic<'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