laforge
/
openbts-osmo
Archived
1
0
Fork 0

gsm: Save time of received frame for later use in XCCHL1Decoder

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2010-07-15 20:51:29 +02:00
parent 908bc39f5f
commit 3c7ad29fa8
2 changed files with 5 additions and 0 deletions

View File

@ -568,6 +568,10 @@ bool XCCHL1Decoder::processBurst(const RxBurst& inBurst)
inBurst.data1().copyToSegment(mI[B],0);
inBurst.data2().copyToSegment(mI[B],57);
// If the burst index is 0, save the time
if (B==0)
mReadTime = inBurst.time();
// If the burst index is 3, then this is the last burst in the L2 frame.
// Return true to indicate that we are ready to deinterleave.
return B==3;

View File

@ -482,6 +482,7 @@ class XCCHL1Decoder : public L1Decoder {
BitVector mD; ///< d[], as per GSM 05.03 2.2
//@}
GSM::Time mReadTime; ///< timestamp of the first burst
unsigned mRSSIHistory[4];
public: