Struct stm32_hal2::pac::flash::optsr_prg::W

source ·
pub struct W(_);
Expand description

Register OPTSR_PRG writer

Implementations§

source§

impl W

source

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

source

pub fn iwdg1_hw(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 4>

Bit 4 - IWDG1 option configuration bit

source

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

source

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

source

pub fn rdp(
&mut self
) -> FieldWriterRaw<'_, u32, OPTSR_PRG_SPEC, u8, u8, Unsafe, 8, 8>

Bits 8:15 - Readout protection level option configuration byte

source

pub fn fz_iwdg_stop(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 17>

Bit 17 - IWDG Stop mode freeze option configuration bit

source

pub fn fz_iwdg_sdby(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 18>

Bit 18 - IWDG Standby mode freeze option configuration bit

source

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

source

pub fn security(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 21>

Bit 21 - Security option configuration bit

source

pub fn rss1(&mut self) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 26>

Bit 26 - User option configuration bit 1

source

pub fn rss2(&mut self) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 27>

Bit 27 - User option configuration bit 2

source

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)

source

pub fn swap_bank_opt(
&mut self
) -> BitWriterRaw<'_, u32, OPTSR_PRG_SPEC, bool, BitM, 31>

Bit 31 - Bank swapping option configuration bit

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register.

Methods from Deref<Target = W<OPTSR_PRG_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<OPTSR_PRG_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<W as Deref>::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
source§

impl From<W<OPTSR_PRG_SPEC>> for W

source§

fn from(writer: W<OPTSR_PRG_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

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> Any for Twhere
T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere
U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.