stm32-metapac

Crates

git

Versions

stm32wb09ke

Flavors

Sr2

Struct Sr2 

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

SR2 register.

Tuple Fields§

§0: u32

Implementations§

§

impl Sr2

pub const fn smpsbypr(&self) -> bool

SMPSBYPR: SMPS Force Bypass Control Replica This bit mirrors the actual BYPASS_3V3 control signal driven to the SMPS regulator, dependant on the real working state.

pub fn set_smpsbypr(&mut self, val: bool)

SMPSBYPR: SMPS Force Bypass Control Replica This bit mirrors the actual BYPASS_3V3 control signal driven to the SMPS regulator, dependant on the real working state.

pub const fn smpsenr(&self) -> bool

SMPSENR: SMPS Enable Control Replica This bit mirrors the actual ENABLE_3V3 control signal driven to the SMPS regulator, dependant on the real working state.

pub fn set_smpsenr(&mut self, val: bool)

SMPSENR: SMPS Enable Control Replica This bit mirrors the actual ENABLE_3V3 control signal driven to the SMPS regulator, dependant on the real working state.

pub const fn smpsrdy(&self) -> Smpsrdy

SMPSRDY: SMPS Ready Status This bit provides the information whether SMPS is ready.

pub fn set_smpsrdy(&mut self, val: Smpsrdy)

SMPSRDY: SMPS Ready Status This bit provides the information whether SMPS is ready.

pub const fn iobootval2(&self) -> u8

Bit3: PB15 input value on VDD33 latched at POR Bit2: PB14 input value on VDD33 latched at POR Bit1: PB13 input value on VDD33 latched at POR Bit0: PB12 input value on VDD33 latched at POR.

pub fn set_iobootval2(&mut self, val: u8)

Bit3: PB15 input value on VDD33 latched at POR Bit2: PB14 input value on VDD33 latched at POR Bit1: PB13 input value on VDD33 latched at POR Bit0: PB12 input value on VDD33 latched at POR.

pub const fn reglps(&self) -> Reglps

REGLPS: Regulator Low Power Started This bit provides the information whether low power regulator is ready.

pub fn set_reglps(&mut self, val: Reglps)

REGLPS: Regulator Low Power Started This bit provides the information whether low power regulator is ready.

pub const fn regms(&self) -> Regms

REGMS: Regulator Main LDO Started This bit provides the information whether main regulator is ready.

pub fn set_regms(&mut self, val: Regms)

REGMS: Regulator Main LDO Started This bit provides the information whether main regulator is ready.

pub const fn pvdo(&self) -> bool

PVDO: Power Voltage Detector Output When the Power Voltage Detector is enabled (CR2.PVDE) this bit is set when the system supply (VDDIO) is lower than the selected PVD threshold (CR2.PVDLS).

pub fn set_pvdo(&mut self, val: bool)

PVDO: Power Voltage Detector Output When the Power Voltage Detector is enabled (CR2.PVDE) this bit is set when the system supply (VDDIO) is lower than the selected PVD threshold (CR2.PVDLS).

pub const fn iobootval(&self) -> u8

Bit3: PA11 input value on VDD33 latched at POR Bit2: PA10 input value on VDD33 latched at POR Bit1: PA9 input value on VDD33 latched at POR Bit0: PA8 input value on VDD33 latched at POR.

pub fn set_iobootval(&mut self, val: u8)

Bit3: PA11 input value on VDD33 latched at POR Bit2: PA10 input value on VDD33 latched at POR Bit1: PA9 input value on VDD33 latched at POR Bit0: PA8 input value on VDD33 latched at POR.

Trait Implementations§

§

impl Clone for Sr2

§

fn clone(&self) -> Sr2

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for Sr2

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for Sr2

§

fn default() -> Sr2

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

impl PartialEq for Sr2

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Sr2

§

impl Eq for Sr2

§

impl StructuralPartialEq for Sr2

Auto Trait Implementations§

§

impl Freeze for Sr2

§

impl RefUnwindSafe for Sr2

§

impl Send for Sr2

§

impl Sync for Sr2

§

impl Unpin for Sr2

§

impl UnwindSafe for Sr2

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 = 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 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.