Type Alias rp2040_pac::xip_ctrl::stream_ctr::W

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

Register STREAM_CTR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn stream_ctr(&mut self) -> STREAM_CTR_W<'_, STREAM_CTR_SPEC>

Bits 0:21 - Write a nonzero value to start a streaming read. This will then
progress in the background, using flash idle cycles to transfer
a linear data block from flash to the streaming FIFO.
Decrements automatically (1 at a time) as the stream
progresses, and halts on reaching 0.
Write 0 to halt an in-progress stream, and discard any in-flight
read, so that a new stream can immediately be started (after
draining the FIFO and reinitialising STREAM_ADDR)

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