Implementation of the RxTimingSetupReq LoRaWAN MAC command. More...
#include "lorawan-mac-command.h"
Inheritance diagram for ns3::RxTimingSetupReq:
Collaboration diagram for ns3::RxTimingSetupReq:Public Member Functions | |
| RxTimingSetupReq () | |
| RxTimingSetupReq (uint8_t delay) | |
| Constructor providing initialization of all parameters. More... | |
| virtual uint8_t | Deserialize (Buffer::Iterator &start) |
| Deserialize the buffer into a MAC command. More... | |
| Time | GetDelay (void) |
| Get the first window delay as a Time instance. 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 | |
| uint8_t | m_delay |
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 RxTimingSetupReq LoRaWAN MAC command.
Definition at line 532 of file lorawan-mac-command.h.
| ns3::RxTimingSetupReq::RxTimingSetupReq | ( | ) |
Definition at line 1001 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::RX_TIMING_SETUP_REQ.
| ns3::RxTimingSetupReq::RxTimingSetupReq | ( | uint8_t | delay | ) |
Constructor providing initialization of all parameters.
| delay | The delay encoded in this MAC command. |
Definition at line 1009 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::RX_TIMING_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 1030 of file lorawan-mac-command.cc.
References m_delay, and ns3::LorawanMacCommand::m_serializedSize.
| Time ns3::RxTimingSetupReq::GetDelay | ( | void | ) |
Get the first window delay as a Time instance.
Definition at line 1051 of file lorawan-mac-command.cc.
References m_delay.
|
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 1043 of file lorawan-mac-command.cc.
|
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 1019 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::GetCIDFromLorawanMacCommand(), ns3::LorawanMacCommand::m_commandType, and m_delay.
Here is the call graph for this function:
|
private |
Definition at line 556 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetDelay(), and Serialize().