aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.cpp
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-04-20 08:42:58 +0300
committerTom Tsou <tom.tsou@ettus.com>2016-04-26 12:03:20 -0700
commit9664c3a6e7f6bb1f83c2a55d6e6b1c7b59a99024 (patch)
tree021332091f4fd52c6239c11b6e8279c73bfe8c62 /Transceiver52M/Transceiver.cpp
parent1ab5e7f7bce8d8f607ab911840f302d763d8c492 (diff)
transceiver: Do not pass transceiver state struct to function where it's not used.
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
-rw-r--r--Transceiver52M/Transceiver.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index a19d770..7f13a09 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -531,8 +531,8 @@ Transceiver::CorrType Transceiver::expectedCorrType(GSM::Time currTime,
}
}
-int Transceiver::detectBurst(TransceiverState *state, signalVector &burst,
- complex &amp, float &toa, CorrType type)
+int Transceiver::detectBurst(signalVector &burst,
+ complex &amp, float &toa, CorrType type)
{
float threshold = 5.0, rc = 0;
@@ -567,8 +567,7 @@ int Transceiver::detectBurst(TransceiverState *state, signalVector &burst,
/*
* Demodulate GMSK by direct rotation and soft slicing.
*/
-SoftVector *Transceiver::demodulate(TransceiverState *state,
- signalVector &burst, complex amp,
+SoftVector *Transceiver::demodulate(signalVector &burst, complex amp,
float toa, CorrType type)
{
if (type == EDGE)
@@ -666,7 +665,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime, double &RSSI, bool &i
}
/* Detect normal or RACH bursts */
- rc = detectBurst(state, *burst, amp, toa, type);
+ rc = detectBurst(*burst, amp, toa, type);
if (rc > 0) {
type = (CorrType) rc;
@@ -683,7 +682,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime, double &RSSI, bool &i
timingOffset = toa / mSPSRx;
- bits = demodulate(state, *burst, amp, toa, type);
+ bits = demodulate(*burst, amp, toa, type);
delete radio_burst;
return bits;