Jamie Satchell / Mbed OS JSatchell_SOFT253ReferredCoursework

Dependencies:   X_NUCLEO_COMMON

Fork of ReferredCoursework2016 by Stage-1 Students SoCEM

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers buffer.h Source File

buffer.h

00001 #ifndef BUFFER_H
00002 #define BUFFER_H
00003 #include "mbed.h"
00004 #include "rtos.h"
00005 
00006 //creates struct to store accelerometer data
00007 typedef struct {
00008   int32_t x;
00009   int32_t y;
00010   int32_t z;
00011 } AccelData;
00012 
00013 void log_push(AccelData data);
00014 AccelData log_get();
00015 void print_averages();
00016 #endif