Struct stm32_metapac::pwr::regs::Pucra
#[repr(transparent)]pub struct Pucra(pub u32);
Expand description
Power Port A pull-up control register
Tuple Fields§
§0: u32
Implementations§
§impl Pucra
impl Pucra
pub const fn pu0(&self) -> bool
pub const fn pu0(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu3(&self) -> bool
pub const fn pu3(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu4(&self) -> bool
pub const fn pu4(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu4(&mut self, val: bool)
pub fn set_pu4(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu5(&self) -> bool
pub const fn pu5(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu5(&mut self, val: bool)
pub fn set_pu5(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu6(&self) -> bool
pub const fn pu6(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu6(&mut self, val: bool)
pub fn set_pu6(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu9(&self) -> bool
pub const fn pu9(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu9(&mut self, val: bool)
pub fn set_pu9(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu10(&self) -> bool
pub const fn pu10(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu10(&mut self, val: bool)
pub fn set_pu10(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu11(&self) -> bool
pub const fn pu11(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu11(&mut self, val: bool)
pub fn set_pu11(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu12(&self) -> bool
pub const fn pu12(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu12(&mut self, val: bool)
pub fn set_pu12(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu13(&self) -> bool
pub const fn pu13(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu13(&mut self, val: bool)
pub fn set_pu13(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 pu14(&self) -> bool
pub const fn pu14(&self) -> bool
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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_pu14(&mut self, val: bool)
pub fn set_pu14(&mut self, val: bool)
Port A pull-up bit y (y1=115 to 0) When set, this bit activates the pull-up on PA[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 Pucra
impl Eq for Pucra
impl StructuralPartialEq for Pucra
Auto Trait Implementations§
impl Freeze for Pucra
impl RefUnwindSafe for Pucra
impl Send for Pucra
impl Sync for Pucra
impl Unpin for Pucra
impl UnwindSafe for Pucra
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
)