![]() |
5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
|
Mac fixed-size Header for UL. More...
#include "nr-mac-header-fs-ul.h"
Public Member Functions | |
NrMacHeaderFsUl () | |
NrMacHeaderFsUl constructor. | |
~NrMacHeaderFsUl () override | |
~NrMacHeaderFsUl | |
TypeId | GetInstanceTypeId () const override |
GetInstanceTypeId. | |
bool | IsFixedSizeHeader () const |
Check if it really a fixed-size header. | |
void | SetLcId (uint8_t lcId) override |
Set the LC ID. | |
![]() | |
NrMacHeaderFs () | |
Constructor. | |
uint32_t | Deserialize (Buffer::Iterator start) override |
Deserialize from a buffer. | |
TypeId | GetInstanceTypeId () const override |
GetInstanceTypeId. | |
uint8_t | GetLcId () const |
Retrieve the LC ID of this header. | |
uint32_t | GetSerializedSize () const override |
Get the serialized size. | |
bool | operator== (const NrMacHeaderFs &o) const |
IsEqual. | |
void | Print (std::ostream &os) const override |
Print the struct on a ostream. | |
void | Serialize (Buffer::Iterator start) const override |
Serialize on a buffer. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
GetTypeId. | |
![]() | |
static TypeId | GetTypeId () |
GetTypeId. | |
Static Public Attributes | |
static const uint8_t | BIT_RATE_QUERY = 53 |
Recommended bit rate query. | |
static const uint8_t | C_RNTI = 58 |
C-RNTI. | |
static const uint8_t | CONFIGURED_GRANT_CONFIRMATION = 55 |
Configured Grant Confirmation. | |
static const uint8_t | SHORT_BSR = 61 |
Short BSR. | |
static const uint8_t | SHORT_TRUNCATED_BSR = 59 |
Short Truncated BSR. | |
static const uint8_t | SINGLE_ENTRY_PHR = 57 |
Single entry PHR. | |
![]() | |
static const uint8_t | PADDING = 63 |
Padding. | |
Additional Inherited Members | |
![]() | |
uint8_t | m_lcid {0} |
LC ID. | |
Mac fixed-size Header for UL.
This header performs some sanity check for the LCID value, but the functionality is almost the same as NrMacHeaderFs. Please note that, by standard, only some LCID can be used in UL transmissions.
Please refer to TS 38.321 section 6.1.2 for more information.
Users, don't use this header directly: you've been warned.
This header must be used to report some fixed-sized CE to the UE. An example is NrMacShortBsrCe.
Introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 16 bytes (on a 64-bit architecture).
Definition at line 31 of file nr-mac-header-fs-ul.h.
ns3::NrMacHeaderFsUl::NrMacHeaderFsUl | ( | ) |
NrMacHeaderFsUl constructor.
Definition at line 29 of file nr-mac-header-fs-ul.cc.
|
override |
~NrMacHeaderFsUl
Definition at line 34 of file nr-mac-header-fs-ul.cc.
|
override |
GetInstanceTypeId.
Definition at line 24 of file nr-mac-header-fs-ul.cc.
References GetTypeId().
|
static |
GetTypeId.
Definition at line 16 of file nr-mac-header-fs-ul.cc.
Referenced by GetInstanceTypeId().
bool ns3::NrMacHeaderFsUl::IsFixedSizeHeader | ( | ) | const |
Check if it really a fixed-size header.
Definition at line 47 of file nr-mac-header-fs-ul.cc.
References BIT_RATE_QUERY, C_RNTI, CONFIGURED_GRANT_CONFIRMATION, ns3::NrMacHeaderFs::m_lcid, ns3::NrMacHeaderFs::PADDING, SHORT_BSR, SHORT_TRUNCATED_BSR, and SINGLE_ENTRY_PHR.
Referenced by SetLcId().
|
overridevirtual |
Set the LC ID.
lcId | LC ID |
It will assert if the value is not inside the vector of allowed one. To not make any error, please use one of the pre-defined const values in this class.
Reimplemented from ns3::NrMacHeaderFs.
Definition at line 40 of file nr-mac-header-fs-ul.cc.
References IsFixedSizeHeader(), and ns3::NrMacHeaderFs::m_lcid.
Referenced by ns3::NrMacShortBsrCe::NrMacShortBsrCe().
|
static |
Recommended bit rate query.
Definition at line 57 of file nr-mac-header-fs-ul.h.
Referenced by IsFixedSizeHeader().
|
static |
|
static |
Configured Grant Confirmation.
Definition at line 58 of file nr-mac-header-fs-ul.h.
Referenced by IsFixedSizeHeader().
|
static |
Short BSR.
Definition at line 62 of file nr-mac-header-fs-ul.h.
Referenced by ns3::NrMacShortBsrCe::NrMacShortBsrCe(), ns3::NrMacShortBsrCe::Deserialize(), and IsFixedSizeHeader().
|
static |
Short Truncated BSR.
Definition at line 61 of file nr-mac-header-fs-ul.h.
Referenced by IsFixedSizeHeader().
|
static |
Single entry PHR.
Definition at line 59 of file nr-mac-header-fs-ul.h.
Referenced by IsFixedSizeHeader().