riot_sys::bindgen

Type Alias 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

Trait Implementations

Source§

impl Clone for tsrb

Source§

fn clone(&self) -> tsrb

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for tsrb

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for tsrb

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for tsrb