Type Alias riot_sys::tsrb_t

source ·
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

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes