Struct stm32_metapac::pwr::regs::Pdcrb
#[repr(transparent)]pub struct Pdcrb(pub u32);
Expand description
Power Port B pull-down control register
Tuple Fields§
§0: u32
Implementations§
§impl Pdcrb
impl Pdcrb
pub const fn pd0(&self) -> bool
pub const fn pd0(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd0(&mut self, val: bool)
pub fn set_pd0(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd1(&self) -> bool
pub const fn pd1(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd1(&mut self, val: bool)
pub fn set_pd1(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd2(&self) -> bool
pub const fn pd2(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd2(&mut self, val: bool)
pub fn set_pd2(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd3(&self) -> bool
pub const fn pd3(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd3(&mut self, val: bool)
pub fn set_pd3(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd4(&self) -> bool
pub const fn pd4(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd4(&mut self, val: bool)
pub fn set_pd4(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd5(&self) -> bool
pub const fn pd5(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd5(&mut self, val: bool)
pub fn set_pd5(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd6(&self) -> bool
pub const fn pd6(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd6(&mut self, val: bool)
pub fn set_pd6(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd7(&self) -> bool
pub const fn pd7(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd7(&mut self, val: bool)
pub fn set_pd7(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd8(&self) -> bool
pub const fn pd8(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd8(&mut self, val: bool)
pub fn set_pd8(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd9(&self) -> bool
pub const fn pd9(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd9(&mut self, val: bool)
pub fn set_pd9(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd10(&self) -> bool
pub const fn pd10(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd10(&mut self, val: bool)
pub fn set_pd10(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd11(&self) -> bool
pub const fn pd11(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd11(&mut self, val: bool)
pub fn set_pd11(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd12(&self) -> bool
pub const fn pd12(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd12(&mut self, val: bool)
pub fn set_pd12(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd13(&self) -> bool
pub const fn pd13(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd13(&mut self, val: bool)
pub fn set_pd13(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub const fn pd14(&self) -> bool
pub const fn pd14(&self) -> bool
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
pub fn set_pd14(&mut self, val: bool)
pub fn set_pd14(&mut self, val: bool)
Port B pull-down bit y When set, this bit activates the pull-down on PB[y] when APC bit is set in PWR_CR3 register.
Trait Implementations§
impl Copy for Pdcrb
impl Eq for Pdcrb
impl StructuralPartialEq for Pdcrb
Auto Trait Implementations§
impl Freeze for Pdcrb
impl RefUnwindSafe for Pdcrb
impl Send for Pdcrb
impl Sync for Pdcrb
impl Unpin for Pdcrb
impl UnwindSafe for Pdcrb
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
)