aboutsummaryrefslogtreecommitdiffstats
path: root/Lab6.X/circBuffer.h
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2020-04-24 13:16:17 -0500
committerRossTheRoss <msattr@gmail.com>2020-04-24 13:16:17 -0500
commite9f3d4a56d10de933c9c22646a7b084ec3cff20f (patch)
treed1482ec0ae76500e2df3fa6cda276722a1aaa167 /Lab6.X/circBuffer.h
parentForget to add a bunch of things (diff)
downloadee2361-e9f3d4a56d10de933c9c22646a7b084ec3cff20f.tar
ee2361-e9f3d4a56d10de933c9c22646a7b084ec3cff20f.tar.gz
ee2361-e9f3d4a56d10de933c9c22646a7b084ec3cff20f.tar.bz2
ee2361-e9f3d4a56d10de933c9c22646a7b084ec3cff20f.tar.lz
ee2361-e9f3d4a56d10de933c9c22646a7b084ec3cff20f.tar.xz
ee2361-e9f3d4a56d10de933c9c22646a7b084ec3cff20f.tar.zst
ee2361-e9f3d4a56d10de933c9c22646a7b084ec3cff20f.zip
Add MORE stuff I forget to commit
Diffstat (limited to 'Lab6.X/circBuffer.h')
-rw-r--r--Lab6.X/circBuffer.h19
1 files changed, 19 insertions, 0 deletions
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 <xc.h> // 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
+