Struct stm32_metapac::pwr::regs::Pucrn
#[repr(transparent)]pub struct Pucrn(pub u32);
Expand description
PWR port N pull-up control register.
Tuple Fields§
§0: u32
Implementations§
§impl Pucrn
impl Pucrn
pub const fn pun1(&self) -> bool
pub const fn pun1(&self) -> bool
Port N pull-up bit 1 When set, each bit activates the pull-up on PN1 when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding PD1 bit is also set.
pub fn set_pun1(&mut self, val: bool)
pub fn set_pun1(&mut self, val: bool)
Port N pull-up bit 1 When set, each bit activates the pull-up on PN1 when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding PD1 bit is also set.
pub const fn pun6(&self) -> bool
pub const fn pun6(&self) -> bool
Port N pull-up bit 6 When set activates the pull-up on PN6 when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding PDN6 bit is also set.
pub fn set_pun6(&mut self, val: bool)
pub fn set_pun6(&mut self, val: bool)
Port N pull-up bit 6 When set activates the pull-up on PN6 when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding PDN6 bit is also set.
Trait Implementations§
impl Copy for Pucrn
impl Eq for Pucrn
impl StructuralPartialEq for Pucrn
Auto Trait Implementations§
impl Freeze for Pucrn
impl RefUnwindSafe for Pucrn
impl Send for Pucrn
impl Sync for Pucrn
impl Unpin for Pucrn
impl UnwindSafe for Pucrn
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)