stm32-metapac

Crates

git

Versions

stm32wb09ke

Flavors

Cr7

Struct Cr7 

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

CR7 register.

Tuple Fields§

§0: u32

Implementations§

§

impl Cr7

pub const fn wup12(&self) -> Wup

WUP12 Wake-up Line Polarity 12 (PA0) This bit defines the polarity used for event detection on external wake-up line 12.

pub fn set_wup12(&mut self, val: Wup)

WUP12 Wake-up Line Polarity 12 (PA0) This bit defines the polarity used for event detection on external wake-up line 12.

pub const fn wup13(&self) -> Wup

WUP13 Wake-up Line Polarity 13 (PA1) This bit defines the polarity used for event detection on external wake-up line 13.

pub fn set_wup13(&mut self, val: Wup)

WUP13 Wake-up Line Polarity 13 (PA1) This bit defines the polarity used for event detection on external wake-up line 13.

pub const fn wup14(&self) -> Wup

WUP14 Wake-up Line Polarity 14 (PA2) This bit defines the polarity used for event detection on external wake-up line 14.

pub fn set_wup14(&mut self, val: Wup)

WUP14 Wake-up Line Polarity 14 (PA2) This bit defines the polarity used for event detection on external wake-up line 14.

pub const fn wup15(&self) -> Wup

WUP15 Wake-up Line Polarity 15 (PA3) This bit defines the polarity used for event detection on external wake-up line 15.

pub fn set_wup15(&mut self, val: Wup)

WUP15 Wake-up Line Polarity 15 (PA3) This bit defines the polarity used for event detection on external wake-up line 15.

pub const fn wup16(&self) -> Wup

WUP16 Wake-up Line Polarity 16 (PB12) This bit defines the polarity used for event detection on external wake-up line 16.

pub fn set_wup16(&mut self, val: Wup)

WUP16 Wake-up Line Polarity 16 (PB12) This bit defines the polarity used for event detection on external wake-up line 16.

pub const fn wup17(&self) -> Wup

WUP17 Wake-up Line Polarity 17 (PB13) This bit defines the polarity used for event detection on external wake-up line 17.

pub fn set_wup17(&mut self, val: Wup)

WUP17 Wake-up Line Polarity 17 (PB13) This bit defines the polarity used for event detection on external wake-up line 17.

pub const fn wup18(&self) -> Wup

WUP18 Wake-up Line Polarity 18 (PB14) This bit defines the polarity used for event detection on external wake-up line 18.

pub fn set_wup18(&mut self, val: Wup)

WUP18 Wake-up Line Polarity 18 (PB14) This bit defines the polarity used for event detection on external wake-up line 18.

pub const fn wup19(&self) -> Wup

WUP19 Wake-up Line Polarity 19 (PB15) This bit defines the polarity used for event detection on external wake-up line 19.

pub fn set_wup19(&mut self, val: Wup)

WUP19 Wake-up Line Polarity 19 (PB15) This bit defines the polarity used for event detection on external wake-up line 19.

pub const fn wup20(&self) -> bool

Wake-up polarity for PB8 IO event.

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

Wake-up polarity for PB8 IO event.

pub const fn wup21(&self) -> bool

Wake-up polarity for PB9 IO event.

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

Wake-up polarity for PB9 IO event.

pub const fn wup22(&self) -> bool

Wake-up polarity for PB10 IO event.

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

Wake-up polarity for PB10 IO event.

pub const fn wup23(&self) -> bool

Wake-up polarity for PB11 IO event.

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

Wake-up polarity for PB11 IO event.

pub const fn wup24(&self) -> bool

Wake-up polarity for PB12 IO event.

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

Wake-up polarity for PB12 IO event.

pub const fn wup25(&self) -> bool

Wake-up polarity for PB13 IO event.

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

Wake-up polarity for PB13 IO event.

pub const fn wup26(&self) -> bool

Wake-up polarity for PB14 IO event.

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

Wake-up polarity for PB14 IO event.

pub const fn wup27(&self) -> bool

Wake-up polarity for PB15 IO event.

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

Wake-up polarity for PB15 IO event.

Trait Implementations§

§

impl Clone for Cr7

§

fn clone(&self) -> Cr7

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 Cr7

§

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

Formats the value using the given formatter. Read more
§

impl Default for Cr7

§

fn default() -> Cr7

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

impl PartialEq for Cr7

§

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

§

impl Eq for Cr7

§

impl StructuralPartialEq for Cr7

Auto Trait Implementations§

§

impl Freeze for Cr7

§

impl RefUnwindSafe for Cr7

§

impl Send for Cr7

§

impl Sync for Cr7

§

impl Unpin for Cr7

§

impl UnwindSafe for Cr7

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.