N4 Flight Software N4
Flight software used for the N4 flight computers
Loading...
Searching...
No Matches
ring_buffer.h File Reference
#include <Arduino.h>
#include <cstring>

Go to the source code of this file.

Classes

struct  ring_buffer
 

Macros

#define SIZE_OF_BUFFER   5
 

Functions

void ring_buffer_init (ring_buffer *)
 
void ring_buffer_put (ring_buffer *, float)
 
float ring_buffer_get (ring_buffer *r)
 
uint8_t ring_buffer_available (ring_buffer *r)
 
uint8_t ring_buffer_full (ring_buffer *r)
 
uint8_t ring_buffer_empty (ring_buffer *r)
 
void ring_buffer_flush (ring_buffer *r)
 

Detailed Description

Implements a ring buffer for apogee detection