pub type tsrb_t = tsrb;
Expand description
@brief thread-safe ringbuffer struct
Aliased Type§
struct tsrb_t {
pub buf: *mut u8,
pub size: u32,
pub reads: u32,
pub writes: u32,
}
Fields§
§buf: *mut u8
< Buffer to operate on.
size: u32
< Size of buffer, must be power of 2.
reads: u32
< total number of reads
writes: u32
< total number of writes