Struct stm32_metapac::pwr::regs::Apcr
#[repr(transparent)]pub struct Apcr(pub u32);
Expand description
PWR apply pull configuration register.
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Apcr
impl Apcr
pub const fn apc(&self) -> bool
pub const fn apc(&self) -> bool
Apply pull-up and pull-down configuration When this bit is set, the I/O pull-up and pull-down configurations defined in PO5_PUPD, PN7_PUPD bits and PUCRx, PDCRx registers are applied in Standby mode even after wakeup until APC bit is reset to 0. When this bit is cleared, the I/O pull-up or pull-down configurations defined in PO5_PUPD, PN7_PUPD bits and PUCRx and PDCRx registers are not applied in Standby mode and IO becomes Hi-Z.
pub fn set_apc(&mut self, val: bool)
pub fn set_apc(&mut self, val: bool)
Apply pull-up and pull-down configuration When this bit is set, the I/O pull-up and pull-down configurations defined in PO5_PUPD, PN7_PUPD bits and PUCRx, PDCRx registers are applied in Standby mode even after wakeup until APC bit is reset to 0. When this bit is cleared, the I/O pull-up or pull-down configurations defined in PO5_PUPD, PN7_PUPD bits and PUCRx and PDCRx registers are not applied in Standby mode and IO becomes Hi-Z.
pub const fn pn7_pupd(&self) -> bool
pub const fn pn7_pupd(&self) -> bool
Port N bit 7 pull-up/down configuration When this bit is set, a weak pull-up or pull-down resistor is applied on PN7 following inverse logic applied on PN6. If the PUN6 bit in PWR_PUCRN register is set and APC bit is set the week pull-down is applied on PN7. If the PDN6 bit in PWR_PDCRN register is set and APC bit is set the week pull-up is applied on PN7.
pub fn set_pn7_pupd(&mut self, val: bool)
pub fn set_pn7_pupd(&mut self, val: bool)
Port N bit 7 pull-up/down configuration When this bit is set, a weak pull-up or pull-down resistor is applied on PN7 following inverse logic applied on PN6. If the PUN6 bit in PWR_PUCRN register is set and APC bit is set the week pull-down is applied on PN7. If the PDN6 bit in PWR_PDCRN register is set and APC bit is set the week pull-up is applied on PN7.
pub const fn po5_pupd(&self) -> bool
pub const fn po5_pupd(&self) -> bool
Port O bit 5 pull-up/down configuration When this bit is set, a weak pull-up or pull down resistor is applied on PO5 following inverse logic applied on PO4. If the PUO4 bit in PWR_PUCRO register is set and APC bit is set the week pull-down is applied on PO5. If the PDO4 bit in PWR_PDCRO register is set and APC bit is set the week pull-up is applied on PO5..
pub fn set_po5_pupd(&mut self, val: bool)
pub fn set_po5_pupd(&mut self, val: bool)
Port O bit 5 pull-up/down configuration When this bit is set, a weak pull-up or pull down resistor is applied on PO5 following inverse logic applied on PO4. If the PUO4 bit in PWR_PUCRO register is set and APC bit is set the week pull-down is applied on PO5. If the PDO4 bit in PWR_PDCRO register is set and APC bit is set the week pull-up is applied on PO5..
pub const fn i3cpb6_pu(&self) -> bool
pub const fn i3cpb6_pu(&self) -> bool
Port PB6 I3C pull-up bit When I3C is used on PB6, when set, this bit activates the pull-up on I3C1_SCL (PB6) in standby mode.
pub fn set_i3cpb6_pu(&mut self, val: bool)
pub fn set_i3cpb6_pu(&mut self, val: bool)
Port PB6 I3C pull-up bit When I3C is used on PB6, when set, this bit activates the pull-up on I3C1_SCL (PB6) in standby mode.
pub const fn i3cpb7_pu(&self) -> bool
pub const fn i3cpb7_pu(&self) -> bool
Port PB7 I3C pull-up bit When I3C is used on PB7, when set, this bit activates the pull-up on I3C1_SDA (PB7) in standby mode.
pub fn set_i3cpb7_pu(&mut self, val: bool)
pub fn set_i3cpb7_pu(&mut self, val: bool)
Port PB7 I3C pull-up bit When I3C is used on PB7, when set, this bit activates the pull-up on I3C1_SDA (PB7) in standby mode.
pub const fn i3cpb8_pu(&self) -> bool
pub const fn i3cpb8_pu(&self) -> bool
Port PB8 I3C pull-up bit When I3C is used on PB8, when set, this bit activates the pull-up on I3C1_SCL (PB8) in standby mode.
pub fn set_i3cpb8_pu(&mut self, val: bool)
pub fn set_i3cpb8_pu(&mut self, val: bool)
Port PB8 I3C pull-up bit When I3C is used on PB8, when set, this bit activates the pull-up on I3C1_SCL (PB8) in standby mode.
pub const fn i3cpb9_pu(&self) -> bool
pub const fn i3cpb9_pu(&self) -> bool
Port PB9 I3C pull-up bit When I3C is used on PB9, when set, this bit activates the pull-up on I3C1_SDA (PB9) in standby mode.
pub fn set_i3cpb9_pu(&mut self, val: bool)
pub fn set_i3cpb9_pu(&mut self, val: bool)
Port PB9 I3C pull-up bit When I3C is used on PB9, when set, this bit activates the pull-up on I3C1_SDA (PB9) in standby mode.