Struct stm32wlxx_hal::pac::rng::cr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register CR
writer
Implementations§
§impl W
impl W
pub fn rngen(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, RNGEN_A, BitM, 2>
pub fn rngen(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, RNGEN_A, BitM, 2>
Bit 2 - True random number generator enable
pub fn rng_config3(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, RNG_CONFIG3_A, Unsafe, 4, 8>
pub fn rng_config3( &mut self ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, RNG_CONFIG3_A, Unsafe, 4, 8>
Bits 8:11 - RNG_CONFIG3
pub fn rng_config2(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, RNG_CONFIG2_A, Unsafe, 3, 13>
pub fn rng_config2( &mut self ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, RNG_CONFIG2_A, Unsafe, 3, 13>
Bits 13:15 - RNG_CONFIG2
pub fn clkdiv(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, CLKDIV_A, Safe, 4, 16>
pub fn clkdiv( &mut self ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, CLKDIV_A, Safe, 4, 16>
Bits 16:19 - CLKDIV
pub fn rng_config1(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, RNG_CONFIG1_A, Unsafe, 6, 20>
pub fn rng_config1( &mut self ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, RNG_CONFIG1_A, Unsafe, 6, 20>
Bits 20:25 - RNG_CONFIG1
pub fn condrst(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 30>
pub fn condrst(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 30>
Bit 30 - Conditioning soft reset
pub fn configlock(
&mut self
) -> BitWriterRaw<'_, u32, CR_SPEC, CONFIGLOCK_A, BitM, 31>
pub fn configlock( &mut self ) -> BitWriterRaw<'_, u32, CR_SPEC, CONFIGLOCK_A, BitM, 31>
Bit 31 - CONFIGLOCK
Methods from Deref<Target = W<CR_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations§
Auto Trait Implementations§
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