Implementation of the RxParamSetupAns LoRaWAN MAC command. More...
#include "lorawan-mac-command.h"
Public Member Functions | |
RxParamSetupAns () | |
RxParamSetupAns (bool rx1DrOffsetAck, bool rx2DataRateAck, bool channelAck) | |
Constructor with initialization of all parameters. More... | |
virtual uint8_t | Deserialize (Buffer::Iterator &start) |
Deserialize the buffer into a MAC command. 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 | |
bool | m_channelAck |
bool | m_rx1DrOffsetAck |
bool | m_rx2DataRateAck |
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 RxParamSetupAns LoRaWAN MAC command.
Definition at line 394 of file lorawan-mac-command.h.
ns3::RxParamSetupAns::RxParamSetupAns | ( | ) |
Definition at line 665 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::RX_PARAM_SETUP_ANS.
ns3::RxParamSetupAns::RxParamSetupAns | ( | bool | rx1DrOffsetAck, |
bool | rx2DataRateAck, | ||
bool | channelAck | ||
) |
Constructor with initialization of all parameters.
rx1DrOffsetAck | Whether or not the offset was correctly set. |
rx2DataRateAck | Whether or not the second slot data rate was correctly set. |
channelAck | Whether or not the second slot frequency was correctly set. |
Definition at line 673 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::RX_PARAM_SETUP_ANS.
|
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 697 of file lorawan-mac-command.cc.
References m_channelAck, m_rx1DrOffsetAck, m_rx2DataRateAck, and ns3::LorawanMacCommand::m_serializedSize.
|
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 714 of file lorawan-mac-command.cc.
References m_channelAck, m_rx1DrOffsetAck, and m_rx2DataRateAck.
|
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 685 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::GetCIDFromLorawanMacCommand(), m_channelAck, ns3::LorawanMacCommand::m_commandType, m_rx1DrOffsetAck, and m_rx2DataRateAck.
|
private |
Definition at line 414 of file lorawan-mac-command.h.
Referenced by Deserialize(), Print(), and Serialize().
|
private |
Definition at line 412 of file lorawan-mac-command.h.
Referenced by Deserialize(), Print(), and Serialize().
|
private |
Definition at line 413 of file lorawan-mac-command.h.
Referenced by Deserialize(), Print(), and Serialize().