sigProcLib: make energyDetect() simpler by returning actual energy.
Change-Id: I9bf97f2dc03fea9bebcf43198dfb05f6e4694e9c
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 @@
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.