#[repr(transparent)]pub struct StreamCtr(pub u32);
Expand description
FIFO stream control
Tuple Fields§
§0: u32
Implementations§
Source§impl StreamCtr
impl StreamCtr
Sourcepub const fn stream_ctr(&self) -> u32
pub const fn stream_ctr(&self) -> u32
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)
Sourcepub fn set_stream_ctr(&mut self, val: u32)
pub fn set_stream_ctr(&mut self, val: u32)
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)