size_t buffer_stream_get_overrun_count(BufferStream *buffer_stream)
Get stream overrun count.
Definition buffer_stream.c:125
uint8_t * buffer_get_data(Buffer *buffer)
Get buffer data pointer.
Definition buffer_stream.c:31
size_t buffer_get_size(Buffer *buffer)
Get buffer size.
Definition buffer_stream.c:35
void buffer_stream_reset(BufferStream *buffer_stream)
Reset stream and buffer pool.
Definition buffer_stream.c:129
void buffer_reset(Buffer *buffer)
Reset buffer and send to free buffer pool.
Definition buffer_stream.c:39
Buffer * buffer_stream_receive(BufferStream *buffer_stream, uint32_t timeout)
Receive buffer from stream.
Definition buffer_stream.c:113
BufferStream * buffer_stream_alloc(size_t buffer_size, size_t buffers_count)
Allocate a new BufferStream instance.
Definition buffer_stream.c:44
bool buffer_stream_send_from_isr(BufferStream *buffer_stream, const uint8_t *data, size_t size)
Write data to buffer stream, from ISR context Data will be written to the buffer until the buffer is ...
Definition buffer_stream.c:83
void buffer_stream_free(BufferStream *buffer_stream)
Free a BufferStream instance.
Definition buffer_stream.c:63
Definition buffer_stream.c:3
Definition buffer_stream.c:10