8#include <ns3/simple-ref-count.h>
31class SfnSf :
public SimpleRefCount<SfnSf>
47 SfnSf(uint32_t frameNum, uint8_t sfNum, uint8_t slotNum, uint8_t numerology);
108 void Add(uint32_t slotN);
161 uint32_t m_frameNum{0};
162 uint8_t m_subframeNum{0};
163 uint8_t m_slotNum{0};
164 uint8_t m_numerology{255};
static SfnSf Decode(uint64_t sfn)
Decode the parameter and return a SfnSf.
uint8_t GetNumerology() const
GetNumerology.
uint8_t GetSubframe() const
GetSubframe.
uint64_t Normalize() const
Normalize the SfnSf in slot number.
uint32_t GetSlotPerSubframe() const
Get SlotPerSubframe.
SfnSf GetFutureSfnSf(uint32_t slotN)
Get a Future SfnSf.
static uint64_t Encode(const SfnSf &p)
Encode the parameter in a uint64_t.
uint64_t GetEncoding() const
Get encoding for this SfnSf.
void Add(uint32_t slotN)
Add to this SfnSf a number of slot indicated by the first parameter.
uint64_t GetEncodingWithSymStartRnti(uint8_t symStart, uint16_t rnti) const
Get an encoding of frame & slot number, plus starting OFDM symbol and RNTI.
bool operator<(const SfnSf &rhs) const
operator < (less than)
uint8_t GetSlot() const
GetSlot.
SfnSf()=default
constructor
bool operator==(const SfnSf &o) const
operator ==, compares frame, subframe, and slot
void FromEncoding(uint64_t sfn)
Fill the private fields with the value extracted from the parameter.
static uint32_t GetSubframesPerFrame()
uint32_t GetFrame() const
GetFrame.