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 StructuralEq for Csr
impl StructuralPartialEq for Csr
Auto Trait Implementationsยง
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