Implementation of the RxParamSetupReq LoRaWAN MAC command. More...
#include "lorawan-mac-command.h"
Public Member Functions | |
RxParamSetupReq () | |
RxParamSetupReq (uint8_t rx1DrOffset, uint8_t rx2DataRate, double frequency) | |
Constructor providing initialization of all fields. More... | |
virtual uint8_t | Deserialize (Buffer::Iterator &start) |
Deserialize the buffer into a MAC command. More... | |
double | GetFrequency (void) |
Get this command's frequency. More... | |
uint8_t | GetRx1DrOffset (void) |
Get this command's Rx1DrOffset parameter. More... | |
uint8_t | GetRx2DataRate (void) |
Get this command's Rx2DataRate parameter. More... | |
virtual void | Print (std::ostream &os) const |
Print the contents of this MAC command in human-readable format. More... | |
virtual void | Serialize (Buffer::Iterator &start) const |
Serialize the contents of this MAC command into a buffer, according to the LoRaWAN standard. More... | |
Public Member Functions inherited from ns3::LorawanMacCommand | |
LorawanMacCommand () | |
virtual | ~LorawanMacCommand () |
virtual enum MacCommandType | GetCommandType (void) const |
Get the commandType of this MAC command. More... | |
virtual uint8_t | GetSerializedSize (void) const |
Get serialized length of this MAC command. More... | |
Private Attributes | |
double | m_frequency |
The frequency in Hz More... | |
uint8_t | m_rx1DrOffset |
uint8_t | m_rx2DataRate |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::LorawanMacCommand | |
static uint8_t | GetCIDFromLorawanMacCommand (enum MacCommandType commandType) |
Get the CID that corresponds to this MAC command. More... | |
static TypeId | GetTypeId (void) |
Protected Attributes inherited from ns3::LorawanMacCommand | |
enum MacCommandType | m_commandType |
The type of this command. More... | |
uint8_t | m_serializedSize |
This MAC command's serialized size. More... | |
Implementation of the RxParamSetupReq LoRaWAN MAC command.
Definition at line 346 of file lorawan-mac-command.h.
ns3::RxParamSetupReq::RxParamSetupReq | ( | ) |
Definition at line 558 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::RX_PARAM_SETUP_REQ.
ns3::RxParamSetupReq::RxParamSetupReq | ( | uint8_t | rx1DrOffset, |
uint8_t | rx2DataRate, | ||
double | frequency | ||
) |
Constructor providing initialization of all fields.
rx1DrOffset | The Data Rate offset to use for the first receive window. |
rx2DataRate | The Data Rate to use for the second receive window. |
frequency | The frequency in Hz to use for the second receive window. |
Definition at line 566 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::RX_PARAM_SETUP_REQ.
|
virtual |
Deserialize the buffer into a MAC command.
start | A pointer to the buffer that contains the serialized command. |
Implements ns3::LorawanMacCommand.
Definition at line 606 of file lorawan-mac-command.cc.
References m_frequency, m_rx1DrOffset, m_rx2DataRate, and ns3::LorawanMacCommand::m_serializedSize.
double ns3::RxParamSetupReq::GetFrequency | ( | void | ) |
Get this command's frequency.
Definition at line 654 of file lorawan-mac-command.cc.
References m_frequency.
uint8_t ns3::RxParamSetupReq::GetRx1DrOffset | ( | void | ) |
Get this command's Rx1DrOffset parameter.
Definition at line 638 of file lorawan-mac-command.cc.
References m_rx1DrOffset.
uint8_t ns3::RxParamSetupReq::GetRx2DataRate | ( | void | ) |
Get this command's Rx2DataRate parameter.
Definition at line 646 of file lorawan-mac-command.cc.
References m_rx2DataRate.
|
virtual |
Print the contents of this MAC command in human-readable format.
os | The std::ostream instance on which to print the MAC command. |
Implements ns3::LorawanMacCommand.
Definition at line 627 of file lorawan-mac-command.cc.
References m_frequency, m_rx1DrOffset, and m_rx2DataRate.
|
virtual |
Serialize the contents of this MAC command into a buffer, according to the LoRaWAN standard.
start | A pointer to the buffer into which to serialize the command. |
Implements ns3::LorawanMacCommand.
Definition at line 589 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::GetCIDFromLorawanMacCommand(), ns3::LorawanMacCommand::m_commandType, m_frequency, m_rx1DrOffset, and m_rx2DataRate.
|
private |
The frequency in Hz
Definition at line 388 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetFrequency(), Print(), and Serialize().
|
private |
Definition at line 386 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetRx1DrOffset(), Print(), and Serialize().
|
private |
Definition at line 387 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetRx2DataRate(), Print(), and Serialize().