Type Alias rp2040_pac::uart0::uartdmacr::W

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

Register UARTDMACR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn rxdmae(&mut self) -> RXDMAE_W<'_, UARTDMACR_SPEC>

Bit 0 - Receive DMA enable. If this bit is set to 1, DMA for the receive FIFO is enabled.

source

pub fn txdmae(&mut self) -> TXDMAE_W<'_, UARTDMACR_SPEC>

Bit 1 - Transmit DMA enable. If this bit is set to 1, DMA for the transmit FIFO is enabled.

source

pub fn dmaonerr(&mut self) -> DMAONERR_W<'_, UARTDMACR_SPEC>

Bit 2 - DMA on error. If this bit is set to 1, the DMA receive request outputs, UARTRXDMASREQ or UARTRXDMABREQ, are disabled when the UART error interrupt is asserted.

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