pub struct W(_);
Expand description
Register CSR
writer
Implementations
sourceimpl W
impl W
sourcepub fn lpwrrstf(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 31>
pub fn lpwrrstf(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 31>
Bit 31 - Low-power reset flag
sourcepub fn wwdgrstf(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 30>
pub fn wwdgrstf(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 30>
Bit 30 - Window watchdog reset flag
sourcepub fn iwdgrstf(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 29>
pub fn iwdgrstf(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 29>
Bit 29 - Independent watchdog reset flag
sourcepub fn sftrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 28>
pub fn sftrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 28>
Bit 28 - Software reset flag
sourcepub fn porrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 27>
pub fn porrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 27>
Bit 27 - POR/PDR reset flag
sourcepub fn pinrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 26>
pub fn pinrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 26>
Bit 26 - PIN reset flag
sourcepub fn oblrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 25>
pub fn oblrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 25>
Bit 25 - OBLRSTF
sourcepub fn fwrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 24>
pub fn fwrstf(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, FWRSTF_A, BitM, 24>
Bit 24 - Firewall reset flag
sourcepub fn rtcrst(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, RTCRST_A, BitM, 19>
pub fn rtcrst(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, RTCRST_A, BitM, 19>
Bit 19 - RTC software reset bit
sourcepub fn rtcen(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, RTCEN_A, BitM, 18>
pub fn rtcen(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, RTCEN_A, BitM, 18>
Bit 18 - RTC clock enable bit
sourcepub fn rtcsel(
&mut self
) -> FieldWriterRaw<'_, u32, CSR_SPEC, u8, RTCSEL_A, Safe, 2, 16>
pub fn rtcsel(
&mut self
) -> FieldWriterRaw<'_, u32, CSR_SPEC, u8, RTCSEL_A, Safe, 2, 16>
Bits 16:17 - RTC and LCD clock source selection bits
sourcepub fn csslsed(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, CSSLSED_A, BitM, 14>
pub fn csslsed(
&mut self
) -> BitWriterRaw<'_, u32, CSR_SPEC, CSSLSED_A, BitM, 14>
Bit 14 - CSS on LSE failure detection flag
sourcepub fn csslseon(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSION_A, BitM, 13>
pub fn csslseon(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSION_A, BitM, 13>
Bit 13 - CSSLSEON
sourcepub fn lsedrv(
&mut self
) -> FieldWriterRaw<'_, u32, CSR_SPEC, u8, LSEDRV_A, Safe, 2, 11>
pub fn lsedrv(
&mut self
) -> FieldWriterRaw<'_, u32, CSR_SPEC, u8, LSEDRV_A, Safe, 2, 11>
Bits 11:12 - LSEDRV
sourcepub fn lsebyp(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSEBYP_A, BitM, 10>
pub fn lsebyp(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSEBYP_A, BitM, 10>
Bit 10 - External low-speed oscillator bypass bit
sourcepub fn lseon(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSION_A, BitM, 8>
pub fn lseon(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSION_A, BitM, 8>
Bit 8 - External low-speed oscillator enable bit
sourcepub fn lsion(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSION_A, BitM, 0>
pub fn lsion(&mut self) -> BitWriterRaw<'_, u32, CSR_SPEC, LSION_A, BitM, 0>
Bit 0 - Internal low-speed oscillator enable
Methods from Deref<Target = W<CSR_SPEC>>
sourcepub 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more