Struct stm32_metapac::pwr::regs::Pucro
#[repr(transparent)]pub struct Pucro(pub u32);
Expand description
PWR port O pull-up control register.
Tuple Fields§
§0: u32
Implementations§
§impl Pucro
impl Pucro
pub const fn puo0(&self) -> bool
pub const fn puo0(&self) -> bool
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.
pub fn set_puo0(&mut self, val: bool)
pub fn set_puo0(&mut self, val: bool)
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.
pub const fn puo1(&self) -> bool
pub const fn puo1(&self) -> bool
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.
pub fn set_puo1(&mut self, val: bool)
pub fn set_puo1(&mut self, val: bool)
(n = 1 to 0) Port O pull-up bits When set, each bit activates the pull-up on POy when the APC bit is set in PWR_APCR. The pull-up is not activated if the corresponding bits in PWR_PDCRO is also set.
Trait Implementations§
impl Copy for Pucro
impl Eq for Pucro
impl StructuralPartialEq for Pucro
Auto Trait Implementations§
impl Freeze for Pucro
impl RefUnwindSafe for Pucro
impl Send for Pucro
impl Sync for Pucro
impl Unpin for Pucro
impl UnwindSafe for Pucro
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
)