laforge
/
openbts-osmo
Archived
1
0
Fork 0

gsm: Add same ARFCN()/typeAndOffset() accessors to L1Decoder than L1Encoder

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2010-07-15 20:52:27 +02:00
parent 3c7ad29fa8
commit b6b3f6ace1
2 changed files with 18 additions and 1 deletions

View File

@ -308,6 +308,19 @@ void L1Encoder::sendIdleFill()
unsigned L1Decoder::ARFCN() const
{
assert(mParent);
return mParent->ARFCN();
}
TypeAndOffset L1Decoder::typeAndOffset() const
{
return mMapping.typeAndOffset();
}
void L1Decoder::open()
{
mLock.lock();

View File

@ -295,8 +295,12 @@ class L1Decoder {
/** Accept an RxBurst and process it into the deinterleaver. */
virtual void writeLowSide(const RxBurst&) = 0;
/** Return the decoder timeslot number. */
/**@name Components of the channel description. */
//@{
unsigned TN() const { return mTN; }
unsigned ARFCN() const; ///< this comes from mUpstream
TypeAndOffset typeAndOffset() const; ///< this comes from mMapping
//@}
protected: