Struct stm32_metapac::pwr::regs::Pdcrp
#[repr(transparent)]pub struct Pdcrp(pub u32);
Expand description
PWR port P pull-down control register.
Tuple Fields§
§0: u32
Implementations§
§impl Pdcrp
impl Pdcrp
pub const fn pdp0p3(&self) -> bool
pub const fn pdp0p3(&self) -> bool
Port P0-P3 pull-down activation When set, four pull-down resistors are activated on P0 to P3 when the APC bit is set in PWR_APCR.
pub fn set_pdp0p3(&mut self, val: bool)
pub fn set_pdp0p3(&mut self, val: bool)
Port P0-P3 pull-down activation When set, four pull-down resistors are activated on P0 to P3 when the APC bit is set in PWR_APCR.
pub const fn pdp4p7(&self) -> bool
pub const fn pdp4p7(&self) -> bool
Port P4-P7 pull-down activation When set, four pull-down resitors are activated on P4 to P7 when the APC bit is set in PWR_APCR.
pub fn set_pdp4p7(&mut self, val: bool)
pub fn set_pdp4p7(&mut self, val: bool)
Port P4-P7 pull-down activation When set, four pull-down resitors are activated on P4 to P7 when the APC bit is set in PWR_APCR.
pub const fn pdp8p11(&self) -> bool
pub const fn pdp8p11(&self) -> bool
Port P8-P11 pull-down activation When set, four pull-down resistors are activated on P8 to P11 when the APC bit is set in PWR_APCR.
pub fn set_pdp8p11(&mut self, val: bool)
pub fn set_pdp8p11(&mut self, val: bool)
Port P8-P11 pull-down activation When set, four pull-down resistors are activated on P8 to P11 when the APC bit is set in PWR_APCR.
pub const fn pdp12p15(&self) -> bool
pub const fn pdp12p15(&self) -> bool
Port P12-P15 pull-down activation When set, four pull-down resistors are activated on P8 to P11 when the APC bit is set in PWR_APCR.
pub fn set_pdp12p15(&mut self, val: bool)
pub fn set_pdp12p15(&mut self, val: bool)
Port P12-P15 pull-down activation When set, four pull-down resistors are activated on P8 to P11 when the APC bit is set in PWR_APCR.
Trait Implementations§
impl Copy for Pdcrp
impl Eq for Pdcrp
impl StructuralPartialEq for Pdcrp
Auto Trait Implementations§
impl Freeze for Pdcrp
impl RefUnwindSafe for Pdcrp
impl Send for Pdcrp
impl Sync for Pdcrp
impl Unpin for Pdcrp
impl UnwindSafe for Pdcrp
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
)