Struct Pucrg
#[repr(transparent)]pub struct Pucrg(pub u32);Expand description
PWR port G pull-up control register.
Tuple Fields§
§0: u32Implementations§
§impl Pucrg
impl Pucrg
pub const fn pu2(&self) -> bool
pub const fn pu2(&self) -> bool
When set, each bit activates the pull-up on PG2 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 PG2 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 PG3 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 PG3 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 PG4 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 PG4 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 PG5 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 PG5 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 PG6 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 PG6 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 PG7 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 PG7 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 PG8 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 PG8 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 PG9 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 PG9 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 PG10 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 PG10 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 PG11 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 PG11 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 PG12 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 PG12 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 PG13 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 PG13 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 PG14 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 PG14 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 PG15 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 PG15 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.