summaryrefslogtreecommitdiffstats
path: root/Src/osmoconbb/src/target/firmware/include/layer1/avg.h
diff options
context:
space:
mode:
authorTom2012-01-11 13:56:26 +0100
committerTom2012-01-11 13:56:26 +0100
commit959e9f97cdaac774b530a375a1fe8bcfe7ac1f5b (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Src/osmoconbb/src/target/firmware/include/layer1/avg.h
parentFirmware can now be loaded from GUI, threading problem fixed (diff)
downloadimsi-catcher-detection-959e9f97cdaac774b530a375a1fe8bcfe7ac1f5b.tar.gz
imsi-catcher-detection-959e9f97cdaac774b530a375a1fe8bcfe7ac1f5b.tar.xz
imsi-catcher-detection-959e9f97cdaac774b530a375a1fe8bcfe7ac1f5b.zip
cleanup
Diffstat (limited to 'Src/osmoconbb/src/target/firmware/include/layer1/avg.h')
-rw-r--r--Src/osmoconbb/src/target/firmware/include/layer1/avg.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/Src/osmoconbb/src/target/firmware/include/layer1/avg.h b/Src/osmoconbb/src/target/firmware/include/layer1/avg.h
deleted file mode 100644
index 6c5de17..0000000
--- a/Src/osmoconbb/src/target/firmware/include/layer1/avg.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef _L1_AVG_H
-#define _L1_AVG_H
-
-struct running_avg {
- /* configuration */
- uint16_t period; /* over how many samples to average */
- uint16_t min_valid;
-
- int32_t acc_val;
- uint16_t num_samples; /* how often did we try to sample? */
- uint16_t num_samples_valid; /* how often did we receive valid samples? */
-
- void (*outfn)(struct running_avg *, int32_t avg);
- void *priv;
-};
-
-/* input a new sample into the averaging process */
-void runavg_input(struct running_avg *ravg, int32_t val, int valid);
-
-/* check if sufficient samples have been obtained, and call outfn() */
-int runavg_check_output(struct running_avg *ravg);
-
-#endif /* _AVG_H */