Struct stm32_metapac::pwr::regs::Pucrf
#[repr(transparent)]pub struct Pucrf(pub u32);
Expand description
Power Port F pull-up control register
Tuple Fields§
§0: u32
Implementations§
§impl Pucrf
impl Pucrf
pub const fn pu0(&self) -> bool
pub const fn pu0(&self) -> bool
Port F pull-up bit y When set, this bit activates the pull-up on PH[y] when APC bit is set in PWR_CR3 register. If the corresponding PDy bit is also set, the pull-up is not activated and the pull-down is activated instead with highest priority.
pub fn set_pu0(&mut self, val: bool)
pub fn set_pu0(&mut self, val: bool)
Port F pull-up bit y When set, this bit activates the pull-up on PH[y] when APC bit is set in PWR_CR3 register. If the corresponding PDy bit is also set, the pull-up is not activated and the pull-down is activated instead with highest priority.
pub const fn pu1(&self) -> bool
pub const fn pu1(&self) -> bool
Port F pull-up bit y When set, this bit activates the pull-up on PH[y] when APC bit is set in PWR_CR3 register. If the corresponding PDy bit is also set, the pull-up is not activated and the pull-down is activated instead with highest priority.
pub fn set_pu1(&mut self, val: bool)
pub fn set_pu1(&mut self, val: bool)
Port F pull-up bit y When set, this bit activates the pull-up on PH[y] when APC bit is set in PWR_CR3 register. If the corresponding PDy bit is also set, the pull-up is not activated and the pull-down is activated instead with highest priority.
pub const fn pu2(&self) -> bool
pub const fn pu2(&self) -> bool
Port F pull-up bit y When set, this bit activates the pull-up on PH[y] when APC bit is set in PWR_CR3 register. If the corresponding PDy bit is also set, the pull-up is not activated and the pull-down is activated instead with highest priority.
pub fn set_pu2(&mut self, val: bool)
pub fn set_pu2(&mut self, val: bool)
Port F pull-up bit y When set, this bit activates the pull-up on PH[y] when APC bit is set in PWR_CR3 register. If the corresponding PDy bit is also set, the pull-up is not activated and the pull-down is activated instead with highest priority.