riot_sys

Function ringbuffer_get_one

Source
pub unsafe extern "C" fn ringbuffer_get_one(
    rb: *mut ringbuffer_t,
) -> c_int
Expand description

@brief Peek and remove oldest element from the ringbuffer. @param[in,out] rb Ringbuffer to operate on. @returns The oldest element that was added, or -1 if rb is empty.