28 NS_LOG_COMPONENT_DEFINE(
"SatLoraPhyRx");
30 NS_OBJECT_ENSURE_REGISTERED(SatLoraPhyRx);
35 static TypeId tid = TypeId(
"ns3::SatLoraPhyRx").SetParent<
SatPhyRx>();
51 NS_LOG_FUNCTION(
this);
60 NS_LOG_INFO(
"Dropping packet because device is in SLEEP state");
64 NS_LOG_INFO(
"Dropping packet because device is in TX state");
68 NS_LOG_INFO(
"Dropping packet because device is already in RX state");
113 NS_LOG_FUNCTION_NOARGS();
121 NS_LOG_FUNCTION_NOARGS();
131 NS_LOG_FUNCTION_NOARGS();
141 NS_LOG_FUNCTION_NOARGS();
virtual void StartRx(Ptr< SatSignalParameters > rxParams)
Start receiving a packet.
void SetSpreadingFactor(uint8_t sf)
Set the Spreading Factor this EndDevice will listen for.
void SetFrequency(double frequencyMHz)
Set the frequency this EndDevice will listen on.
SatLoraPhyRx()
Constructor and destructor.
@ SLEEP
The PHY layer is sleeping.
@ TX
The PHY layer is sending a packet.
@ RX
The PHY layer is receiving a packet.
@ STANDBY
The PHY layer is in STANDBY.
bool IsOnFrequency(double frequency)
Whether this device is listening on the specified frequency or not.
void SwitchToSleep(void)
Switch to the SLEEP state.
void SwitchToStandby(void)
Switch to the STANDBY state.
void SwitchToRx()
Switch to the RX state.
bool IsTransmitting(void)
Whether this device is transmitting or not.
static TypeId GetTypeId(void)
void SwitchToTx()
Switch to the TX state.
The SatPhyRx models the physical layer receiver of satellite system.
virtual void StartRx(Ptr< SatSignalParameters > rxParams)
Start packet reception from the SatChannel.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.