rp2040_pac::pads_bank0::gpio

Type Alias W

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

Register GPIO%s writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn slewfast(&mut self) -> SLEWFAST_W<'_, GPIO_SPEC>

Bit 0 - Slew rate control. 1 = Fast, 0 = Slow

Source

pub fn schmitt(&mut self) -> SCHMITT_W<'_, GPIO_SPEC>

Bit 1 - Enable schmitt trigger

Source

pub fn pde(&mut self) -> PDE_W<'_, GPIO_SPEC>

Bit 2 - Pull down enable

Source

pub fn pue(&mut self) -> PUE_W<'_, GPIO_SPEC>

Bit 3 - Pull up enable

Source

pub fn drive(&mut self) -> DRIVE_W<'_, GPIO_SPEC>

Bits 4:5 - Drive strength.

Source

pub fn ie(&mut self) -> IE_W<'_, GPIO_SPEC>

Bit 6 - Input enable

Source

pub fn od(&mut self) -> OD_W<'_, GPIO_SPEC>

Bit 7 - Output disable. Has priority over output enable from peripherals

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