Struct stm32_metapac::pwr::regs::Cr4
#[repr(transparent)]pub struct Cr4(pub u32);
Expand description
Power control register 4
Tuple Fields§
§0: u32
Implementations§
§impl Cr4
impl Cr4
pub const fn wp1(&self) -> bool
pub const fn wp1(&self) -> bool
Wake-up pin WKUP1 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP1
pub fn set_wp1(&mut self, val: bool)
pub fn set_wp1(&mut self, val: bool)
Wake-up pin WKUP1 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP1
pub const fn wp2(&self) -> bool
pub const fn wp2(&self) -> bool
Wake-up pin WKUP2 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP2
pub fn set_wp2(&mut self, val: bool)
pub fn set_wp2(&mut self, val: bool)
Wake-up pin WKUP2 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP2
pub const fn wp3(&self) -> bool
pub const fn wp3(&self) -> bool
Wake-up pin WKUP3 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP3
pub fn set_wp3(&mut self, val: bool)
pub fn set_wp3(&mut self, val: bool)
Wake-up pin WKUP3 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP3
pub const fn wp4(&self) -> bool
pub const fn wp4(&self) -> bool
Wake-up pin WKUP4 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP4
pub fn set_wp4(&mut self, val: bool)
pub fn set_wp4(&mut self, val: bool)
Wake-up pin WKUP4 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP4
pub const fn wp5(&self) -> bool
pub const fn wp5(&self) -> bool
Wake-up pin WKUP5 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP5
pub fn set_wp5(&mut self, val: bool)
pub fn set_wp5(&mut self, val: bool)
Wake-up pin WKUP5 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP5
pub const fn wp7(&self) -> bool
pub const fn wp7(&self) -> bool
Wake-up pin WKUP7 polarity This bit defines the polarity used for an event detection on external wake-up pin, WKUP7
Trait Implementations§
impl Copy for Cr4
impl Eq for Cr4
impl StructuralPartialEq for Cr4
Auto Trait Implementations§
impl Freeze for Cr4
impl RefUnwindSafe for Cr4
impl Send for Cr4
impl Sync for Cr4
impl Unpin for Cr4
impl UnwindSafe for Cr4
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)