Struct stm32_metapac::cordic::regs::Csr
#[repr(transparent)]pub struct Csr(pub u32);
Expand description
Control and status register.
Tuple Fields§
§0: u32
Implementations§
§impl Csr
impl Csr
pub const fn precision(&self) -> Precision
pub const fn precision(&self) -> Precision
Precision required (number of iterations/cycles), where PRECISION = (number of iterations/4).
pub fn set_precision(&mut self, val: Precision)
pub fn set_precision(&mut self, val: Precision)
Precision required (number of iterations/cycles), where PRECISION = (number of iterations/4).
pub const fn scale(&self) -> Scale
pub const fn scale(&self) -> Scale
Scaling factor. Input value has been multiplied by 2^(-n) before for argument. Output value will need to be multiplied by 2^n later for results.
pub fn set_scale(&mut self, val: Scale)
pub fn set_scale(&mut self, val: Scale)
Scaling factor. Input value has been multiplied by 2^(-n) before for argument. Output value will need to be multiplied by 2^n later for results.
pub fn set_dmaren(&mut self, val: bool)
pub fn set_dmaren(&mut self, val: bool)
Enable DMA wread channel.
pub fn set_dmawen(&mut self, val: bool)
pub fn set_dmawen(&mut self, val: bool)
Enable DMA write channel.
pub fn set_ressize(&mut self, val: Size)
pub fn set_ressize(&mut self, val: Size)
Width of output data.
pub fn set_argsize(&mut self, val: Size)
pub fn set_argsize(&mut self, val: Size)
Width of input data.
Trait Implementations§
impl Copy for Csr
impl Eq for Csr
impl StructuralPartialEq for Csr
Auto Trait Implementations§
impl Freeze for Csr
impl RefUnwindSafe for Csr
impl Send for Csr
impl Sync for Csr
impl Unpin for Csr
impl UnwindSafe for Csr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)