LteTypes.h Source File¶
|
Simu5G
|
LteTypes.h
46 inline std::ostream& operator<<(std::ostream& os, TypeName id) { os << +static_cast<UnderlyingType>(id); return os; } /* unary + : a uint8_t id is a number, not a character */ \
47 inline void doParsimPacking(omnetpp::cCommBuffer *buffer, TypeName d) { buffer->pack(num(d)); } \
48 inline void doParsimUnpacking(omnetpp::cCommBuffer *buffer, TypeName& d) { UnderlyingType tmp; buffer->unpack(tmp); d = TypeName(tmp); }
86// "no tunnel": TEIDs are handed out from 1 (see UserPlaneNodeControl::allocateTeid() and ConnectionControlEnb::allocateTeid())
111// TODO FIXME these conflict with DRB LCIDs (1..), and also 0 is reserved for CCCH (common control channel)
123inline bool isUlBsrLcid(LogicalCid lcid) { return num(lcid) >= BSR_UL_LCID_BASE && num(lcid) < BSR_UL_LCID_BASE + NUM_LCGS; }
124inline Lcg lcgFromBsrLcid(LogicalCid lcid) { ASSERT(isUlBsrLcid(lcid)); return Lcg(num(lcid) - BSR_UL_LCID_BASE); }
174 std::string str() const { return "MacCid(nodeId=" + std::to_string(num(nodeId_)) + ", lcid=" + std::to_string(num(lcid_)) + ")"; }
178 bool operator==(const MacCid& other) const { return nodeId_ == other.nodeId_ && lcid_ == other.lcid_; }
179 bool operator!=(const MacCid& other) const { return nodeId_ != other.nodeId_ || lcid_ != other.lcid_; }
212 std::string str() const { return "DrbKey(nodeId=" + std::to_string(num(nodeId_)) + ", drbId=" + std::to_string(num(drbId_)) + ")"; }
216 bool operator==(const DrbKey& other) const { return nodeId_ == other.nodeId_ && drbId_ == other.drbId_; }
Definition AlertReceiver.h:24
constexpr LogicalCid SHORT_BSR
Special LogicalCid values for Buffer Status Reports.
Definition LteTypes.h:112
MacNodeId X2NodeId
X2 node ID. It is equal to the eNodeB MAC Cell ID.
Definition LteTypes.h:69
constexpr Teid TEID_NONE
GTP-U Tunnel Endpoint Identifier (TS 29.281), chosen by the receiving end of the tunnel.
Definition LteTypes.h:87
constexpr LogicalCid LCID_NONE
Invalid/uninitialized LCID and DRB ID values.
Definition LteTypes.h:101
MacNodeId MacCellId
Cell node ID. It is numerically equal to eNodeB MAC node ID.
Definition LteTypes.h:66
unsigned short Rank
Connection Identifier: <MacNodeId,LogicalCid>
Definition LteTypes.h:130
constexpr Qfi QFI_NONE
Logical Connection Identifier (used in MAC layer)
Definition LteTypes.h:82
constexpr unsigned short NUM_LCGS
Logical Channel Group id, as reported in Buffer Status Reports.
Definition LteTypes.h:97
Generated by