pub struct W(_);
Expand description
Register OPTSR_CUR
writer
Implementations
sourceimpl W
impl W
sourcepub fn opt_busy(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 0>
pub fn opt_busy(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 0>
Bit 0 - Option byte change ongoing flag
sourcepub fn bor_lev(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_CUR_SPEC, u8, u8, Unsafe, 2, 2>
pub fn bor_lev(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_CUR_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3 - Brownout level option status bit
sourcepub fn iwdg1_hw(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 4>
pub fn iwdg1_hw(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 4>
Bit 4 - IWDG1 control option status bit
sourcepub fn n_rst_stop_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 6>
pub fn n_rst_stop_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 6>
Bit 6 - D1 DStop entry reset option status bit
sourcepub fn n_rst_stby_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 7>
pub fn n_rst_stby_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 7>
Bit 7 - D1 DStandby entry reset option status bit
sourcepub fn rdp(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_CUR_SPEC, u8, u8, Unsafe, 8, 8>
pub fn rdp(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_CUR_SPEC, u8, u8, Unsafe, 8, 8>
Bits 8:15 - Readout protection level option status byte
sourcepub fn fz_iwdg_stop(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 17>
pub fn fz_iwdg_stop(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 17>
Bit 17 - IWDG Stop mode freeze option status bit
sourcepub fn fz_iwdg_sdby(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 18>
pub fn fz_iwdg_sdby(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 18>
Bit 18 - IWDG Standby mode freeze option status bit
sourcepub fn st_ram_size(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_CUR_SPEC, u8, u8, Unsafe, 2, 19>
pub fn st_ram_size(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_CUR_SPEC, u8, u8, Unsafe, 2, 19>
Bits 19:20 - DTCM RAM size option status
sourcepub fn security(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 21>
pub fn security(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 21>
Bit 21 - Security enable option status bit
sourcepub fn rss1(&mut self) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 26>
pub fn rss1(&mut self) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 26>
Bit 26 - User option bit 1
sourcepub fn perso_ok(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 28>
pub fn perso_ok(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 28>
Bit 28 - Device personalization status bit
sourcepub fn io_hslv(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 29>
pub fn io_hslv(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 29>
Bit 29 - I/O high-speed at low-voltage status bit (PRODUCT_BELOW_25V)
sourcepub fn optchangeerr(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 30>
pub fn optchangeerr(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 30>
Bit 30 - Option byte change error flag
sourcepub fn swap_bank_opt(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 31>
pub fn swap_bank_opt(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_CUR_SPEC, bool, BitM, 31>
Bit 31 - Bank swapping option status bit
Methods from Deref<Target = W<OPTSR_CUR_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
sourceimpl From<W<OPTSR_CUR_SPEC>> for W
impl From<W<OPTSR_CUR_SPEC>> for W
sourcefn from(writer: W<OPTSR_CUR_SPEC>) -> W
fn from(writer: W<OPTSR_CUR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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