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 wdg_sw(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 5>
pub fn wdg_sw(&mut self) -> BitWriterRaw<'_, u32, OPTCR_SPEC, bool, BitM, 5>
Bit 5 - WDG_SW 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 - nRST_STOP 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 - nRST_STDBY 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
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