MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
|
void byte_ring_init(byte_ring_state *state, uint8_t *buffer, size_t size)
Definition: byte_ring.c:7
void byte_ring_notify_written(byte_ring_state *state, size_t count)
Definition: byte_ring.c:111
size_t size
Definition: byte_ring.h:10
Definition: byte_ring.h:7
size_t byte_ring_pop(byte_ring_state *state, size_t count)
Definition: byte_ring.c:53
struct byte_ring_state byte_ring_state
uint8_t byte_ring_at(const byte_ring_state *state, size_t index)
Definition: byte_ring.c:46
size_t head
Definition: byte_ring.h:11
size_t byte_ring_count(const byte_ring_state *state)
Definition: byte_ring.c:29
size_t byte_ring_capacity(const byte_ring_state *state)
Definition: byte_ring.c:24
size_t tail
Definition: byte_ring.h:12
size_t byte_ring_get_write_ptr(byte_ring_state *state, uint8_t **ptr_out)
Definition: byte_ring.c:95
size_t byte_ring_copy_from_and_update(byte_ring_state *state, const uint8_t **bytes, size_t *count)
Definition: byte_ring.c:77
size_t byte_ring_copy_to(const byte_ring_state *state, uint8_t *buffer, size_t count)
Definition: byte_ring.c:64
size_t byte_ring_free_space(const byte_ring_state *state)
Definition: byte_ring.c:36
uint8_t * buffer
Definition: byte_ring.h:9
void byte_ring_clear(byte_ring_state *state)
Definition: byte_ring.c:18