Go to the documentation of this file.
35 #ifndef _NO_OS_CIRCULAR_BUFFER_H_
36 #define _NO_OS_CIRCULAR_BUFFER_H_
90 uint32_t nb_elements);
92 uint32_t nb_elements);
95 uint32_t raw_size_to_write,
97 uint32_t *raw_size_avilable);
101 uint32_t raw_size_to_read,
103 uint32_t *raw_size_avilable);
106 #endif //_NO_OS_CIRCULAR_BUFFER_H_
struct no_os_cb_ptr read
Definition: no_os_circular_buffer.h:75
Circular buffer pointer.
Definition: no_os_circular_buffer.h:52
uint32_t idx
Definition: no_os_circular_buffer.h:54
int8_t * buff
Definition: no_os_circular_buffer.h:71
int32_t no_os_cb_prepare_async_write(struct no_os_circular_buffer *desc, uint32_t raw_size_to_write, void **write_buff, uint32_t *raw_size_avilable)
uint32_t size
Definition: no_os_circular_buffer.h:69
int32_t no_os_cb_end_async_write(struct no_os_circular_buffer *desc)
bool async_started
Definition: no_os_circular_buffer.h:58
uint32_t async_size
Definition: no_os_circular_buffer.h:60
int32_t no_os_cb_prepare_async_read(struct no_os_circular_buffer *desc, uint32_t raw_size_to_read, void **read_buff, uint32_t *raw_size_avilable)
int32_t no_os_cb_init(struct no_os_circular_buffer **desc, uint32_t size)
int32_t no_os_cb_remove(struct no_os_circular_buffer *desc)
int32_t no_os_cb_cfg(struct no_os_circular_buffer *desc, int8_t *buf, uint32_t size)
int32_t no_os_cb_write(struct no_os_circular_buffer *desc, const void *data, uint32_t nb_elements)
Circular buffer descriptor.
Definition: no_os_circular_buffer.h:67
int32_t no_os_cb_size(struct no_os_circular_buffer *desc, uint32_t *size)
struct no_os_cb_ptr write
Definition: no_os_circular_buffer.h:73
int32_t no_os_cb_end_async_read(struct no_os_circular_buffer *desc)
uint32_t spin_count
Definition: no_os_circular_buffer.h:56
int32_t no_os_cb_read(struct no_os_circular_buffer *desc, void *data, uint32_t nb_elements)