Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_ring_buffer_t Struct Reference

Ring buffer object definition. More...

#include <tr_ring_buffer.h>

Data Fields

uint8_t * p_buffer
 Address of the array allocated to the ring buffer.
 
size_t head
 Head of the ring buffer.
 
size_t tail
 Tail of the ring buffer.
 
size_t buffer_size
 Size of the array pointed to by p_buffer.
 
size_t count
 Current number of items in the ring buffer.
 

Detailed Description

Ring buffer object definition.

Field Documentation

◆ buffer_size

size_t tr_ring_buffer_t::buffer_size

Size of the array pointed to by p_buffer.

◆ count

size_t tr_ring_buffer_t::count

Current number of items in the ring buffer.

◆ head

size_t tr_ring_buffer_t::head

Head of the ring buffer.

◆ p_buffer

uint8_t* tr_ring_buffer_t::p_buffer

Address of the array allocated to the ring buffer.

◆ tail

size_t tr_ring_buffer_t::tail

Tail of the ring buffer.


The documentation for this struct was generated from the following file: