Struct stm32wlxx_hal::pac::rcc::bdcr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register BDCR
writer
Implementations§
§impl W
impl W
pub fn lscosel(
&mut self
) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSCOSEL_A, BitM, 25>
pub fn lscosel( &mut self ) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSCOSEL_A, BitM, 25>
Bit 25 - Low speed clock output selection
pub fn lscoen(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSCOEN_A, BitM, 24>
pub fn lscoen(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSCOEN_A, BitM, 24>
Bit 24 - Low speed clock output enable
pub fn bdrst(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, BDRST_A, BitM, 16>
pub fn bdrst(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, BDRST_A, BitM, 16>
Bit 16 - Backup domain software reset
pub fn rtcen(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, RTCEN_A, BitM, 15>
pub fn rtcen(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, RTCEN_A, BitM, 15>
Bit 15 - RTC clock enable
pub fn rtcsel(
&mut self
) -> FieldWriterRaw<'_, u32, BDCR_SPEC, u8, RTCSEL_A, Safe, 2, 8>
pub fn rtcsel( &mut self ) -> FieldWriterRaw<'_, u32, BDCR_SPEC, u8, RTCSEL_A, Safe, 2, 8>
Bits 8:9 - RTC clock source selection
pub fn lsesysen(
&mut self
) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSESYSEN_A, BitM, 7>
pub fn lsesysen( &mut self ) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSESYSEN_A, BitM, 7>
Bit 7 - LSE system clock enable
pub fn lsecsson(
&mut self
) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSECSSON_A, BitM, 5>
pub fn lsecsson( &mut self ) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSECSSON_A, BitM, 5>
Bit 5 - CSS on LSE enable
pub fn lsedrv(
&mut self
) -> FieldWriterRaw<'_, u32, BDCR_SPEC, u8, LSEDRV_A, Safe, 2, 3>
pub fn lsedrv( &mut self ) -> FieldWriterRaw<'_, u32, BDCR_SPEC, u8, LSEDRV_A, Safe, 2, 3>
Bits 3:4 - LSE oscillator drive capability
pub fn lsebyp(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSEBYP_A, BitM, 2>
pub fn lsebyp(&mut self) -> BitWriterRaw<'_, u32, BDCR_SPEC, LSEBYP_A, BitM, 2>
Bit 2 - LSE oscillator bypass
Methods from Deref<Target = W<BDCR_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