pelib  2.0.0
include/pelib/fifo_array.h File Reference
#include <pelib/template.h>
Include dependency graph for fifo_array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define pelib_cfifo_from_array(elem)   PELIB_CONCAT_3(pelib_, cfifo(elem), _from_array)
#define pelib_array_from_cfifo(elem)   PELIB_CONCAT_3(pelib_, array(elem), _from_cfifo)

Functions

 cfifo_t (CFIFO_ARRAY_T)*pelib_cfifo_from_array(CFIFO_ARRAY_T)(array_t(CFIFO_ARRAY_T)*)
 array_t (CFIFO_ARRAY_T)*pelib_array_from_cfifo(CFIFO_ARRAY_T)(cfifo_t(CFIFO_ARRAY_T)*)

Define Documentation

#define pelib_array_from_cfifo (   elem)    PELIB_CONCAT_3(pelib_, array(elem), _from_cfifo)

Definition at line 29 of file fifo_array.h.

#define pelib_cfifo_from_array (   elem)    PELIB_CONCAT_3(pelib_, cfifo(elem), _from_array)

Definition at line 28 of file fifo_array.h.


Function Documentation

Allocates and initialize an instance of pelib array from the data of a pelib fifo. The new array's capacity is the number of elements already in the fifo. The new array has no free element left (the append operation cannot succeed)

Definition at line 53 of file fifo_array.c.

Allocates and initialize an instance of pelib fifo from the data of a pelib array. The new fifo contains all data and free space in the pelib array

Definition at line 27 of file fifo_array.c.