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.