Struct Pdcrg
#[repr(transparent)]pub struct Pdcrg(pub u32);Expand description
PWR port G pull-down control register.
Tuple Fields§
§0: u32Implementations§
§impl Pdcrg
impl Pdcrg
pub const fn pd2(&self) -> bool
pub const fn pd2(&self) -> bool
When set, each bit activates the pull-down on PG2 when the APC bit is set in APCR. 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_pd2(&mut self, val: bool)
pub fn set_pd2(&mut self, val: bool)
When set, each bit activates the pull-down on PG2 when the APC bit is set in APCR. 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 pd3(&self) -> bool
pub const fn pd3(&self) -> bool
When set, each bit activates the pull-down on PG3 when the APC bit is set in APCR. 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_pd3(&mut self, val: bool)
pub fn set_pd3(&mut self, val: bool)
When set, each bit activates the pull-down on PG3 when the APC bit is set in APCR. 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 pd4(&self) -> bool
pub const fn pd4(&self) -> bool
When set, each bit activates the pull-down on PG4 when the APC bit is set in APCR. 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_pd4(&mut self, val: bool)
pub fn set_pd4(&mut self, val: bool)
When set, each bit activates the pull-down on PG4 when the APC bit is set in APCR. 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 pd5(&self) -> bool
pub const fn pd5(&self) -> bool
When set, each bit activates the pull-down on PG5 when the APC bit is set in APCR. 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_pd5(&mut self, val: bool)
pub fn set_pd5(&mut self, val: bool)
When set, each bit activates the pull-down on PG5 when the APC bit is set in APCR. 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 pd6(&self) -> bool
pub const fn pd6(&self) -> bool
When set, each bit activates the pull-down on PG6 when the APC bit is set in APCR. 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_pd6(&mut self, val: bool)
pub fn set_pd6(&mut self, val: bool)
When set, each bit activates the pull-down on PG6 when the APC bit is set in APCR. 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 pd7(&self) -> bool
pub const fn pd7(&self) -> bool
When set, each bit activates the pull-down on PG7 when the APC bit is set in APCR. 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_pd7(&mut self, val: bool)
pub fn set_pd7(&mut self, val: bool)
When set, each bit activates the pull-down on PG7 when the APC bit is set in APCR. 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 pd8(&self) -> bool
pub const fn pd8(&self) -> bool
When set, each bit activates the pull-down on PG8 when the APC bit is set in APCR. 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_pd8(&mut self, val: bool)
pub fn set_pd8(&mut self, val: bool)
When set, each bit activates the pull-down on PG8 when the APC bit is set in APCR. 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 pd9(&self) -> bool
pub const fn pd9(&self) -> bool
When set, each bit activates the pull-down on PG9 when the APC bit is set in APCR. 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_pd9(&mut self, val: bool)
pub fn set_pd9(&mut self, val: bool)
When set, each bit activates the pull-down on PG9 when the APC bit is set in APCR. 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 pd10(&self) -> bool
pub const fn pd10(&self) -> bool
When set, each bit activates the pull-down on PG10 when the APC bit is set in APCR. 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_pd10(&mut self, val: bool)
pub fn set_pd10(&mut self, val: bool)
When set, each bit activates the pull-down on PG10 when the APC bit is set in APCR. 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 pd11(&self) -> bool
pub const fn pd11(&self) -> bool
When set, each bit activates the pull-down on PG11 when the APC bit is set in APCR. 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_pd11(&mut self, val: bool)
pub fn set_pd11(&mut self, val: bool)
When set, each bit activates the pull-down on PG11 when the APC bit is set in APCR. 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 pd12(&self) -> bool
pub const fn pd12(&self) -> bool
When set, each bit activates the pull-down on PG12 when the APC bit is set in APCR. 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_pd12(&mut self, val: bool)
pub fn set_pd12(&mut self, val: bool)
When set, each bit activates the pull-down on PG12 when the APC bit is set in APCR. 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 pd13(&self) -> bool
pub const fn pd13(&self) -> bool
When set, each bit activates the pull-down on PG13 when the APC bit is set in APCR. 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_pd13(&mut self, val: bool)
pub fn set_pd13(&mut self, val: bool)
When set, each bit activates the pull-down on PG13 when the APC bit is set in APCR. 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 pd14(&self) -> bool
pub const fn pd14(&self) -> bool
When set, each bit activates the pull-down on PG14 when the APC bit is set in APCR. 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_pd14(&mut self, val: bool)
pub fn set_pd14(&mut self, val: bool)
When set, each bit activates the pull-down on PG14 when the APC bit is set in APCR. Note: The bit is reserved and must be kept to reset value when the corresponding I/O is not available on the selected package.