GPS Device
Loading...
Searching...
No Matches
cbuf.c File Reference

Circular buffer implementation. More...

#include "cbuf.h"
#include "err.h"
#include <stdint.h>
Include dependency graph for cbuf.c:

Go to the source code of this file.

Functions

ERR_te cbuf_read (CBUF_HANDLE_ts *cbuf_handle, uint8_t *output_buf_o)
 Reads all available data from the circular buffer.
ERR_te cbuf_write (CBUF_HANDLE_ts *cbuf_handle, uint8_t *input_buf, uint32_t input_len)
 Writes data from an input buffer into the circular buffer.
ERR_te cbuf_len (CBUF_HANDLE_ts const *cbuf_handle, uint8_t *len_o)
 Returns the number of bytes currently stored in the circular buffer.

Detailed Description

Circular buffer implementation.

Author
github.com/Baksi675
Version
0.1
Date
2025-10-18

Definition in file cbuf.c.