Type Alias esp32s2::gpio::out::W

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

Register OUT writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn data_orig(&mut self) -> DATA_ORIG_W<'_, OUT_SPEC>

Bits 0:31 - GPIO0 ~ 31 output value in simple GPIO output mode. The values of bit0 ~ bit31 correspond to the output value of GPIO0 ~ GPIO31 respectively. Bit22 ~ bit25 are invalid.

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