This control message is used to give time, power and frequency correction to UTs. More...
#include "satellite-control-message.h"
Inheritance diagram for ns3::SatCmtMessage:
Collaboration diagram for ns3::SatCmtMessage:Public Member Functions | |
| SatCmtMessage () | |
| Constructor for SatCmtMessage. More... | |
| ~SatCmtMessage () | |
| Destructor for SatCmtMessage. More... | |
| int16_t | GetBurstTimeCorrection () const |
| Get the burst time correction. More... | |
| int16_t | GetFrequencyCorrection () const |
| Get the frequency correction. More... | |
| uint8_t | GetGroupId () const |
| Get the group ID. More... | |
| virtual TypeId | GetInstanceTypeId (void) const |
| Get the type ID of instance. More... | |
| uint8_t | GetLogonId () const |
| Get the logon ID. More... | |
| SatControlMsgTag::SatControlMsgType_t | GetMsgType () const |
| Get type of the message. More... | |
| uint8_t | GetPowerCorrection () const |
| Get the powercorrection. More... | |
| virtual uint32_t | GetSizeInBytes () const |
| Get real size of the message. More... | |
| void | SetBurstTimeCorrection (int32_t burstTimeCorrection) |
| Set the burst time correction. More... | |
| void | SetFrequencyCorrection (int16_t frequencyCorrection) |
| Set the frequency correction. More... | |
| void | SetGroupId (uint8_t groupId) |
| Set the group ID. More... | |
| void | SetLogonId (uint8_t logonId) |
| Set the logon ID. More... | |
| void | SetPowerCorrection (uint8_t powerCorrection) |
| Set the power correction. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| methods derived from base classes More... | |
Private Attributes | |
| int8_t | m_burstTimeCorrection |
| uint8_t | m_burstTimeScaling |
| int16_t | m_frequencyCorrection |
| uint8_t | m_groupId |
| uint8_t | m_logonId |
| uint8_t | m_powerCorrection |
This control message is used to give time, power and frequency correction to UTs.
Flags are not used here, if no information is needed for a field, leave it to zero.
Definition at line 1261 of file satellite-control-message.h.
| ns3::SatCmtMessage::SatCmtMessage | ( | ) |
Constructor for SatCmtMessage.
Definition at line 1102 of file satellite-control-message.cc.
| ns3::SatCmtMessage::~SatCmtMessage | ( | ) |
Destructor for SatCmtMessage.
Definition at line 1113 of file satellite-control-message.cc.
| int16_t ns3::SatCmtMessage::GetBurstTimeCorrection | ( | ) | const |
Get the burst time correction.
Definition at line 1143 of file satellite-control-message.cc.
References m_burstTimeCorrection, and m_burstTimeScaling.
| int16_t ns3::SatCmtMessage::GetFrequencyCorrection | ( | ) | const |
Get the frequency correction.
Definition at line 1201 of file satellite-control-message.cc.
References m_frequencyCorrection.
| uint8_t ns3::SatCmtMessage::GetGroupId | ( | ) | const |
Get the group ID.
Definition at line 1119 of file satellite-control-message.cc.
References m_groupId.
|
virtual |
Get the type ID of instance.
Definition at line 1095 of file satellite-control-message.cc.
References GetTypeId().
Here is the call graph for this function:| uint8_t ns3::SatCmtMessage::GetLogonId | ( | ) | const |
Get the logon ID.
Definition at line 1131 of file satellite-control-message.cc.
References m_logonId.
|
inlinevirtual |
Get type of the message.
Implements ns3::SatControlMessage.
Definition at line 1290 of file satellite-control-message.h.
References ns3::SatControlMsgTag::SAT_CMT_CTRL_MSG.
| uint8_t ns3::SatCmtMessage::GetPowerCorrection | ( | ) | const |
Get the powercorrection.
Information of power control flag is the MSB of the result. The 7 remaining bits are the power correction (if flag is 1) or EsN0 (otherwise).
Definition at line 1189 of file satellite-control-message.cc.
References m_powerCorrection.
|
virtual |
Get real size of the message.
Implements ns3::SatControlMessage.
Definition at line 1213 of file satellite-control-message.cc.
|
static |
methods derived from base classes
Definition at line 1087 of file satellite-control-message.cc.
Referenced by GetInstanceTypeId().
Here is the caller graph for this function:| void ns3::SatCmtMessage::SetBurstTimeCorrection | ( | int32_t | burstTimeCorrection | ) |
Set the burst time correction.
| burstTimeCorrection | The burst time correction |
Definition at line 1149 of file satellite-control-message.cc.
References m_burstTimeCorrection, and m_burstTimeScaling.
| void ns3::SatCmtMessage::SetFrequencyCorrection | ( | int16_t | frequencyCorrection | ) |
Set the frequency correction.
| frequencyCorrection | The frequency correction |
Definition at line 1207 of file satellite-control-message.cc.
References m_frequencyCorrection.
| void ns3::SatCmtMessage::SetGroupId | ( | uint8_t | groupId | ) |
Set the group ID.
| groupId | The group ID |
Definition at line 1125 of file satellite-control-message.cc.
References m_groupId.
| void ns3::SatCmtMessage::SetLogonId | ( | uint8_t | logonId | ) |
Set the logon ID.
| logonId | The logon ID |
Definition at line 1137 of file satellite-control-message.cc.
References m_logonId.
| void ns3::SatCmtMessage::SetPowerCorrection | ( | uint8_t | powerCorrection | ) |
Set the power correction.
| powerCorrection | The power correction. Information of power control flag is the MSB of the parameter. The 7 remaining bits are the power correction (if flag is 1) or EsN0 (otherwise). |
Definition at line 1195 of file satellite-control-message.cc.
References m_powerCorrection.
|
private |
Definition at line 1369 of file satellite-control-message.h.
Referenced by GetBurstTimeCorrection(), and SetBurstTimeCorrection().
|
private |
Definition at line 1368 of file satellite-control-message.h.
Referenced by GetBurstTimeCorrection(), and SetBurstTimeCorrection().
|
private |
Definition at line 1371 of file satellite-control-message.h.
Referenced by GetFrequencyCorrection(), and SetFrequencyCorrection().
|
private |
Definition at line 1366 of file satellite-control-message.h.
Referenced by GetGroupId(), and SetGroupId().
|
private |
Definition at line 1367 of file satellite-control-message.h.
Referenced by GetLogonId(), and SetLogonId().
|
private |
Definition at line 1370 of file satellite-control-message.h.
Referenced by GetPowerCorrection(), and SetPowerCorrection().