Data Fields
circular_float_buffer_t Struct Reference

## Data Fields
float * | buffer
uint16_t | write_idx
uint16_t | capacity

## Detailed Description

Circular buffer. Usually contains a "length" to keep track of the number of valid elements, But that was not needed here.

Definition at line 47 of file example_vibration.c.

## Field Documentation

## ◆ buffer

float* circular_float_buffer_t::buffer

Definition at line 49 of file example_vibration.c.

## ◆ capacity

uint16_t circular_float_buffer_t::capacity

The maximum number of elements the buffer can hold

Definition at line 55 of file example_vibration.c.

## ◆ write_idx

uint16_t circular_float_buffer_t::write_idx

The next index to write to. Starts at 0 and grows up to 'capacity' before wrapping

Definition at line 52 of file example_vibration.c.

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

- Src/use_cases/example_apps/example_vibration.c