48 #define RINGBUF_VAR_INIT(bufp, buf_len) \
97 #endif // RF_RINGBUF_H_
void ringbuf_putchar(void *rb, char c)
Insert a character into the ring buffer.
int ringbuf_get(ringbuf_t *rb)
Extract a byte from the ring buffer.
bool ringbuf_empty(ringbuf_t *rb)
Test whether the ring buffer contains any data.
bool ringbuf_put(ringbuf_t *rb, uint8_t d)
Insert a byte into the ring buffer.
void ringbuf_init(ringbuf_t *rb, void *bufp, size_t buf_len)
Runtime initializer for a ring buffer descriptor.