Implementation of the NewChannelReq LoRaWAN MAC command. More...
#include "lorawan-mac-command.h"
Inheritance diagram for ns3::NewChannelReq:
Collaboration diagram for ns3::NewChannelReq:Public Member Functions | |
| NewChannelReq () | |
| NewChannelReq (uint8_t chIndex, double frequency, uint8_t minDataRate, uint8_t maxDataRate) | |
| Constructor providing initialization of all parameters. More... | |
| virtual uint8_t | Deserialize (Buffer::Iterator &start) |
| Deserialize the buffer into a MAC command. More... | |
| uint8_t | GetChannelIndex (void) |
| double | GetFrequency (void) |
| uint8_t | GetMaxDataRate (void) |
| uint8_t | GetMinDataRate (void) |
| 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_chIndex |
| double | m_frequency |
| uint8_t | m_maxDataRate |
| uint8_t | m_minDataRate |
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 NewChannelReq LoRaWAN MAC command.
Definition at line 471 of file lorawan-mac-command.h.
| ns3::NewChannelReq::NewChannelReq | ( | ) |
Definition at line 840 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::NEW_CHANNEL_REQ.
| ns3::NewChannelReq::NewChannelReq | ( | uint8_t | chIndex, |
| double | frequency, | ||
| uint8_t | minDataRate, | ||
| uint8_t | maxDataRate | ||
| ) |
Constructor providing initialization of all parameters.
| chIndex | The index of the channel this command wants to operate on. |
| frequency | The new frequency for this channel. |
| minDataRate | The minimum data rate allowed on this channel. |
| maxDataRate | The minimum data rate allowed on this channel. |
Definition at line 848 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::m_commandType, ns3::LorawanMacCommand::m_serializedSize, and ns3::NEW_CHANNEL_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 880 of file lorawan-mac-command.cc.
References m_chIndex, m_frequency, m_maxDataRate, m_minDataRate, and ns3::LorawanMacCommand::m_serializedSize.
| uint8_t ns3::NewChannelReq::GetChannelIndex | ( | void | ) |
Definition at line 908 of file lorawan-mac-command.cc.
References m_chIndex.
| double ns3::NewChannelReq::GetFrequency | ( | void | ) |
Definition at line 916 of file lorawan-mac-command.cc.
References m_frequency.
| uint8_t ns3::NewChannelReq::GetMaxDataRate | ( | void | ) |
Definition at line 932 of file lorawan-mac-command.cc.
References m_maxDataRate.
| uint8_t ns3::NewChannelReq::GetMinDataRate | ( | void | ) |
Definition at line 924 of file lorawan-mac-command.cc.
References m_minDataRate.
|
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 900 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 864 of file lorawan-mac-command.cc.
References ns3::LorawanMacCommand::GetCIDFromLorawanMacCommand(), m_chIndex, ns3::LorawanMacCommand::m_commandType, m_frequency, m_maxDataRate, and m_minDataRate.
Here is the call graph for this function:
|
private |
Definition at line 496 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetChannelIndex(), and Serialize().
|
private |
Definition at line 497 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetFrequency(), and Serialize().
|
private |
Definition at line 499 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetMaxDataRate(), and Serialize().
|
private |
Definition at line 498 of file lorawan-mac-command.h.
Referenced by Deserialize(), GetMinDataRate(), and Serialize().