Struct Nscr
#[repr(transparent)]pub struct Nscr(pub u32);Expand description
noise source control register
Tuple Fields§
§0: u32Implementations§
§impl Nscr
impl Nscr
pub const fn en_osc(&self, n: usize) -> u8
pub const fn en_osc(&self, n: usize) -> u8
When the RNG is enabled (RNGEN bit set), each bit of this bitfield enables one of the three inputs from the oscillator instance number x (only EN_OSC[0..1] on STM32U0)
pub const fn set_en_osc(&mut self, n: usize, val: u8)
pub const fn set_en_osc(&mut self, n: usize, val: u8)
When the RNG is enabled (RNGEN bit set), each bit of this bitfield enables one of the three inputs from the oscillator instance number x (only EN_OSC[0..1] on STM32U0)
Trait Implementations§
impl Copy for Nscr
impl Eq for Nscr
impl StructuralPartialEq for Nscr
Auto Trait Implementations§
impl Freeze for Nscr
impl RefUnwindSafe for Nscr
impl Send for Nscr
impl Sync for Nscr
impl Unpin for Nscr
impl UnsafeUnpin for Nscr
impl UnwindSafe for Nscr
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