diff options
author | Thomas Tsou <tom@tsou.cc> | 2014-04-16 23:10:12 -0400 |
---|---|---|
committer | Thomas Tsou <tom@tsou.cc> | 2014-10-06 10:35:29 -0700 |
commit | 14bb9c923d8c967e8ce114a868923e9566be51e5 (patch) | |
tree | 4e2b1724ff032d870468f968f395bee767cefdf0 /Transceiver52M/Transceiver.h | |
parent | c7f36c282a917a4718f9b116ba59d2daffa16eb2 (diff) |
Transceiver52M: Add FCCH based frequency correction
Enable frequency detection and correction by buffering the previous
frame to allow FCCH measurement and compensation after frame timing is
locked using the SCH. When the SCH is detected and symbol timing
matched, measure the FCCH burst from one frame prior and compensate by
baseband tuning the DDC on the device. Avoid appying frequency
corrections to the RF portion due to possible tuning delays, which is
not an issue with DDC tuning.
Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/Transceiver.h')
-rw-r--r-- | Transceiver52M/Transceiver.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h index 170af77..8f3e47b 100644 --- a/Transceiver52M/Transceiver.h +++ b/Transceiver52M/Transceiver.h @@ -80,7 +80,11 @@ struct TransceiverState { /* Received noise energy levels */ float mNoiseLev; - noiseVector mNoises; + avgVector mNoises; + avgVector mFreqOffsets; + + /* Store pointers to previous frame */ + radioVector *prevFrame[8]; /* Transceiver mode */ int mode; @@ -156,6 +160,7 @@ private: complex &, float &toa); bool decodeSCH(SoftVector *burst, GSM::Time *time); + bool correctFCCH(TransceiverState *state, signalVector *burst); /** Detect normal bursts */ bool detectTSC(TransceiverState *state, |