Struct stm32_metapac::pwr::regs::Pucrb
#[repr(transparent)]pub struct Pucrb(pub u32);
Expand description
Power Port B pull-up control register
Tuple Fields§
§0: u32
Implementations§
§impl Pucrb
impl Pucrb
pub const fn pu0(&self) -> bool
pub const fn pu0(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu0(&mut self, val: bool)
pub fn set_pu0(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu1(&self) -> bool
pub const fn pu1(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu1(&mut self, val: bool)
pub fn set_pu1(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu2(&self) -> bool
pub const fn pu2(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu2(&mut self, val: bool)
pub fn set_pu2(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu3(&self) -> bool
pub const fn pu3(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu3(&mut self, val: bool)
pub fn set_pu3(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu4(&self) -> bool
pub const fn pu4(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu4(&mut self, val: bool)
pub fn set_pu4(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu5(&self) -> bool
pub const fn pu5(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu5(&mut self, val: bool)
pub fn set_pu5(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu6(&self) -> bool
pub const fn pu6(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu6(&mut self, val: bool)
pub fn set_pu6(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu7(&self) -> bool
pub const fn pu7(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu7(&mut self, val: bool)
pub fn set_pu7(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu8(&self) -> bool
pub const fn pu8(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu8(&mut self, val: bool)
pub fn set_pu8(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu9(&self) -> bool
pub const fn pu9(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu9(&mut self, val: bool)
pub fn set_pu9(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu10(&self) -> bool
pub const fn pu10(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu10(&mut self, val: bool)
pub fn set_pu10(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu11(&self) -> bool
pub const fn pu11(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu11(&mut self, val: bool)
pub fn set_pu11(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu12(&self) -> bool
pub const fn pu12(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu12(&mut self, val: bool)
pub fn set_pu12(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu13(&self) -> bool
pub const fn pu13(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu13(&mut self, val: bool)
pub fn set_pu13(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pu14(&self) -> bool
pub const fn pu14(&self) -> bool
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pu14(&mut self, val: bool)
pub fn set_pu14(&mut self, val: bool)
Port B pull-up bit y When set, this bit activates the pull-up on PB[y] when APC bit is set in PWR_CR3 register.
Trait Implementations§
impl Copy for Pucrb
impl Eq for Pucrb
impl StructuralPartialEq for Pucrb
Auto Trait Implementations§
impl Freeze for Pucrb
impl RefUnwindSafe for Pucrb
impl Send for Pucrb
impl Sync for Pucrb
impl Unpin for Pucrb
impl UnwindSafe for Pucrb
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
)