Type Alias esp32c6::lp_io::gpio2::W

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

Register GPIO2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn lp_gpio2_mcu_oe(&mut self) -> LP_GPIO2_MCU_OE_W<'_, GPIO2_SPEC>

Bit 0 - need des

source

pub fn lp_gpio2_slp_sel(&mut self) -> LP_GPIO2_SLP_SEL_W<'_, GPIO2_SPEC>

Bit 1 - need des

source

pub fn lp_gpio2_mcu_wpd(&mut self) -> LP_GPIO2_MCU_WPD_W<'_, GPIO2_SPEC>

Bit 2 - need des

source

pub fn lp_gpio2_mcu_wpu(&mut self) -> LP_GPIO2_MCU_WPU_W<'_, GPIO2_SPEC>

Bit 3 - need des

source

pub fn lp_gpio2_mcu_ie(&mut self) -> LP_GPIO2_MCU_IE_W<'_, GPIO2_SPEC>

Bit 4 - need des

source

pub fn lp_gpio2_mcu_drv(&mut self) -> LP_GPIO2_MCU_DRV_W<'_, GPIO2_SPEC>

Bits 5:6 - need des

source

pub fn lp_gpio2_fun_wpd(&mut self) -> LP_GPIO2_FUN_WPD_W<'_, GPIO2_SPEC>

Bit 7 - need des

source

pub fn lp_gpio2_fun_wpu(&mut self) -> LP_GPIO2_FUN_WPU_W<'_, GPIO2_SPEC>

Bit 8 - need des

source

pub fn lp_gpio2_fun_ie(&mut self) -> LP_GPIO2_FUN_IE_W<'_, GPIO2_SPEC>

Bit 9 - need des

source

pub fn lp_gpio2_fun_drv(&mut self) -> LP_GPIO2_FUN_DRV_W<'_, GPIO2_SPEC>

Bits 10:11 - need des

source

pub fn lp_gpio2_mcu_sel(&mut self) -> LP_GPIO2_MCU_SEL_W<'_, GPIO2_SPEC>

Bits 12:14 - need des

source

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

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual