Struct Pucrh
#[repr(transparent)]pub struct Pucrh(pub u32);Expand description
PWR port H pull-up control register.
Tuple Fields§
§0: u32Implementations§
§impl Pucrh
impl Pucrh
pub const fn pu0(&self) -> bool
pub const fn pu0(&self) -> bool
When set, each bit activates the pull-up on PH0 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD0 bit is also set. Note: The bit is reserved and must be kept to reset value when the corresponding I/O is not available on the selected package.
pub fn set_pu0(&mut self, val: bool)
pub fn set_pu0(&mut self, val: bool)
When set, each bit activates the pull-up on PH0 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD0 bit is also set. Note: The bit is reserved and must be kept to reset value when the corresponding I/O is not available on the selected package.
pub const fn pu1(&self) -> bool
pub const fn pu1(&self) -> bool
When set, each bit activates the pull-up on PH1 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD1 bit is also set. Note: The bit is reserved and must be kept to reset value when the corresponding I/O is not available on the selected package.
pub fn set_pu1(&mut self, val: bool)
pub fn set_pu1(&mut self, val: bool)
When set, each bit activates the pull-up on PH1 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD1 bit is also set. Note: The bit is reserved and must be kept to reset value when the corresponding I/O is not available on the selected package.
pub const fn pu3(&self) -> bool
pub const fn pu3(&self) -> bool
When set, each bit activates the pull-up on PH3 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD3 bit is also set. Note: The bit is reserved and must be kept to reset value when the corresponding I/O is not available on the selected package.
pub fn set_pu3(&mut self, val: bool)
pub fn set_pu3(&mut self, val: bool)
When set, each bit activates the pull-up on PH3 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD3 bit is also set. Note: The bit is reserved and must be kept to reset value when the corresponding I/O is not available on the selected package.