Introduce OsmoLchanBCCH
This commit is contained in:
parent
0e1fc5e809
commit
a7b5fd9c77
|
@ -122,6 +122,14 @@ OsmoCCCHLchan::OsmoCCCHLchan(OsmoTS *osmo_ts, unsigned int ss_nr)
|
||||||
connect();
|
connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OsmoBCCHLchan::OsmoBCCHLchan(OsmoTS *osmo_ts)
|
||||||
|
:OsmoNDCCHLogicalChannel(osmo_ts, 0)
|
||||||
|
{
|
||||||
|
assert(osmo_ts->getComb() == 5);
|
||||||
|
|
||||||
|
mL1 = new CCCHL1FEC(gBCCHMapping);
|
||||||
|
connect();
|
||||||
|
}
|
||||||
|
|
||||||
OsmoSDCCHLchan::OsmoSDCCHLchan(OsmoTS *osmo_ts, unsigned int ss_nr)
|
OsmoSDCCHLchan::OsmoSDCCHLchan(OsmoTS *osmo_ts, unsigned int ss_nr)
|
||||||
:OsmoLogicalChannel(osmo_ts, ss_nr)
|
:OsmoLogicalChannel(osmo_ts, ss_nr)
|
||||||
|
|
|
@ -257,6 +257,13 @@ class OsmoCCCHLchan : public OsmoNDCCHLogicalChannel {
|
||||||
ChannelType type() const { return CCCHType; }
|
ChannelType type() const { return CCCHType; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class OsmoBCCHLchan : public OsmoNDCCHLogicalChannel {
|
||||||
|
public:
|
||||||
|
OsmoBCCHLchan(OsmoTS *osmo_ts);
|
||||||
|
|
||||||
|
ChannelType type() const { return BCCHType; }
|
||||||
|
};
|
||||||
|
|
||||||
class OsmoTCHFACCHLchan : public OsmoLogicalChannel {
|
class OsmoTCHFACCHLchan : public OsmoLogicalChannel {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -305,13 +312,15 @@ protected:
|
||||||
SCHL1FEC mSCH;
|
SCHL1FEC mSCH;
|
||||||
FCCHL1FEC mFCCH;
|
FCCHL1FEC mFCCH;
|
||||||
RACHL1FEC mRACH;
|
RACHL1FEC mRACH;
|
||||||
|
OsmoBCCHLchan *mBCCH;
|
||||||
OsmoCCCHLchan *mCCCH[3];
|
OsmoCCCHLchan *mCCCH[3];
|
||||||
public:
|
public:
|
||||||
OsmoComb5TS(OsmoTRX &trx, unsigned int tn)
|
OsmoComb5TS(OsmoTRX &trx, unsigned int tn)
|
||||||
:OsmoTS(trx, tn, 5),
|
:OsmoTS(trx, tn, 5),
|
||||||
mSCH(),
|
mSCH(),
|
||||||
mFCCH(),
|
mFCCH(),
|
||||||
mRACH(gRACHC5Mapping) {
|
mRACH(gRACHC5Mapping)
|
||||||
|
{
|
||||||
ARFCNManager* radio = getARFCNmgr();
|
ARFCNManager* radio = getARFCNmgr();
|
||||||
|
|
||||||
mSCH.downstream(radio);
|
mSCH.downstream(radio);
|
||||||
|
@ -323,6 +332,8 @@ public:
|
||||||
mRACH.downstream(radio);
|
mRACH.downstream(radio);
|
||||||
mRACH.open();
|
mRACH.open();
|
||||||
|
|
||||||
|
mBCCH = new OsmoBCCHLchan(this);
|
||||||
|
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
mCCCH[i] = new OsmoCCCHLchan(this, i);
|
mCCCH[i] = new OsmoCCCHLchan(this, i);
|
||||||
mCCCH[i]->downstream(radio);
|
mCCCH[i]->downstream(radio);
|
||||||
|
|
Reference in New Issue