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.
Trait Implementations§
impl Copy for Pucrf
impl Eq for Pucrf
impl StructuralPartialEq for Pucrf
Auto Trait Implementations§
impl Freeze for Pucrf
impl RefUnwindSafe for Pucrf
impl Send for Pucrf
impl Sync for Pucrf
impl Unpin for Pucrf
impl UnwindSafe for Pucrf
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
)