stm32-metapac

Crates

git

Versions

stm32h745xg-cm7

Flavors

Skip to main content

OptsrPrg

Struct OptsrPrg 

#[repr(transparent)]
pub struct OptsrPrg(pub u32);
Expand description

FLASH option status register

Tuple Fields§

§0: u32

Implementations§

§

impl OptsrPrg

pub const fn bor_lev(&self) -> BorLev

Brownout level option configuration bits.

pub const fn set_bor_lev(&mut self, val: BorLev)

Brownout level option configuration bits.

pub const fn iwdg1_sw(&self) -> bool

IWDG1 control mode option configuration bit (0: controlled by hardware, 1: controlled by software).

pub const fn set_iwdg1_sw(&mut self, val: bool)

IWDG1 control mode option configuration bit (0: controlled by hardware, 1: controlled by software).

pub const fn iwdg2_sw(&self) -> bool

IWDG2 control mode option configuration bit (0: controlled by hardware, 1: controlled by software). Only on dual-core devices (RM0399).

pub const fn set_iwdg2_sw(&mut self, val: bool)

IWDG2 control mode option configuration bit (0: controlled by hardware, 1: controlled by software). Only on dual-core devices (RM0399).

pub const fn nrst_stop_d1(&self) -> bool

D1 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D1 domain, 1: no reset).

pub const fn set_nrst_stop_d1(&mut self, val: bool)

D1 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D1 domain, 1: no reset).

pub const fn nrst_stby_d1(&self) -> bool

D1 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D1 domain, 1: no reset).

pub const fn set_nrst_stby_d1(&mut self, val: bool)

D1 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D1 domain, 1: no reset).

pub const fn rdp(&self) -> Rdp

Readout protection level option configuration byte.

pub const fn set_rdp(&mut self, val: Rdp)

Readout protection level option configuration byte.

pub const fn iwdg_fz_stop(&self) -> bool

IWDG Stop mode freeze option configuration bit (0: IWDG frozen in Stop mode, 1: IWDG running).

pub const fn set_iwdg_fz_stop(&mut self, val: bool)

IWDG Stop mode freeze option configuration bit (0: IWDG frozen in Stop mode, 1: IWDG running).

pub const fn iwdg_fz_sdby(&self) -> bool

IWDG Standby mode freeze option configuration bit (0: IWDG frozen in Standby mode, 1: IWDG running).

pub const fn set_iwdg_fz_sdby(&mut self, val: bool)

IWDG Standby mode freeze option configuration bit (0: IWDG frozen in Standby mode, 1: IWDG running).

pub const fn st_ram_size(&self) -> StRamSize

ST RAM size option configuration bits (RAM reserved to ST secure code).

pub const fn set_st_ram_size(&mut self, val: StRamSize)

ST RAM size option configuration bits (RAM reserved to ST secure code).

pub const fn security(&self) -> bool

Security option configuration bit

pub const fn set_security(&mut self, val: bool)

Security option configuration bit

pub const fn boot_cm4(&self) -> bool

Arm Cortex-M4 boot enable. Only on dual-core devices (RM0399).

pub const fn set_boot_cm4(&mut self, val: bool)

Arm Cortex-M4 boot enable. Only on dual-core devices (RM0399).

pub const fn boot_cm7(&self) -> bool

Arm Cortex-M7 boot enable. Only on dual-core devices (RM0399).

pub const fn set_boot_cm7(&mut self, val: bool)

Arm Cortex-M7 boot enable. Only on dual-core devices (RM0399).

pub const fn nrst_stop_d2(&self) -> bool

D2 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).

pub const fn set_nrst_stop_d2(&mut self, val: bool)

D2 domain DStop entry reset option configuration bit (0: reset generated when entering DStop mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).

pub const fn nrst_stby_d2(&self) -> bool

D2 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).

pub const fn set_nrst_stby_d2(&mut self, val: bool)

D2 domain DStandby entry reset option configuration bit (0: reset generated when entering DStandby mode on D2 domain, 1: no reset). Only on dual-core devices (RM0399).

pub const fn io_hslv(&self) -> bool

I/O high-speed at low-voltage (PRODUCT_BELOW_25V)

pub const fn set_io_hslv(&mut self, val: bool)

I/O high-speed at low-voltage (PRODUCT_BELOW_25V)

pub const fn swap_bank_opt(&self) -> bool

Bank swapping option configuration bit (not on STM32H72x/H73x).

pub const fn set_swap_bank_opt(&mut self, val: bool)

Bank swapping option configuration bit (not on STM32H72x/H73x).

Trait Implementations§

§

impl Clone for OptsrPrg

§

fn clone(&self) -> OptsrPrg

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for OptsrPrg

§

impl Default for OptsrPrg

§

fn default() -> OptsrPrg

Returns the “default value” for a type. Read more
§

impl Eq for OptsrPrg

§

impl PartialEq for OptsrPrg

§

fn eq(&self, other: &OptsrPrg) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for OptsrPrg

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where U: Into<T>,

Source§

type Error = !

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 T
where U: TryFrom<T>,

Source§

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.