HRI board firmware  v2.1
Microcontroller firmware of the board used during the HRI labs.
Data Fields
cb_CircularBuffer Struct Reference

Circular buffer structure. More...

#include <circular_buffer.h>

Data Fields

uint8_t * buffer
 Pointer to the byte buffer. More...
 
uint16_t bufferSize
 Size of buffer. More...
 
volatile uint16_t readIndex
 Index of the element at the front of the queue. More...
 
volatile uint16_t writeIndex
 Index of the next free location at the end of the queue. More...
 

Detailed Description

Circular buffer structure.

Field Documentation

◆ buffer

uint8_t* buffer

Pointer to the byte buffer.

◆ bufferSize

uint16_t bufferSize

Size of buffer.

◆ readIndex

volatile uint16_t readIndex

Index of the element at the front of the queue.

◆ writeIndex

volatile uint16_t writeIndex

Index of the next free location at the end of the queue.


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