stm32-metapac

Crates

git

Versions

stm32wb06cc

Flavors

Sr3

Struct Sr3 

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

SR3 register.

Tuple Fields§

§0: u32

Implementations§

§

impl Sr3

pub const fn wuf12(&self) -> Wuf

WUF12 WakeUp Flag 12 PA0 This bit is set when a wakeup is detected on wakeup line 12. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf12(&mut self, val: Wuf)

WUF12 WakeUp Flag 12 PA0 This bit is set when a wakeup is detected on wakeup line 12. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf13(&self) -> Wuf

WUF13 WakeUp Flag 13 PA1 This bit is set when a wakeup is detected on wakeup line 13. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf13(&mut self, val: Wuf)

WUF13 WakeUp Flag 13 PA1 This bit is set when a wakeup is detected on wakeup line 13. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf14(&self) -> Wuf

WUF14 WakeUp Flag 14 PA2 This bit is set when a wakeup is detected on wakeup line 14. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf14(&mut self, val: Wuf)

WUF14 WakeUp Flag 14 PA2 This bit is set when a wakeup is detected on wakeup line 14. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf15(&self) -> Wuf

WUF15 WakeUp Flag 15 PA3 This bit is set when a wakeup is detected on wakeup line 15. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf15(&mut self, val: Wuf)

WUF15 WakeUp Flag 15 PA3 This bit is set when a wakeup is detected on wakeup line 15. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf16(&self) -> Wuf

WUF16 WakeUp Flag 16 PB12 This bit is set when a wakeup is detected on wakeup line 16. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf16(&mut self, val: Wuf)

WUF16 WakeUp Flag 16 PB12 This bit is set when a wakeup is detected on wakeup line 16. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf17(&self) -> Wuf

WUF17 WakeUp Flag 17 PB13 This bit is set when a wakeup is detected on wakeup line 17. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf17(&mut self, val: Wuf)

WUF17 WakeUp Flag 17 PB13 This bit is set when a wakeup is detected on wakeup line 17. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf18(&self) -> Wuf

WUF18 WakeUp Flag 18 PB14 This bit is set when a wakeup is detected on wakeup line 18. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf18(&mut self, val: Wuf)

WUF18 WakeUp Flag 18 PB14 This bit is set when a wakeup is detected on wakeup line 18. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf19(&self) -> Wuf

WUF19 WakeUp Flag 19 PB15 This bit is set when a wakeup is detected on wakeup line 19. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub fn set_wuf19(&mut self, val: Wuf)

WUF19 WakeUp Flag 19 PB15 This bit is set when a wakeup is detected on wakeup line 19. It is cleared by a reset pad or by writing 1 in this bit field. writting this bit, clears the interrupt:.

pub const fn wuf20(&self) -> bool

PB8 I/O wake-up flag.

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

PB8 I/O wake-up flag.

pub const fn wuf21(&self) -> bool

PB9 I/O wake-up flag.

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

PB9 I/O wake-up flag.

pub const fn wuf22(&self) -> bool

PB10 I/O wake-up flag.

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

PB10 I/O wake-up flag.

pub const fn wuf23(&self) -> bool

PB11 I/O wake-up flag.

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

PB11 I/O wake-up flag.

pub const fn wuf24(&self) -> bool

PB12 I/O wake-up flag.

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

PB12 I/O wake-up flag.

pub const fn wuf25(&self) -> bool

PB13 I/O wake-up flag.

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

PB13 I/O wake-up flag.

pub const fn wuf26(&self) -> bool

PB14 I/O wake-up flag.

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

PB14 I/O wake-up flag.

pub const fn wuf27(&self) -> bool

PB15 I/O wake-up flag.

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

PB15 I/O wake-up flag.

Trait Implementations§

§

impl Clone for Sr3

§

fn clone(&self) -> Sr3

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 Sr3

§

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

Formats the value using the given formatter. Read more
§

impl Default for Sr3

§

fn default() -> Sr3

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

impl PartialEq for Sr3

§

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

§

impl Eq for Sr3

§

impl StructuralPartialEq for Sr3

Auto Trait Implementations§

§

impl Freeze for Sr3

§

impl RefUnwindSafe for Sr3

§

impl Send for Sr3

§

impl Sync for Sr3

§

impl Unpin for Sr3

§

impl UnwindSafe for Sr3

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.