Struct Pucrb
#[repr(transparent)]pub struct Pucrb(pub u32);Expand description
PWR port B pull-up control register.
Tuple Fields§
§0: u32Implementations§
§impl Pucrb
impl Pucrb
pub const fn pu0(&self) -> bool
pub const fn pu0(&self) -> bool
When set, each bit activates the pull-up on PB0 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 PB0 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 PB1 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 PB1 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 pu2(&self) -> bool
pub const fn pu2(&self) -> bool
When set, each bit activates the pull-up on PB2 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD2 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_pu2(&mut self, val: bool)
pub fn set_pu2(&mut self, val: bool)
When set, each bit activates the pull-up on PB2 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD2 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 PB3 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 PB3 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 const fn pu4(&self) -> bool
pub const fn pu4(&self) -> bool
When set, each bit activates the pull-up on PB4 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD4 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_pu4(&mut self, val: bool)
pub fn set_pu4(&mut self, val: bool)
When set, each bit activates the pull-up on PB4 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD4 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 pu5(&self) -> bool
pub const fn pu5(&self) -> bool
When set, each bit activates the pull-up on PB5 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD5 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_pu5(&mut self, val: bool)
pub fn set_pu5(&mut self, val: bool)
When set, each bit activates the pull-up on PB5 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD5 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 pu6(&self) -> bool
pub const fn pu6(&self) -> bool
When set, each bit activates the pull-up on PB6 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD6 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_pu6(&mut self, val: bool)
pub fn set_pu6(&mut self, val: bool)
When set, each bit activates the pull-up on PB6 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD6 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 pu7(&self) -> bool
pub const fn pu7(&self) -> bool
When set, each bit activates the pull-up on PB7 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD7 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_pu7(&mut self, val: bool)
pub fn set_pu7(&mut self, val: bool)
When set, each bit activates the pull-up on PB7 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD7 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 pu8(&self) -> bool
pub const fn pu8(&self) -> bool
When set, each bit activates the pull-up on PB8 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD8 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_pu8(&mut self, val: bool)
pub fn set_pu8(&mut self, val: bool)
When set, each bit activates the pull-up on PB8 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD8 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 pu9(&self) -> bool
pub const fn pu9(&self) -> bool
When set, each bit activates the pull-up on PB9 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD9 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_pu9(&mut self, val: bool)
pub fn set_pu9(&mut self, val: bool)
When set, each bit activates the pull-up on PB9 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD9 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 pu10(&self) -> bool
pub const fn pu10(&self) -> bool
When set, each bit activates the pull-up on PB10 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD10 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_pu10(&mut self, val: bool)
pub fn set_pu10(&mut self, val: bool)
When set, each bit activates the pull-up on PB10 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD10 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 pu11(&self) -> bool
pub const fn pu11(&self) -> bool
When set, each bit activates the pull-up on PB11 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD11 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_pu11(&mut self, val: bool)
pub fn set_pu11(&mut self, val: bool)
When set, each bit activates the pull-up on PB11 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD11 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 pu12(&self) -> bool
pub const fn pu12(&self) -> bool
When set, each bit activates the pull-up on PB12 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD12 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_pu12(&mut self, val: bool)
pub fn set_pu12(&mut self, val: bool)
When set, each bit activates the pull-up on PB12 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD12 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 pu13(&self) -> bool
pub const fn pu13(&self) -> bool
When set, each bit activates the pull-up on PB13 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD13 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_pu13(&mut self, val: bool)
pub fn set_pu13(&mut self, val: bool)
When set, each bit activates the pull-up on PB13 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD13 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 pu14(&self) -> bool
pub const fn pu14(&self) -> bool
When set, each bit activates the pull-up on PB14 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD14 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_pu14(&mut self, val: bool)
pub fn set_pu14(&mut self, val: bool)
When set, each bit activates the pull-up on PB14 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD14 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 pu15(&self) -> bool
pub const fn pu15(&self) -> bool
When set, each bit activates the pull-up on PB15 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD15 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_pu15(&mut self, val: bool)
pub fn set_pu15(&mut self, val: bool)
When set, each bit activates the pull-up on PB15 when the APC bit is set in APCR. The pull-up is not activated if the corresponding PD15 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.