#[repr(transparent)]pub struct Pcr(pub u32);Expand description
Pin Control 2.
Tuple Fields§
§0: u32Implementations§
Source§impl Pcr
impl Pcr
Sourcepub const fn ps(&self) -> bool
pub const fn ps(&self) -> bool
Pull Select. Raw bit values: false (0) = Ps0: Enables internal pulldown resistor.; true (1) = Ps1: Enables internal pullup resistor.
Sourcepub const fn set_ps(&mut self, val: bool)
pub const fn set_ps(&mut self, val: bool)
Pull Select. Raw bit values: false (0) = Ps0: Enables internal pulldown resistor.; true (1) = Ps1: Enables internal pullup resistor.
Sourcepub const fn pe(&self) -> bool
pub const fn pe(&self) -> bool
Pull Enable. Raw bit values: false (0) = Pe0: Disables.; true (1) = Pe1: Enables.
Sourcepub const fn set_pe(&mut self, val: bool)
pub const fn set_pe(&mut self, val: bool)
Pull Enable. Raw bit values: false (0) = Pe0: Disables.; true (1) = Pe1: Enables.
Sourcepub const fn sre(&self) -> bool
pub const fn sre(&self) -> bool
Slew Rate Enable. Raw bit values: false (0) = Sre0: Fast.; true (1) = Sre1: Slow.
Sourcepub const fn set_sre(&mut self, val: bool)
pub const fn set_sre(&mut self, val: bool)
Slew Rate Enable. Raw bit values: false (0) = Sre0: Fast.; true (1) = Sre1: Slow.
Sourcepub const fn ode(&self) -> bool
pub const fn ode(&self) -> bool
Open Drain Enable. Raw bit values: false (0) = Ode0: Disables.; true (1) = Ode1: Enables.
Sourcepub const fn set_ode(&mut self, val: bool)
pub const fn set_ode(&mut self, val: bool)
Open Drain Enable. Raw bit values: false (0) = Ode0: Disables.; true (1) = Ode1: Enables.
Sourcepub const fn dse(&self) -> bool
pub const fn dse(&self) -> bool
Drive Strength Enable. Raw bit values: false (0) = Dse0: Low.; true (1) = Dse1: High.
Sourcepub const fn set_dse(&mut self, val: bool)
pub const fn set_dse(&mut self, val: bool)
Drive Strength Enable. Raw bit values: false (0) = Dse0: Low.; true (1) = Dse1: High.
Sourcepub const fn ibe(&self) -> bool
pub const fn ibe(&self) -> bool
Input Buffer Enable. Raw bit values: false (0) = Ibe0: Disables.; true (1) = Ibe1: Enables.
Sourcepub const fn set_ibe(&mut self, val: bool)
pub const fn set_ibe(&mut self, val: bool)
Input Buffer Enable. Raw bit values: false (0) = Ibe0: Disables.; true (1) = Ibe1: Enables.
Sourcepub const fn inv(&self) -> bool
pub const fn inv(&self) -> bool
Invert Input. Raw bit values: false (0) = Inv0: Does not invert.; true (1) = Inv1: Inverts.
Sourcepub const fn set_inv(&mut self, val: bool)
pub const fn set_inv(&mut self, val: bool)
Invert Input. Raw bit values: false (0) = Inv0: Does not invert.; true (1) = Inv1: Inverts.