aboutsummaryrefslogtreecommitdiffstats
path: root/GSM
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2014-04-16 19:36:30 -0400
committerThomas Tsou <tom@tsou.cc>2014-10-06 10:35:29 -0700
commit1189019c30c1208c95868cb6998f6b7af25d2c45 (patch)
treeeef1039c2843cce3b570e2ef8f5dff20ea6ffab8 /GSM
parent187225cf337244ad7061745b7834a027e44855be (diff)
Transceiver52M: Add SCH detection capability
Use similar approach for detecting normal and RACH bursts, but apply a sample shift after detection in order to gradually zero the measured timing offset. SCH synchronization sequence and setup are added similar to RACH detection with the main difference, aside being the SCH runs full length of the burst. History is also added to accommodate full length burst correlation. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'GSM')
-rw-r--r--GSM/GSMCommon.cpp2
-rw-r--r--GSM/GSMCommon.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/GSM/GSMCommon.cpp b/GSM/GSMCommon.cpp
index 87f5ab2..e389e96 100644
--- a/GSM/GSMCommon.cpp
+++ b/GSM/GSMCommon.cpp
@@ -45,6 +45,8 @@ const BitVector GSM::gDummyBurst("0001111101101110110000010100100111000001001000
const BitVector GSM::gRACHSynchSequence("01001011011111111001100110101010001111000");
+const BitVector GSM::gSCHSynchSequence("1011100101100010000001000000111100101101010001010111011000011011");
+
int32_t GSM::FNDelta(int32_t v1, int32_t v2)
{
diff --git a/GSM/GSMCommon.h b/GSM/GSMCommon.h
index 80c5608..db315be 100644
--- a/GSM/GSMCommon.h
+++ b/GSM/GSMCommon.h
@@ -53,6 +53,8 @@ extern const BitVector gDummyBurst;
/** Random access burst synch. sequence */
extern const BitVector gRACHSynchSequence;
+/** Synchronization burst sync sequence */
+extern const BitVector gSCHSynchSequence;
/**@name Modulus operations for frame numbers. */
//@{