aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.h
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-11-14 15:52:04 -0500
committerThomas Tsou <tom@tsou.cc>2013-11-15 23:35:07 -0500
commita0179e37f8007ebad32aa3aa5288bc16112eae12 (patch)
treebc43a0db3f1c2a7537ebcf5ff1a980d029221b5b /Transceiver52M/Transceiver.h
parentef25dba4e7c0564053f949ae22af2dd055bd2439 (diff)
Transceiver52M: Use independent noise vectors for each channel
Each ARFCN channel may be independently configureted and possibly on separate hardware, so don't share a single vector for noise estimate calculations. Allow a non-pointer based iterator so we can get away with using the default copy constructor. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/Transceiver.h')
-rw-r--r--Transceiver52M/Transceiver.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h
index 30b2fd3..51b6e24 100644
--- a/Transceiver52M/Transceiver.h
+++ b/Transceiver52M/Transceiver.h
@@ -76,6 +76,10 @@ struct TransceiverState {
float SNRestimate[8];
float chanRespOffset[8];
complex chanRespAmplitude[8];
+
+ /* Received noise energy levels */
+ float mNoiseLev;
+ noiseVector mNoises;
};
/** The Transceiver class, responsible for physical layer of basestation */
@@ -114,9 +118,6 @@ private:
IDLE ///< timeslot is an idle (or dummy) burst
} CorrType;
- float mNoiseLev; ///< Average noise level
- noiseVector mNoises; ///< Vector holding running noise measurements
-
/** modulate and add a burst to the transmit queue */
void addRadioVector(size_t chan, BitVector &bits,
int RSSI, GSM::Time &wTime);