Struct stm32wlxx_hal::pac::flash::optr::R

pub struct R(/* private fields */);
Available on crate feature stm32wl5x_cm4 only.
Expand description

Register OPTR reader

Implementations§

§

impl R

pub fn rdp(&self) -> FieldReaderRaw<u8, RDP_A>

Bits 0:7 - Read protection level

pub fn ese(&self) -> BitReaderRaw<ESE_A>

Bit 8 - System security enabled flag

pub fn bor_lev(&self) -> FieldReaderRaw<u8, BOR_LEV_A>

Bits 9:11 - BOR reset Level

pub fn n_rst_stop(&self) -> BitReaderRaw<NRST_STOP_A>

Bit 12 - nRST_STOP

pub fn n_rst_stdby(&self) -> BitReaderRaw<NRST_STDBY_A>

Bit 13 - nRST_STDBY

pub fn n_rst_shdw(&self) -> BitReaderRaw<NRST_SHDW_A>

Bit 14 - nRSTSHDW

pub fn iwdg_sw(&self) -> BitReaderRaw<IWDG_SW_A>

Bit 16 - Independent watchdog selection

pub fn iwdg_stop(&self) -> BitReaderRaw<IWDG_STOP_A>

Bit 17 - Independent watchdog counter freeze in Stop mode

pub fn iwdg_stdby(&self) -> BitReaderRaw<IWDG_STDBY_A>

Bit 18 - Independent watchdog counter freeze in Standby mode

pub fn wwdg_sw(&self) -> BitReaderRaw<WWDG_SW_A>

Bit 19 - Window watchdog selection

pub fn n_boot1(&self) -> BitReaderRaw<NBOOT1_A>

Bit 23 - Boot configuration

pub fn sram2_pe(&self) -> BitReaderRaw<SRAM2_PE_A>

Bit 24 - SRAM2 parity check enable

pub fn sram_rst(&self) -> BitReaderRaw<SRAM_RST_A>

Bit 25 - SRAM2 Erase when system reset

pub fn n_swboot0(&self) -> BitReaderRaw<NSWBOOT0_A>

Bit 26 - Software BOOT0 selection

pub fn n_boot0(&self) -> BitReaderRaw<NBOOT0_A>

Bit 27 - nBOOT0 option bit

pub fn boot_lock(&self) -> BitReaderRaw<BOOT_LOCK_A>

Bit 30 - CPU1 CM4 Unique Boot entry enable option bit

pub fn c2boot_lock(&self) -> BitReaderRaw<bool>

Bit 31 - CPU2 CM0+ Unique Boot entry enable option bit

Methods from Deref<Target = R<OPTR_SPEC>>§

pub fn bits(&self) -> <REG as RegisterSpec>::Ux

Reads raw bits from register.

Trait Implementations§

§

impl Deref for R

§

type Target = R<OPTR_SPEC>

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl From<R<OPTR_SPEC>> for R

§

fn from(reader: R<OPTR_SPEC>) -> R

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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.
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.
source§

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

Performs the conversion.