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.