Type Alias rp2040_pac::io_bank0::gpio::gpio_ctrl::W

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

Register GPIO_CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn funcsel(&mut self) -> FUNCSEL_W<'_, GPIO_CTRL_SPEC>

Bits 0:4 - 0-31 -> selects pin function according to the GPIO table. Not all options are valid for all GPIO pins.

source

pub fn outover(&mut self) -> OUTOVER_W<'_, GPIO_CTRL_SPEC>

Bits 8:9

source

pub fn oeover(&mut self) -> OEOVER_W<'_, GPIO_CTRL_SPEC>

Bits 12:13

source

pub fn inover(&mut self) -> INOVER_W<'_, GPIO_CTRL_SPEC>

Bits 16:17

source

pub fn irqover(&mut self) -> IRQOVER_W<'_, GPIO_CTRL_SPEC>

Bits 28:29

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