Type Alias rp2040_pac::sio::gpio_out::W

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

Register GPIO_OUT writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn gpio_out(&mut self) -> GPIO_OUT_W<'_, GPIO_OUT_SPEC>

Bits 0:29 - Set output level (1/0 -> high/low) for GPIO0…29.
Reading back gives the last value written, NOT the input value from the pins.
If core 0 and core 1 both write to GPIO_OUT simultaneously (or to a SET/CLR/XOR alias),
the result is as though the write from core 0 took place first,
and the write from core 1 was then applied to that intermediate result.

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