Struct stm32_metapac::pwr::regs::Pdcrn
#[repr(transparent)]pub struct Pdcrn(pub u32);
Expand description
PWR port N pull-down control register.
Tuple Fields§
§0: u32
Implementations§
§impl Pdcrn
impl Pdcrn
pub const fn pdn0(&self) -> bool
pub const fn pdn0(&self) -> bool
Port N pull-down bit 0 When set activates the pull-down on PN0 when the APC bit is set in PWR_APCR.
pub fn set_pdn0(&mut self, val: bool)
pub fn set_pdn0(&mut self, val: bool)
Port N pull-down bit 0 When set activates the pull-down on PN0 when the APC bit is set in PWR_APCR.
pub const fn pdn1(&self) -> bool
pub const fn pdn1(&self) -> bool
Port N pull-down bit 1 When set activates the pull-down on PN1 when the APC bit is set in PWR_APCR.
pub fn set_pdn1(&mut self, val: bool)
pub fn set_pdn1(&mut self, val: bool)
Port N pull-down bit 1 When set activates the pull-down on PN1 when the APC bit is set in PWR_APCR.
pub const fn pdn2n5(&self) -> bool
pub const fn pdn2n5(&self) -> bool
Port N PN2 to PN5 pull-down activation When set, four pull-down resistors are activated on PN2 to PN5 when the APC bit is set in PWR_APCR.
pub fn set_pdn2n5(&mut self, val: bool)
pub fn set_pdn2n5(&mut self, val: bool)
Port N PN2 to PN5 pull-down activation When set, four pull-down resistors are activated on PN2 to PN5 when the APC bit is set in PWR_APCR.
pub const fn pdn6(&self) -> bool
pub const fn pdn6(&self) -> bool
Port N pull-down bit 6 When set activates the pull-down on PN6 when the APC bit is set in PWR_APCR.
pub fn set_pdn6(&mut self, val: bool)
pub fn set_pdn6(&mut self, val: bool)
Port N pull-down bit 6 When set activates the pull-down on PN6 when the APC bit is set in PWR_APCR.
pub const fn pdn8n11(&self) -> bool
pub const fn pdn8n11(&self) -> bool
Port N - PN8 to PN11 pull-down activation When set, four pull-down resistors are activated on PN8 to PN11 when the APC bit is set in PWR_APCR.
pub fn set_pdn8n11(&mut self, val: bool)
pub fn set_pdn8n11(&mut self, val: bool)
Port N - PN8 to PN11 pull-down activation When set, four pull-down resistors are activated on PN8 to PN11 when the APC bit is set in PWR_APCR.
Trait Implementations§
impl Copy for Pdcrn
impl Eq for Pdcrn
impl StructuralPartialEq for Pdcrn
Auto Trait Implementations§
impl Freeze for Pdcrn
impl RefUnwindSafe for Pdcrn
impl Send for Pdcrn
impl Sync for Pdcrn
impl Unpin for Pdcrn
impl UnwindSafe for Pdcrn
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
)