gsm: Add same ARFCN()/typeAndOffset() accessors to L1Decoder than L1Encoder
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
3c7ad29fa8
commit
b6b3f6ace1
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in New Issue