stm32-metapac

Crates

git

Versions

stm32wb09ke

Flavors

Cr6

Struct Cr6 

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

CR6 register.

Tuple Fields§

§0: u32

Implementations§

§

impl Cr6

pub const fn ewu12(&self) -> bool

EWU12 Enable WakeUp line 12 (PA0) When this bit is set the wakeup line 12 is enabled and a rising or falling edge on wakeup line 0 will trigger a CPU wakeup event depending on CR7.WP0 bit.

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

EWU12 Enable WakeUp line 12 (PA0) When this bit is set the wakeup line 12 is enabled and a rising or falling edge on wakeup line 0 will trigger a CPU wakeup event depending on CR7.WP0 bit.

pub const fn ewu13(&self) -> bool

EWU13 Enable WakeUp line 13 (PA1) When this bit is set the wakeup line 13 is enabled and a rising or falling edge on wakeup line 1 will trigger a CPU wakeup event depending on CR7.WP1 bit.

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

EWU13 Enable WakeUp line 13 (PA1) When this bit is set the wakeup line 13 is enabled and a rising or falling edge on wakeup line 1 will trigger a CPU wakeup event depending on CR7.WP1 bit.

pub const fn ewu14(&self) -> bool

EWU14 Enable WakeUp line 14 (PA2) When this bit is set the wakeup line 14 is enabled and a rising or falling edge on wakeup line 2 will trigger a CPU wakeup event depending on CR7.WP2 bit.

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

EWU14 Enable WakeUp line 14 (PA2) When this bit is set the wakeup line 14 is enabled and a rising or falling edge on wakeup line 2 will trigger a CPU wakeup event depending on CR7.WP2 bit.

pub const fn ewu15(&self) -> bool

EWU15 Enable WakeUp line 15 (PA3) When this bit is set the wakeup line 15 is enabled and a rising or falling edge on wakeup line 3 will trigger a CPU wakeup event depending on CR7.WP3 bit.

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

EWU15 Enable WakeUp line 15 (PA3) When this bit is set the wakeup line 15 is enabled and a rising or falling edge on wakeup line 3 will trigger a CPU wakeup event depending on CR7.WP3 bit.

pub const fn ewu16(&self) -> bool

EWU16 Enable WakeUp line 16 (PB12) When this bit is set the wakeup line 16 is enabled and a rising or falling edge on wakeup line 4 will trigger a CPU wakeup event depending on CR7.WP4 bit.

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

EWU16 Enable WakeUp line 16 (PB12) When this bit is set the wakeup line 16 is enabled and a rising or falling edge on wakeup line 4 will trigger a CPU wakeup event depending on CR7.WP4 bit.

pub const fn ewu17(&self) -> bool

EWU17 Enable WakeUp line 17 (PB13) When this bit is set the wakeup line 17 is enabled and a rising or falling edge on wakeup line 5 will trigger a CPU wakeup event depending on CR7.WP5 bit.

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

EWU17 Enable WakeUp line 17 (PB13) When this bit is set the wakeup line 17 is enabled and a rising or falling edge on wakeup line 5 will trigger a CPU wakeup event depending on CR7.WP5 bit.

pub const fn ewu18(&self) -> bool

EWU18 Enable WakeUp line 18 (PB14) When this bit is set the wakeup line 18 is enabled and a rising or falling edge on wakeup line 6 will trigger a CPU wakeup event depending on CR7.WP6 bit.

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

EWU18 Enable WakeUp line 18 (PB14) When this bit is set the wakeup line 18 is enabled and a rising or falling edge on wakeup line 6 will trigger a CPU wakeup event depending on CR7.WP6 bit.

pub const fn ewu19(&self) -> bool

EWU19 Enable WakeUp line 19 (PB15) When this bit is set the wakeup line 19 is enabled and a rising or falling edge on wakeup line 7 will trigger a CPU wakeup event depending on CR7.WP7 bit.

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

EWU19 Enable WakeUp line 19 (PB15) When this bit is set the wakeup line 19 is enabled and a rising or falling edge on wakeup line 7 will trigger a CPU wakeup event depending on CR7.WP7 bit.

pub const fn ewu20(&self) -> bool

Enable wakeup on PB8 I/O event.

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

Enable wakeup on PB8 I/O event.

pub const fn ewu21(&self) -> bool

Enable wakeup on PB9 I/O event.

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

Enable wakeup on PB9 I/O event.

pub const fn ewu22(&self) -> bool

Enable wakeup on PB10 I/O event.

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

Enable wakeup on PB10 I/O event.

pub const fn ewu23(&self) -> bool

Enable wakeup on PB11 I/O event.

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

Enable wakeup on PB11 I/O event.

pub const fn ewu24(&self) -> bool

Enable wakeup on PA12 I/O event.

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

Enable wakeup on PA12 I/O event.

pub const fn ewu25(&self) -> bool

Enable wakeup on PA13 I/O event.

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

Enable wakeup on PA13 I/O event.

pub const fn ewu26(&self) -> bool

Enable wakeup on PA14 I/O event.

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

Enable wakeup on PA14 I/O event.

pub const fn ewu27(&self) -> bool

Enable wakeup on PA15 I/O event.

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

Enable wakeup on PA15 I/O event.

Trait Implementations§

§

impl Clone for Cr6

§

fn clone(&self) -> Cr6

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 Cr6

§

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

Formats the value using the given formatter. Read more
§

impl Default for Cr6

§

fn default() -> Cr6

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

impl PartialEq for Cr6

§

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

§

impl Eq for Cr6

§

impl StructuralPartialEq for Cr6

Auto Trait Implementations§

§

impl Freeze for Cr6

§

impl RefUnwindSafe for Cr6

§

impl Send for Cr6

§

impl Sync for Cr6

§

impl Unpin for Cr6

§

impl UnwindSafe for Cr6

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.