no-OS
fifo.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef FIFO_H_
40 #define FIFO_H_
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 
46 #include <stdint.h>
47 
48 /******************************************************************************/
49 /*************************** Types Declarations *******************************/
50 /******************************************************************************/
51 
56 struct fifo_element {
58  struct fifo_element *next;
60  char *data;
62  uint32_t len;
63 };
64 
65 /******************************************************************************/
66 /************************ Functions Declarations ******************************/
67 /******************************************************************************/
68 
69 /* Insert element to fifo tail. */
70 int32_t fifo_insert(struct fifo_element **p_fifo, char *buff, uint32_t len);
71 
72 /* Remove fifo head. */
73 struct fifo_element *fifo_remove(struct fifo_element *p_fifo);
74 
75 #endif /* FIFO_H_ */
fifo_element::next
struct fifo_element * next
Definition: fifo.h:58
fifo_element
Structure holding the fifo element parameters.
Definition: fifo.h:56
fifo_remove
struct fifo_element * fifo_remove(struct fifo_element *p_fifo)
fifo_element::len
uint32_t len
Definition: fifo.h:62
fifo_insert
int32_t fifo_insert(struct fifo_element **p_fifo, char *buff, uint32_t len)
fifo_element::data
char * data
Definition: fifo.h:60