Type Alias W

Source
pub type W = W<PIN_SPEC>;
Expand description

Register PIN%s writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn gpio_pin_pad_driver(&mut self) -> GPIO_PIN_PAD_DRIVER_W<'_, PIN_SPEC>

Bit 2 - Pad driver selection. 0: normal output. 1: open drain.

Source

pub fn gpio_pin_int_type(&mut self) -> GPIO_PIN_INT_TYPE_W<'_, PIN_SPEC>

Bits 7:9 - GPIO interrupt type selection. 0: GPIO interrupt disabled. 1: rising edge trigger. 2: falling edge trigger. 3: any edge trigger. 4: low level trigger. 5: high level trigger.

Source

pub fn gpio_pin_wakeup_enable( &mut self, ) -> GPIO_PIN_WAKEUP_ENABLE_W<'_, PIN_SPEC>

Bit 10 - GPIO wake-up enable. This will only wake up ESP32-S2 from Light-sleep.