#[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)
Trait Implementations§
impl Copy for StreamCtr
impl Eq for StreamCtr
impl StructuralPartialEq for StreamCtr
Auto Trait Implementations§
impl Freeze for StreamCtr
impl RefUnwindSafe for StreamCtr
impl Send for StreamCtr
impl Sync for StreamCtr
impl Unpin for StreamCtr
impl UnwindSafe for StreamCtr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)