Move Transceiver::demodulate() to sigProcLib to make it reusable.
Change-Id: I2cad47160e53f65612bd1da8998c83a0a22bce9b
diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp
index d57f8b4..467a203 100644
--- a/Transceiver52M/sigProcLib.cpp
+++ b/Transceiver52M/sigProcLib.cpp
@@ -2137,6 +2137,15 @@
return bits;
}
+SoftVector *demodAnyBurst(signalVector &burst, int sps, complex amp,
+ float toa, CorrType type)
+{
+ if (type == EDGE)
+ return demodEdgeBurst(burst, sps, amp, toa);
+ else
+ return demodGmskBurst(burst, sps, amp, toa);
+}
+
bool sigProcLibSetup()
{
initTrigTables();