Type Alias esp32c6::io_mux::gpio::W

source ·
pub type W = W<GPIO_SPEC>;
Expand description

Register GPIO%s writer

Implementations§

source§

impl W

source

pub fn mcu_oe(&mut self) -> MCU_OE_W<'_, GPIO_SPEC, 0>

Bit 0 - Output enable of the pad in sleep mode. 1: output enabled. 0: output disabled.

source

pub fn slp_sel(&mut self) -> SLP_SEL_W<'_, GPIO_SPEC, 1>

Bit 1 - Sleep mode selection of this pad. Set to 1 to put the pad in pad mode.

source

pub fn mcu_wpd(&mut self) -> MCU_WPD_W<'_, GPIO_SPEC, 2>

Bit 2 - Pull-down enable of the pad in sleep mode. 1: internal pull-down enabled. 0: internal pull-down disabled.

source

pub fn mcu_wpu(&mut self) -> MCU_WPU_W<'_, GPIO_SPEC, 3>

Bit 3 - Pull-up enable of the pad during sleep mode. 1: internal pull-up enabled. 0: internal pull-up disabled.

source

pub fn mcu_ie(&mut self) -> MCU_IE_W<'_, GPIO_SPEC, 4>

Bit 4 - Input enable of the pad during sleep mode. 1: input enabled. 0: input disabled.

source

pub fn mcu_drv(&mut self) -> MCU_DRV_W<'_, GPIO_SPEC, 5>

Bits 5:6 - Select the drive strength of the pad during sleep mode. 0: ~5 mA. 1: ~10mA. 2: ~20mA. 3: ~40mA.

source

pub fn fun_wpd(&mut self) -> FUN_WPD_W<'_, GPIO_SPEC, 7>

Bit 7 - Pull-down enable of the pad. 1: internal pull-down enabled. 0: internal pull-down disabled.

source

pub fn fun_wpu(&mut self) -> FUN_WPU_W<'_, GPIO_SPEC, 8>

Bit 8 - Pull-up enable of the pad. 1: internal pull-up enabled. 0: internal pull-up disabled.

source

pub fn fun_ie(&mut self) -> FUN_IE_W<'_, GPIO_SPEC, 9>

Bit 9 - Input enable of the pad. 1: input enabled. 0: input disabled.

source

pub fn fun_drv(&mut self) -> FUN_DRV_W<'_, GPIO_SPEC, 10>

Bits 10:11 - Select the drive strength of the pad. 0: ~5 mA. 1: ~10mA. 2: ~20mA. 3: ~40mA.

source

pub fn mcu_sel(&mut self) -> MCU_SEL_W<'_, GPIO_SPEC, 12>

Bits 12:14 - Select IO MUX function for this signal. 0: Select Function 1. 1: Select Function 2. etc.

source

pub fn filter_en(&mut self) -> FILTER_EN_W<'_, GPIO_SPEC, 15>

Bit 15 - Enable filter for pin input signals. 1: Filter enabled. 0: Filter disabled.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.