blob: 74f83865506ec974590d80677efb563f8cc6b52b (
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(long newValue); // add a new value to the buffer
long getAvg(); // average all buffer vals
void initBuffer(); // set all buffer vals to zero
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
|