stm32-metapac

Crates

git

Versions

stm32wb05kz

Flavors

Cr

Struct Cr 

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

CR register.

Tuple Fields§

§0: u32

Implementations§

§

impl Cr

pub const fn lsion(&self) -> bool

Internal Low Speed oscillator enable Set and reset by software. Reset source only for this field: PORESETn.

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

Internal Low Speed oscillator enable Set and reset by software. Reset source only for this field: PORESETn.

pub const fn lsirdy(&self) -> Lsirdy

Internal Low Speed oscillator Ready Set and reset by hardware to indicate when the Low Speed Internal RC oscillator is stable. Reset source only for this field: PORESETn.

pub fn set_lsirdy(&mut self, val: Lsirdy)

Internal Low Speed oscillator Ready Set and reset by hardware to indicate when the Low Speed Internal RC oscillator is stable. Reset source only for this field: PORESETn.

pub const fn lseon(&self) -> bool

External Low Speed Clock enable. Set and reset by software. Reset source only for this field: PORESETn.

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

External Low Speed Clock enable. Set and reset by software. Reset source only for this field: PORESETn.

pub const fn lserdy(&self) -> Lserdy

External Low Speed Clock ready flag. Set by hardware to indicate that LSE oscillator is stable.

pub fn set_lserdy(&mut self, val: Lserdy)

External Low Speed Clock ready flag. Set by hardware to indicate that LSE oscillator is stable.

pub const fn lsebyp(&self) -> Lsebyp

External Low Speed Clock bypass. Set and reset by software. Reset source only for this field: PORESETn.

pub fn set_lsebyp(&mut self, val: Lsebyp)

External Low Speed Clock bypass. Set and reset by software. Reset source only for this field: PORESETn.

pub const fn lockdet_nstop(&self) -> u8

Lock detector Nstop value When start_stop signal is high; a counter is incremented every 16 MHz clock cycle. When the counter reaches (NSTOP+1) x 64 value, the lock_det signal is set high indicating that the PLL is locked. As soon as the start_stop signal is low the counter is reset to 0.

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

Lock detector Nstop value When start_stop signal is high; a counter is incremented every 16 MHz clock cycle. When the counter reaches (NSTOP+1) x 64 value, the lock_det signal is set high indicating that the PLL is locked. As soon as the start_stop signal is low the counter is reset to 0.

pub const fn hsirdy(&self) -> Hsirdy

Internal High Speed clock ready flag. Set by hardware to indicate that internal RC 64MHz oscillator is stable. This bit is activated only if the RC is enabled by HSION (it is not activated if the RC is enabled by an IP request).

pub fn set_hsirdy(&mut self, val: Hsirdy)

Internal High Speed clock ready flag. Set by hardware to indicate that internal RC 64MHz oscillator is stable. This bit is activated only if the RC is enabled by HSION (it is not activated if the RC is enabled by an IP request).

pub const fn hsepllbufon(&self) -> bool

External High Speed Clock Buffer for PLL RF2G4 enable. Set and reset by software.

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

External High Speed Clock Buffer for PLL RF2G4 enable. Set and reset by software.

pub const fn hsipllon(&self) -> bool

Internal High Speed Clock PLL enable.

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

Internal High Speed Clock PLL enable.

pub const fn hsipllrdy(&self) -> Hsipllrdy

Internal High Speed Clock PLL ready flag.

pub fn set_hsipllrdy(&mut self, val: Hsipllrdy)

Internal High Speed Clock PLL ready flag.

pub const fn fmrat(&self) -> Fmrat

Force MR_BLE active transmission status (for debug purpose).

pub fn set_fmrat(&mut self, val: Fmrat)

Force MR_BLE active transmission status (for debug purpose).

pub const fn hseon(&self) -> bool

External High Speed Clock enable. Set and reset by software. in low power mode, HSE is turned off.

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

External High Speed Clock enable. Set and reset by software. in low power mode, HSE is turned off.

pub const fn hserdy(&self) -> Hserdy

External High Speed Clock ready flag. Set by hardware to indicate that HSE oscillator is stable.

pub fn set_hserdy(&mut self, val: Hserdy)

External High Speed Clock ready flag. Set by hardware to indicate that HSE oscillator is stable.

Trait Implementations§

§

impl Clone for Cr

§

fn clone(&self) -> Cr

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 Cr

§

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

Formats the value using the given formatter. Read more
§

impl Default for Cr

§

fn default() -> Cr

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

impl PartialEq for Cr

§

fn eq(&self, other: &Cr) -> 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 Cr

§

impl Eq for Cr

§

impl StructuralPartialEq for Cr

Auto Trait Implementations§

§

impl Freeze for Cr

§

impl RefUnwindSafe for Cr

§

impl Send for Cr

§

impl Sync for Cr

§

impl Unpin for Cr

§

impl UnwindSafe for Cr

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.