Struct stm32_metapac::pwr::regs::Pucro
#[repr(transparent)]pub struct Pucro(pub u32);
Expand description
PWR port O pull-up control register.
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Pucro
impl Pucro
pub const fn puo0(&self) -> bool
pub const fn puo0(&self) -> bool
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.
pub fn set_puo0(&mut self, val: bool)
pub fn set_puo0(&mut self, val: bool)
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.
pub const fn puo1(&self) -> bool
pub const fn puo1(&self) -> bool
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.
pub fn set_puo1(&mut self, val: bool)
pub fn set_puo1(&mut self, val: bool)
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.