Struct Cr
#[repr(transparent)]pub struct Cr(pub u32);Expand description
control register
Tuple Fields§
§0: u32Implementations§
§impl Cr
impl Cr
pub const fn sshift(&self) -> SampleShift
pub const fn sshift(&self) -> SampleShift
Sample shift
pub const fn set_sshift(&mut self, val: SampleShift)
pub const fn set_sshift(&mut self, val: SampleShift)
Sample shift
pub const fn fsel(&self) -> FlashSelect
pub const fn fsel(&self) -> FlashSelect
FLASH memory selection. Not on STM32WB.
pub const fn set_fsel(&mut self, val: FlashSelect)
pub const fn set_fsel(&mut self, val: FlashSelect)
FLASH memory selection. Not on STM32WB.
pub const fn fthres(&self) -> u8
pub const fn fthres(&self) -> u8
FIFO threshold level. FTF is set when there are FTHRES+1 or more free bytes (indirect-write) or valid bytes (indirect-read) in the FIFO. Bit 12 (FTHRES[4]) is reserved on STM32L4 and STM32G4, which have a 16-byte FIFO (FTHRES[3:0]).
pub const fn set_fthres(&mut self, val: u8)
pub const fn set_fthres(&mut self, val: u8)
FIFO threshold level. FTF is set when there are FTHRES+1 or more free bytes (indirect-write) or valid bytes (indirect-read) in the FIFO. Bit 12 (FTHRES[4]) is reserved on STM32L4 and STM32G4, which have a 16-byte FIFO (FTHRES[3:0]).
pub const fn set_prescaler(&mut self, val: u8)
pub const fn set_prescaler(&mut self, val: u8)
Clock prescaler
Trait Implementations§
impl Copy for Cr
impl Eq for Cr
impl StructuralPartialEq for Cr
Auto Trait Implementations§
impl Freeze for Cr
impl RefUnwindSafe for Cr
impl Send for Cr
impl Sync for Cr
impl Unpin for Cr
impl UnsafeUnpin for Cr
impl UnwindSafe for Cr
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