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.
Trait Implementations§
impl Copy for Pucre
impl Eq for Pucre
impl StructuralPartialEq for Pucre
Auto Trait Implementations§
impl Freeze for Pucre
impl RefUnwindSafe for Pucre
impl Send for Pucre
impl Sync for Pucre
impl Unpin for Pucre
impl UnwindSafe for Pucre
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)