Contiki-NG
Loading...
Searching...
No Matches
ringbuf.h File Reference

Header file for the ring buffer library. More...

#include "contiki.h"

Go to the source code of this file.

Data Structures

struct  ringbuf
 Structure that holds the state of a ring buffer. More...
 

Functions

static void ringbuf_init (struct ringbuf *r, uint8_t *a, uint8_t size_power_of_two)
 Initialize a ring buffer.
 
int ringbuf_put (struct ringbuf *r, uint8_t c)
 Insert a byte into the ring buffer.
 
int ringbuf_get (struct ringbuf *r)
 Get a byte from the ring buffer.
 
int ringbuf_size (struct ringbuf *r)
 Get the size of a ring buffer.
 
int ringbuf_elements (struct ringbuf *r)
 Get the number of elements currently in the ring buffer.
 

Detailed Description

Header file for the ring buffer library.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file ringbuf.h.