pub struct W(/* private fields */);Expand description
Register OPTCR writer
Implementations§
Source§impl W
impl W
Sourcepub fn optlock(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 0>
pub fn optlock(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 0>
Bit 0 - Option lock
Sourcepub fn optstrt(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 1>
pub fn optstrt(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 1>
Bit 1 - Option start
Sourcepub fn bor_lev(
&mut self,
) -> FieldWriterRaw<'_, u32, OPTCR_SPEC, u8, u8, Unsafe, 2, 2>
pub fn bor_lev( &mut self, ) -> FieldWriterRaw<'_, u32, OPTCR_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3 - BOR reset Level
Sourcepub fn wwdg_sw(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 4>
pub fn wwdg_sw(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 4>
Bit 4 - User option bytes
Sourcepub fn iwdg_sw(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 5>
pub fn iwdg_sw(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 5>
Bit 5 - User option bytes
Sourcepub fn n_rst_stop(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 6>
pub fn n_rst_stop(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 6>
Bit 6 - User option bytes
Sourcepub fn n_rst_stdby(
&mut self,
) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 7>
pub fn n_rst_stdby( &mut self, ) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 7>
Bit 7 - User option bytes
Sourcepub fn rdp(
&mut self,
) -> FieldWriterRaw<'_, u32, OPTCR_SPEC, u8, u8, Unsafe, 8, 8>
pub fn rdp( &mut self, ) -> FieldWriterRaw<'_, u32, OPTCR_SPEC, u8, u8, Unsafe, 8, 8>
Bits 8:15 - Read protect
Sourcepub fn n_wrp(
&mut self,
) -> FieldWriterRaw<'_, u32, OPTCR_SPEC, u8, u8, Unsafe, 8, 16>
pub fn n_wrp( &mut self, ) -> FieldWriterRaw<'_, u32, OPTCR_SPEC, u8, u8, Unsafe, 8, 16>
Bits 16:23 - Not write protect
Sourcepub fn iwdg_stdby(
&mut self,
) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 30>
pub fn iwdg_stdby( &mut self, ) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 30>
Bit 30 - Independent watchdog counter freeze in standby mode
Sourcepub fn iwdg_stop(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 31>
pub fn iwdg_stop(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 31>
Bit 31 - Independent watchdog counter freeze in Stop mode
Methods from Deref<Target = W<OPTCR_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§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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