From e9f3d4a56d10de933c9c22646a7b084ec3cff20f Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Fri, 24 Apr 2020 13:16:17 -0500 Subject: Add MORE stuff I forget to commit --- Lab6.X/circBuffer.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Lab6.X/circBuffer.h (limited to 'Lab6.X/circBuffer.h') diff --git a/Lab6.X/circBuffer.h b/Lab6.X/circBuffer.h new file mode 100644 index 0000000..ad5f1fd --- /dev/null +++ b/Lab6.X/circBuffer.h @@ -0,0 +1,19 @@ +#ifndef CIRCBUFF_H +#define CIRCBUFF_H + +#include // include processor files - each processor file is guarded. + + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ +void putVal(int newValue); // add a new value to the buffer +int getAvg(); // average all buffer vals +void initBuffer(); // set all buffer vals to zero + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif + -- cgit v1.2.3