summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/layer1/afc.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-02-18 16:46:36 +0100
committerHarald Welte <laforge@gnumonks.org>2010-02-18 16:46:36 +0100
commitfbe7b94c9c65f2df74acd5dff7503c9833ec2579 (patch)
tree5f47a597f2f396662719c5a76ac6bf26eda69f6c /src/target/firmware/include/layer1/afc.h
Initial import of OsmocomBB into git repository
Diffstat (limited to 'src/target/firmware/include/layer1/afc.h')
-rw-r--r--src/target/firmware/include/layer1/afc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/target/firmware/include/layer1/afc.h b/src/target/firmware/include/layer1/afc.h
new file mode 100644
index 00000000..2e927a50
--- /dev/null
+++ b/src/target/firmware/include/layer1/afc.h
@@ -0,0 +1,13 @@
+#ifndef _L1_AFC_H
+#define _L1_AFC_H
+
+/* Input a frequency error sample into the AFC averaging */
+void afc_input(int32_t freq_error, uint16_t arfcn, int valid);
+
+/* Update the AFC with a frequency error, bypassing averaging */
+void afc_correct(int16_t freq_error, uint16_t arfcn);
+
+/* Update DSP with new AFC DAC value to be used for next TDMA frame */
+void afc_load_dsp(void);
+
+#endif