Contiki 3.x
ringbufindex.c File Reference

    ringbufindex library.
More...

#include <string.h>
#include "lib/ringbufindex.h"

Go to the source code of this file.

Detailed Description

    ringbufindex library.

Implements basic support for ring buffers of any type, as opposed to the core/lib/ringbuf module which is only for byte arrays. Simply returns index in the ringbuf rather than actual elements. The ringbuf size must be power of two. Like the original ringbuf, this module implements atomic put and get.

Author
Simon Duquennoy simon.nosp@m.duq@.nosp@m.sics..nosp@m.se based on Contiki's core/lib/ringbuf library by Adam Dunkels

Definition in file ringbufindex.c.