Struct stm32_metapac::pwr::regs::Pucre
#[repr(transparent)]pub struct Pucre(pub u32);
Expand description
Power Port E pull-up control register
Tuple Fields§
§0: u32
Implementations§
§impl Pucre
impl Pucre
pub const fn pu3(&self) -> bool
pub const fn pu3(&self) -> bool
Port E pull-up bit 3 When set, this bit activates the pull-up on PE[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_pu3(&mut self, val: bool)
pub fn set_pu3(&mut self, val: bool)
Port E pull-up bit 3 When set, this bit activates the pull-up on PE[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 pu7(&self) -> bool
pub const fn pu7(&self) -> bool
Port E pull-up bit y When set, this bit activates the pull-up on PE[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_pu7(&mut self, val: bool)
pub fn set_pu7(&mut self, val: bool)
Port E pull-up bit y When set, this bit activates the pull-up on PE[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 pu8(&self) -> bool
pub const fn pu8(&self) -> bool
Port E pull-up bit y When set, this bit activates the pull-up on PE[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_pu8(&mut self, val: bool)
pub fn set_pu8(&mut self, val: bool)
Port E pull-up bit y When set, this bit activates the pull-up on PE[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.