diff options
Diffstat (limited to '')
-rw-r--r-- | Lab6.X/circBuffer.h | 19 |
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 + |