diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2017-03-15 23:23:36 +0300 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2017-03-22 18:09:00 +0000 |
commit | 1dd05cf35a8c5e3c2acfbc4e23e26d41ea4a9aa9 (patch) | |
tree | 9efd28ce2955b6cd045b3156d573d2c6c6784c66 /Transceiver52M/sigProcLib.h | |
parent | 14d13b67dcd4fa35b03cbbef0c5ddd2622b89155 (diff) |
sigProcLib: make energyDetect() simpler by returning actual energy.
Change-Id: I9bf97f2dc03fea9bebcf43198dfb05f6e4694e9c
Diffstat (limited to 'Transceiver52M/sigProcLib.h')
-rw-r--r-- | Transceiver52M/sigProcLib.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Transceiver52M/sigProcLib.h b/Transceiver52M/sigProcLib.h index 1b646cd..87c0229 100644 --- a/Transceiver52M/sigProcLib.h +++ b/Transceiver52M/sigProcLib.h @@ -176,17 +176,13 @@ void scaleVector(signalVector &x, complex scale); /** - Energy detector, checks to see if received burst energy is above a threshold. - @param rxBurst The received GSM burst of interest. + Rough energy estimator. + @param rxBurst A GSM burst. @param windowLength The number of burst samples used to compute burst energy - @param detectThreshold The detection threshold, a linear value. - @param avgPwr The average power of the received burst. - @return True if burst energy is above threshold. + @return The average power of the received burst. */ -bool energyDetect(signalVector &rxBurst, - unsigned windowLength, - float detectThreshold, - float *avgPwr = NULL); +float energyDetect(signalVector &rxBurst, + unsigned windowLength); /** RACH aka Access Burst correlator/detector. |