pub struct W(_);
Expand description
Register OPTSR_PRG
writer
Implementations§
source§impl W
impl W
sourcepub fn bor_lev(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_PRG_SPEC, u8, u8, Unsafe, 2, 2>
pub fn bor_lev(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_PRG_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3 - BOR reset level option configuration bits
sourcepub fn iwdg1_hw(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 4>
pub fn iwdg1_hw(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 4>
Bit 4 - IWDG1 option configuration bit
sourcepub fn n_rst_stop_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 6>
pub fn n_rst_stop_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 6>
Bit 6 - Option byte erase after D1 DStop option configuration bit
sourcepub fn n_rst_stby_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 7>
pub fn n_rst_stby_d1(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 7>
Bit 7 - Option byte erase after D1 DStandby option configuration bit
sourcepub fn rdp(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_PRG_SPEC, u8, u8, Unsafe, 8, 8>
pub fn rdp(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_PRG_SPEC, u8, u8, Unsafe, 8, 8>
Bits 8:15 - Readout protection level option configuration byte
sourcepub fn fz_iwdg_stop(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 17>
pub fn fz_iwdg_stop(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 17>
Bit 17 - IWDG Stop mode freeze option configuration bit
sourcepub fn fz_iwdg_sdby(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 18>
pub fn fz_iwdg_sdby(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 18>
Bit 18 - IWDG Standby mode freeze option configuration bit
sourcepub fn st_ram_size(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_PRG_SPEC, u8, u8, Unsafe, 2, 19>
pub fn st_ram_size(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_PRG_SPEC, u8, u8, Unsafe, 2, 19>
Bits 19:20 - DTCM size select option configuration bits
sourcepub fn security(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 21>
pub fn security(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 21>
Bit 21 - Security option configuration bit
sourcepub fn rss1(&mut self) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 26>
pub fn rss1(&mut self) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 26>
Bit 26 - User option configuration bit 1
sourcepub fn rss2(&mut self) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 27>
pub fn rss2(&mut self) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 27>
Bit 27 - User option configuration bit 2
sourcepub fn io_hslv(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 29>
pub fn io_hslv(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 29>
Bit 29 - I/O high-speed at low-voltage (PRODUCT_BELOW_25V)
sourcepub fn swap_bank_opt(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 31>
pub fn swap_bank_opt(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 31>
Bit 31 - Bank swapping option configuration bit
Methods from Deref<Target = W<OPTSR_PRG_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.