Type Alias rp2040_pac::uart0::uartdr::W

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

Register UARTDR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn data(&mut self) -> DATA_W<'_, UARTDR_SPEC>

Bits 0:7 - Receive (read) data character. Transmit (write) data character.

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