Skip to main content

Module stream

Module stream 

Source
Expand description

Byte-stream buffer for oveRTOS.

Stream<N> is a lock-free ring buffer for passing arbitrary byte sequences between threads or between ISR and thread contexts. Unlike crate::Queue, which transfers discrete items, a Stream treats data as a continuous byte flow with a configurable receive-trigger threshold.

Structsยง

Stream
Byte-oriented stream buffer with compile-time buffer size.
StreamStorage
Caller-owned storage + byte buffer for a Stream in zero-heap mode. Declare in a static and pass &STORAGE to Stream::create; in heap mode it is ignored. See crate::MutexStorage; this one additionally embeds the [u8; N] ring buffer the stream needs.