A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
simple-end-device-lora-phy.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 University of Padova
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Davide Magrin <magrinda@dei.unipd.it>
7
*/
8
9
#ifndef SIMPLE_END_DEVICE_LORA_PHY_H
10
#define SIMPLE_END_DEVICE_LORA_PHY_H
11
12
#include "
end-device-lora-phy.h
"
13
14
namespace
ns3
15
{
16
namespace
lorawan
17
{
18
19
/**
20
* @ingroup lorawan
21
*
22
* Class representing a simple LoRa transceiver, with an error model based
23
* on receiver sensitivity and a SIR table.
24
*/
25
class
SimpleEndDeviceLoraPhy
:
public
EndDeviceLoraPhy
26
{
27
public
:
28
/**
29
* Register this type.
30
* @return The object TypeId.
31
*/
32
static
TypeId
GetTypeId
();
33
34
SimpleEndDeviceLoraPhy
();
//!< Default constructor
35
~SimpleEndDeviceLoraPhy
()
override
;
//!< Destructor
36
37
// Implementation of EndDeviceLoraPhy's pure virtual function
38
void
Send
(
Ptr<Packet>
packet,
39
uint32_t
frequencyHz,
40
IQPolarity
iqPolarity,
41
const
LoraTxParameters
& txParams,
42
double
txPowerDbm)
override
;
43
44
// Implementation of EndDeviceLoraPhy's pure virtual function
45
void
StartReceive
(
Ptr<Packet>
packet,
46
uint32_t
frequencyHz,
47
IQPolarity
iqPolarity,
48
uint8_t spreadingFactor,
49
double
rxPowerDbm,
50
Time
duration)
override
;
51
52
private
:
53
// Implementation of EndDeviceLoraPhy's pure virtual function
54
void
EndReceive
(
Ptr<Packet>
packet,
Ptr<LoraInterferenceHelper::Event>
event)
override
;
55
};
56
57
}
// namespace lorawan
58
}
// namespace ns3
59
60
#endif
/* SIMPLE_END_DEVICE_LORA_PHY_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
ptr.h:70
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:95
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:50
ns3::lorawan::EndDeviceLoraPhy::EndDeviceLoraPhy
EndDeviceLoraPhy()
Default constructor.
Definition
end-device-lora-phy.cc:55
ns3::lorawan::SimpleEndDeviceLoraPhy::StartReceive
void StartReceive(Ptr< Packet > packet, uint32_t frequencyHz, IQPolarity iqPolarity, uint8_t spreadingFactor, double rxPowerDbm, Time duration) override
Start receiving a packet.
Definition
simple-end-device-lora-phy.cc:97
ns3::lorawan::SimpleEndDeviceLoraPhy::~SimpleEndDeviceLoraPhy
~SimpleEndDeviceLoraPhy() override
Destructor.
Definition
simple-end-device-lora-phy.cc:42
ns3::lorawan::SimpleEndDeviceLoraPhy::SimpleEndDeviceLoraPhy
SimpleEndDeviceLoraPhy()
Default constructor.
Definition
simple-end-device-lora-phy.cc:37
ns3::lorawan::SimpleEndDeviceLoraPhy::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition
simple-end-device-lora-phy.cc:27
ns3::lorawan::SimpleEndDeviceLoraPhy::Send
void Send(Ptr< Packet > packet, uint32_t frequencyHz, IQPolarity iqPolarity, const LoraTxParameters &txParams, double txPowerDbm) override
Instruct the PHY to send a packet according to some parameters.
Definition
simple-end-device-lora-phy.cc:48
ns3::lorawan::SimpleEndDeviceLoraPhy::EndReceive
void EndReceive(Ptr< Packet > packet, Ptr< LoraInterferenceHelper::Event > event) override
Finish reception of a packet.
Definition
simple-end-device-lora-phy.cc:189
uint32_t
end-device-lora-phy.h
ns3::lorawan::IQPolarity
IQPolarity
I/Q Polarity of LoRa transmission symbols.
Definition
lora-phy.h:33
ns3::lorawan
Definition
forwarder-helper.cc:19
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::lorawan::LoraTxParameters
Structure to collect all parameters that are used to compute the duration of a packet (excluding payl...
Definition
lora-phy.h:73
src
lorawan
model
simple-end-device-lora-phy.h
Generated on
for ns-3 by
1.16.1