summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2011-03-20 14:59:16 +0100
committerSylvain Munaut <tnt@246tNt.com>2011-03-20 14:59:16 +0100
commit937023be6ef8206104e6c7d82ac8312a7b988971 (patch)
tree61613cbac80eb397f23774178595a4bcd8cc0448 /src/target/firmware/include
parent331641d5689e531025f06285b8586131f1f3870d (diff)
fw/layer1: Adding TAO loop to correct TPU window offset
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/include')
-rw-r--r--src/target/firmware/include/layer1/sync.h1
-rw-r--r--src/target/firmware/include/layer1/toa.h10
2 files changed, 11 insertions, 0 deletions
diff --git a/src/target/firmware/include/layer1/sync.h b/src/target/firmware/include/layer1/sync.h
index 06ce6a00..879e4cfb 100644
--- a/src/target/firmware/include/layer1/sync.h
+++ b/src/target/firmware/include/layer1/sync.h
@@ -71,6 +71,7 @@ struct l1s_state {
/* The current TPU offset register */
uint32_t tpu_offset;
+ int32_t tpu_offset_correction;
/* TX parameters */
int8_t ta;
diff --git a/src/target/firmware/include/layer1/toa.h b/src/target/firmware/include/layer1/toa.h
new file mode 100644
index 00000000..dea9dd96
--- /dev/null
+++ b/src/target/firmware/include/layer1/toa.h
@@ -0,0 +1,10 @@
+#ifndef _L1_TOA_H
+#define _L1_TOA_H
+
+/* Input a qbits error sample into the TOA averaging */
+void toa_input(int32_t offset, uint32_t snr);
+
+/* Reset the TOA counters */
+void toa_reset(void);
+
+#endif