30 NS_LOG_COMPONENT_DEFINE(
"LoraDeviceAddressGenerator");
35 static TypeId tid = TypeId(
"ns3::LoraDeviceAddressGenerator")
37 .AddConstructor<LoraDeviceAddressGenerator>();
43 NS_LOG_FUNCTION(
this <<
unsigned(nwkId) << nwkAddr);
52 NS_LOG_FUNCTION_NOARGS();
63 NS_LOG_FUNCTION_NOARGS();
74 NS_LOG_FUNCTION_NOARGS();
NwkID m_currentNwkId
The current Network Id value.
LoraDeviceAddress GetNextAddress(void)
Get the LoraDeviceAddress that will be allocated upon a call to NextAddress.
NwkAddr m_currentNwkAddr
The current Network Address value.
LoraDeviceAddress NextNetwork(void)
Get the first address from the next network.
LoraDeviceAddressGenerator(const uint8_t nwkId=0, const uint32_t nwkAddr=0)
Initialise the base NwkID and the first NwkAddr to be used by the generator.
static TypeId GetTypeId(void)
LoraDeviceAddress NextAddress(void)
Allocate the next LoraDeviceAddress.
This class represents the device address of a LoraWAN End Device.
Class representing the Network Address component of a LoraDeviceAddress (25 bits)
void Set(uint32_t nwkAddr)
Set the NwkAddr, starting from a 32-bit representation of a 25-bit integer.
uint32_t Get(void) const
Get an uint32_t representation of the 25-bit network address.
uint8_t Get(void) const
Get an uint8_t representation of the 7-bit network ID.
void Set(uint8_t nwkId)
Set the NwkID, starting from a 8-bit representation of a 7-bit integer.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.