summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/layer1/afc.h
blob: 2e927a509094fb1203bdd2d1c7623427ac0a963d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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