pub type R = R<GPIO2_SPEC>;
Expand description
Register GPIO2
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
Source§impl R
impl R
Sourcepub fn mcu_oe(&self) -> MCU_OE_R
pub fn mcu_oe(&self) -> MCU_OE_R
Bit 0 - Output enable of the pin in sleep mode. 1: Output enabled. 0: Output disabled.
Sourcepub fn slp_sel(&self) -> SLP_SEL_R
pub fn slp_sel(&self) -> SLP_SEL_R
Bit 1 - Sleep mode selection of this pin. Set to 1 to put the pin in sleep mode.
Sourcepub fn mcu_wpd(&self) -> MCU_WPD_R
pub fn mcu_wpd(&self) -> MCU_WPD_R
Bit 2 - Pull-down enable of the pin during sleep mode. 1: Internal pull-down enabled. 0: internal pull-down disabled.
Sourcepub fn mcu_wpu(&self) -> MCU_WPU_R
pub fn mcu_wpu(&self) -> MCU_WPU_R
Bit 3 - Pull-up enable of the pin during sleep mode. 1: Internal pull-up enabled. 0: Internal pull-up disabled.
Sourcepub fn mcu_ie(&self) -> MCU_IE_R
pub fn mcu_ie(&self) -> MCU_IE_R
Bit 4 - Input enable of the pin during sleep mode. 1: Input enabled. 0: Input disabled.
Sourcepub fn fun_wpd(&self) -> FUN_WPD_R
pub fn fun_wpd(&self) -> FUN_WPD_R
Bit 7 - Pull-down enable of the pin. 1: Internal pull-down enabled. 0: internal pull-down disabled.
Sourcepub fn fun_wpu(&self) -> FUN_WPU_R
pub fn fun_wpu(&self) -> FUN_WPU_R
Bit 8 - Pull-up enable of the pin. 1: Internal pull-up enabled. 0: Internal pull-up disabled.
Sourcepub fn fun_ie(&self) -> FUN_IE_R
pub fn fun_ie(&self) -> FUN_IE_R
Bit 9 - Input enable of the pin. 1: Input enabled. 0: Input disabled.
Sourcepub fn fun_drv(&self) -> FUN_DRV_R
pub fn fun_drv(&self) -> FUN_DRV_R
Bits 10:11 - Select the drive strength of the pin. 0: ~5 mA. 1: ~10 mA. 2: ~20 mA. 3: ~40 mA.
Sourcepub fn mcu_sel(&self) -> MCU_SEL_R
pub fn mcu_sel(&self) -> MCU_SEL_R
Bits 12:14 - Select IO MUX function for this signal. 0: Select Function 1. 1: Select Function 2, etc.
Sourcepub fn filter_en(&self) -> FILTER_EN_R
pub fn filter_en(&self) -> FILTER_EN_R
Bit 15 - Enable filter for pin input signals. 1: Filter enabled. 2: Filter disabled.