Move Transceiver::detectBurst() to sigProcLib to make it reusable.
Change-Id: I3cbe8e6e4f39dde02c945e6c9086c040e276845c
diff --git a/Transceiver52M/sigProcLib.h b/Transceiver52M/sigProcLib.h
index 7bdbde8..6413b47 100644
--- a/Transceiver52M/sigProcLib.h
+++ b/Transceiver52M/sigProcLib.h
@@ -255,6 +255,28 @@
unsigned max_toa);
/**
+ 8-PSK/GMSK/RACH burst detector
+ @param burst The received GSM burst of interest
+ @param tsc Midamble type (0..7) also known as TSC
+ @param threshold The threshold that the received burst's post-correlator SNR is compared against to determine validity.
+ @param sps The number of samples per GSM symbol.
+ @param amplitude The estimated amplitude of received TSC burst.
+ @param toa The estimate time-of-arrival of received TSC burst (in symbols).
+ @param max_toa The maximum expected time-of-arrival (in symbols).
+ @return positive value (CorrType) if threshold value is reached,
+ negative value (-SignalError) on error,
+ zero (SIGERR_NONE) if no burst is detected
+*/
+int detectAnyBurst(signalVector &burst,
+ unsigned tsc,
+ float threshold,
+ int sps,
+ CorrType type,
+ complex &,
+ float &toa,
+ unsigned max_toa);
+
+/**
Downsample 4 SPS to 1 SPS using a polyphase filterbank
@param burst Input burst of at least 624 symbols
@return Decimated signal vector of 156 symbols