blob: ad5f1fd81155246cc47b02d2149786687fba4258 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|