1 #ifndef __LUNAIX_FIFO_BUF_H
2 #define __LUNAIX_FIFO_BUF_H
4 #include <lunaix/ds/mutex.h>
5 #include <lunaix/types.h>
21 fifo_backone(struct fifo_buf* fbuf);
24 fifo_putone(struct fifo_buf* fbuf, uint8_t data);
27 fifo_init(struct fifo_buf* buf, void* data_buffer, size_t buf_size, int flags);
30 fifo_write(struct fifo_buf* fbuf, void* data, size_t count);
33 fifo_read(struct fifo_buf* fbuf, void* buf, size_t count);
35 #endif /* __LUNAIX_FIFO_BUF_H */