Class adding methods linked to Lora, needed to be used in a satellite context. More...
#include "satellite-lora-phy-tx.h"
Public Types | |
typedef Callback< void > | TxFinishedCallback |
Type definition for a callback to call when a packet has finished sending. More... | |
Public Types inherited from ns3::SatPhyTx | |
enum | SatPhyTxMode_t { NORMAL , TRANSPARENT } |
enum | State { IDLE , TX , RECONFIGURING } |
PHY states. More... | |
Public Member Functions | |
SatLoraPhyTx () | |
Constructor and destructor. More... | |
virtual | ~SatLoraPhyTx () |
void | EndTx () |
bool | IsTransmitting () |
void | SetTxFinishedCallback (TxFinishedCallback callback) |
Set the callback to call after transmission of a packet. More... | |
void | StartTx (Ptr< SatSignalParameters > txParams) |
Start packet transmission to the channel. More... | |
Public Member Functions inherited from ns3::SatPhyTx | |
SatPhyTx () | |
Default constructor. More... | |
virtual | ~SatPhyTx () |
Destructor for SatPhyTx. More... | |
bool | CanTransmit (void) const |
Tell whether or not this channel can transmit data. More... | |
void | ClearChannel () |
virtual void | DoDispose () |
Dispose of this class instance. More... | |
double | GetAntennaGain (Ptr< MobilityModel > mobility) |
Get antenna gain based on position or in case that antenna pattern is not configured, maximum configured gain is return. More... | |
Ptr< SatChannel > | GetChannel () |
double | GetFadingValue (Address macAddress, SatEnums::ChannelType_t channelType) |
Get fading value. More... | |
Ptr< MobilityModel > | GetMobility () |
bool | IsTransmitting (void) const |
Tell whether or not this channel is transmitting data. More... | |
void | SetAntennaGainPattern (Ptr< SatAntennaGainPattern > agp, Ptr< SatMobilityModel > mobility) |
void | SetBeamId (uint32_t beamId) |
Set the beam id for all the transmissions from this SatPhyTx. More... | |
void | SetChannel (Ptr< SatChannel > c) |
void | SetDefaultFadingValue (double fadingValue) |
Function for setting the default fading value. More... | |
void | SetFadingContainer (Ptr< SatBaseFading > fadingContainer) |
Set fading container. More... | |
void | SetMaxAntennaGain_Db (double gain_db) |
Set the maximum Antenna gain in Db. More... | |
void | SetMobility (Ptr< MobilityModel > m) |
void | SetSatId (uint32_t satId) |
Set the satellite id for all the transmissions from this SatPhyTx. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::SatPhyTx | |
static TypeId | GetTypeId (void) |
inherited from Object More... | |
Private Attributes | |
bool | m_isTransmitting |
TxFinishedCallback | m_txFinishedCallback |
The callback to perform upon the end of a transmission. More... | |
Additional Inherited Members |
Class adding methods linked to Lora, needed to be used in a satellite context.
Definition at line 51 of file satellite-lora-phy-tx.h.
typedef Callback<void> ns3::SatLoraPhyTx::TxFinishedCallback |
Type definition for a callback to call when a packet has finished sending.
This callback is used by the MAC layer, to determine when to open a receive window.
Definition at line 69 of file satellite-lora-phy-tx.h.
ns3::SatLoraPhyTx::SatLoraPhyTx | ( | ) |
Constructor and destructor.
Definition at line 39 of file satellite-lora-phy-tx.cc.
|
virtual |
Definition at line 44 of file satellite-lora-phy-tx.cc.
|
virtual |
Reimplemented from ns3::SatPhyTx.
Definition at line 65 of file satellite-lora-phy-tx.cc.
References ns3::SatPhyTx::EndTx(), m_isTransmitting, and m_txFinishedCallback.
|
static |
Definition at line 33 of file satellite-lora-phy-tx.cc.
bool ns3::SatLoraPhyTx::IsTransmitting | ( | void | ) |
Definition at line 77 of file satellite-lora-phy-tx.cc.
References ns3::SatPhyTx::IsTransmitting(), and m_isTransmitting.
void ns3::SatLoraPhyTx::SetTxFinishedCallback | ( | TxFinishedCallback | callback | ) |
Set the callback to call after transmission of a packet.
This method is typically called by an upper MAC layer that wants to be notified after the transmission of a packet.
Definition at line 49 of file satellite-lora-phy-tx.cc.
References m_txFinishedCallback.
|
virtual |
Start packet transmission to the channel.
txParams | Transmission parameters for a packet |
Reimplemented from ns3::SatPhyTx.
Definition at line 55 of file satellite-lora-phy-tx.cc.
References m_isTransmitting, and ns3::SatPhyTx::StartTx().
|
private |
Definition at line 96 of file satellite-lora-phy-tx.h.
Referenced by EndTx(), IsTransmitting(), and StartTx().
|
private |
The callback to perform upon the end of a transmission.
Definition at line 94 of file satellite-lora-phy-tx.h.
Referenced by EndTx(), and SetTxFinishedCallback().