diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-06-09 20:52:11 -0400 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-06-10 23:13:33 -0400 |
commit | 030951695c3c78557cd27f19533daa412b3937a3 (patch) | |
tree | 266f5274cf913633a2ea61ae0d33d6ac89da722d /Transceiver52M/sigProcLib.h | |
parent | b721d6104d75dd6fb426fb3cdd4eaa0632ef4bbd (diff) |
sigProcLib: Abstract out common part of Normal/RACH burst detection.
As a side change - get rid of passing toa and amp arguments as pointers and use
references instead.
The commit doesn't change behaviour, but makes the code cleaner.
Diffstat (limited to 'Transceiver52M/sigProcLib.h')
-rw-r--r-- | Transceiver52M/sigProcLib.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Transceiver52M/sigProcLib.h b/Transceiver52M/sigProcLib.h index f7f6259..8685f2d 100644 --- a/Transceiver52M/sigProcLib.h +++ b/Transceiver52M/sigProcLib.h @@ -192,8 +192,8 @@ bool energyDetect(signalVector &rxBurst, int detectRACHBurst(signalVector &rxBurst, float detectThreshold, int sps, - complex *amplitude, - float* TOA); + complex &litude, + float &TOA); /** Normal burst correlator, detector, channel estimator. @@ -210,15 +210,15 @@ int detectRACHBurst(signalVector &rxBurst, @return positive if threshold value is reached, negative on error, zero otherwise */ int analyzeTrafficBurst(signalVector &rxBurst, - unsigned TSC, - float detectThreshold, - int sps, - complex *amplitude, - float *TOA, + unsigned TSC, + float detectThreshold, + int sps, + complex &litude, + float &TOA, unsigned maxTOA, bool requestChannel = false, - signalVector** channelResponse = NULL, - float *channelResponseOffset = NULL); + signalVector** channelResponse = NULL, + float *channelResponseOffset = NULL); /** Decimate a vector. |