|
ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
|
Generic fixed-size ring buffer state. More...
#include <ringbuffer.h>
Data Fields | |
| void * | buffer |
| void * | bufferEnd |
| size_t | capacity |
| size_t | count |
| size_t | itemSizeInByte |
| void * | head |
| void * | tail |
Generic fixed-size ring buffer state.
Definition at line 27 of file ringbuffer.h.
| void* Ringbuffer::buffer |
Start of raw buffer memory.
Definition at line 30 of file ringbuffer.h.
Referenced by RbInit(), RbPopFront(), RbPushBack(), and RbPushBackWrap().
| void* Ringbuffer::bufferEnd |
End pointer of raw buffer memory.
Definition at line 32 of file ringbuffer.h.
Referenced by RbInit(), RbPopFront(), RbPushBack(), and RbPushBackWrap().
| size_t Ringbuffer::capacity |
Number of storable elements.
Definition at line 34 of file ringbuffer.h.
Referenced by poll_queue_stats(), print_status_event(), RbInit(), RbPushBack(), RbPushBackWrap(), and tx_queue_enqueue_udp_frame().
| size_t Ringbuffer::count |
Current number of elements stored.
Definition at line 36 of file ringbuffer.h.
Referenced by poll_queue_stats(), print_status_event(), RbInit(), RbPopFront(), RbPushBack(), RbPushBackWrap(), tx_queue_enqueue_udp_frame(), tx_queue_get_count(), and tx_queue_is_empty().
| void* Ringbuffer::head |
Write cursor.
Definition at line 40 of file ringbuffer.h.
Referenced by RbInit(), RbPushBack(), and RbPushBackWrap().
| size_t Ringbuffer::itemSizeInByte |
Size in bytes of one element.
Definition at line 38 of file ringbuffer.h.
Referenced by RbInit(), RbPopFront(), RbPushBack(), and RbPushBackWrap().
| void* Ringbuffer::tail |
Read cursor.
Definition at line 42 of file ringbuffer.h.
Referenced by RbInit(), RbPopFront(), and RbPushBackWrap().