diff options
| author | Piotr Krysik <perper@o2.pl> | 2009-06-30 23:03:33 +0200 | 
|---|---|---|
| committer | Piotr Krysik <perper@o2.pl> | 2009-06-30 23:03:33 +0200 | 
| commit | 8d2bc49fb9e0c9a5fbd75aa3cad207608e72bf99 (patch) | |
| tree | a32fdcd2e8e2b16cc725045d049ed94b3f675956 /src/lib/decoder/openbtsstuff/RxBurst.h | |
| parent | 8f97a59b21fd8d3ecd111ee770932d852e625d52 (diff) | |
moved gsm-receiver into directory - preparation to move to airprobe
Diffstat (limited to 'src/lib/decoder/openbtsstuff/RxBurst.h')
| -rw-r--r-- | src/lib/decoder/openbtsstuff/RxBurst.h | 69 | 
1 files changed, 0 insertions, 69 deletions
| diff --git a/src/lib/decoder/openbtsstuff/RxBurst.h b/src/lib/decoder/openbtsstuff/RxBurst.h deleted file mode 100644 index 4348fb8..0000000 --- a/src/lib/decoder/openbtsstuff/RxBurst.h +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef _RXBURST_H -#define _RXBURST_H - -#include "GSMCommon.h" -#include "BitVector.h" - -namespace GSM { - -/**@name Positions of stealing bits within a normal burst, GSM 05.03 3.1.4. */ -//@{ -static const unsigned gHlIndex = 60;		///< index of first stealing bit, GSM 05.03 3.1.4 -static const unsigned gHuIndex = 87;		///< index of second stealing bit, GSM 05.03 3.1.4 -//@} - -static const unsigned gSlotLen = 148;	///< number of symbols per slot, not counting guard periods - - -/** -	Class to represent one timeslot of channel bits with soft encoding. -*/ -class RxBurst : public SoftVector { - -	private: - -	Time mTime;				///< timeslot and frame on which this was received -//	float mTimingError;		///< Timing error in symbol steps, <0 means early. -//	float mRSSI;			///< RSSI estimate associated with the slot, dB wrt full scale. - -	public: - -	/** Wrap an RxBurst around an existing float array. */ -	RxBurst(float* wData, const Time &wTime) -		:SoftVector(wData,gSlotLen),mTime(wTime) -//		mTimingError(wTimingError),mRSSI(wRSSI) -	{ } - - -	Time time() const { return mTime; } - -	void time(const Time& wTime) { mTime = wTime; } -	 -//	float RSSI() const { return mRSSI; } - -//	float timingError() const { return mTimingError; } - -	/** Return a SoftVector alias to the first data field. */ -	const SoftVector data1() const { return segment(3, 57); } - -	/** Return a SoftVector alias to the second data field. */ -	const SoftVector data2() const { return segment(88, 57); } - -	/** Return upper stealing bit. */ -	bool Hu() const { return bit(gHuIndex); } - -	/** Return lower stealing bit. */ -	bool Hl() const { return bit(gHlIndex); } - -// 	friend std::ostream& operator<<(std::ostream& os, const RxBurst& ts); -}; - -// std::ostream& operator<<(std::ostream& os, const RxBurst& ts){ -//   os << "time=" << ts.time(); -//   os << " data=(" << (const SoftVector&)ts << ")" ; -//   return os; -// } - - -} -#endif | 
