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
#include "ns3/mobility-model.h"
15
#include "ns3/net-device.h"
16
#include "ns3/node.h"
17
#include "ns3/nstime.h"
18
#include "ns3/object.h"
19
#include "ns3/traced-value.h"
20
21
namespace
ns3
22
{
23
namespace
lorawan
24
{
25
26
class
LoraChannel;
27
28
/**
29
* \ingroup lorawan
30
*
31
* Class representing a simple LoRa transceiver, with an error model based
32
* on receiver sensitivity and a SIR table.
33
*/
34
class
SimpleEndDeviceLoraPhy
:
public
EndDeviceLoraPhy
35
{
36
public
:
37
/**
38
* Register this type.
39
* \return The object TypeId.
40
*/
41
static
TypeId
GetTypeId
();
42
43
SimpleEndDeviceLoraPhy
();
//!< Default constructor
44
~SimpleEndDeviceLoraPhy
()
override
;
//!< Destructor
45
46
// Implementation of EndDeviceLoraPhy's pure virtual functions
47
void
StartReceive
(
Ptr<Packet>
packet,
48
double
rxPowerDbm,
49
uint8_t sf,
50
Time
duration,
51
double
frequencyMHz)
override
;
52
53
// Implementation of LoraPhy's pure virtual functions
54
void
EndReceive
(
Ptr<Packet>
packet,
Ptr<LoraInterferenceHelper::Event>
event)
override
;
55
56
// Implementation of LoraPhy's pure virtual functions
57
void
Send
(
Ptr<Packet>
packet,
58
LoraTxParameters
txParams,
59
double
frequencyMHz,
60
double
txPowerDbm)
override
;
61
62
private
:
63
};
64
65
}
// namespace lorawan
66
67
}
// namespace ns3
68
#endif
/* SIMPLE_END_DEVICE_LORA_PHY_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::lorawan::EndDeviceLoraPhy
Class representing a LoRa transceiver.
Definition
end-device-lora-phy.h:97
ns3::lorawan::SimpleEndDeviceLoraPhy
Class representing a simple LoRa transceiver, with an error model based on receiver sensitivity and a...
Definition
simple-end-device-lora-phy.h:35
ns3::lorawan::SimpleEndDeviceLoraPhy::~SimpleEndDeviceLoraPhy
~SimpleEndDeviceLoraPhy() override
Destructor.
Definition
simple-end-device-lora-phy.cc:44
ns3::lorawan::SimpleEndDeviceLoraPhy::SimpleEndDeviceLoraPhy
SimpleEndDeviceLoraPhy()
Default constructor.
Definition
simple-end-device-lora-phy.cc:40
ns3::lorawan::SimpleEndDeviceLoraPhy::StartReceive
void StartReceive(Ptr< Packet > packet, double rxPowerDbm, uint8_t sf, Time duration, double frequencyMHz) override
Start receiving a packet.
Definition
simple-end-device-lora-phy.cc:96
ns3::lorawan::SimpleEndDeviceLoraPhy::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition
simple-end-device-lora-phy.cc:28
ns3::lorawan::SimpleEndDeviceLoraPhy::Send
void Send(Ptr< Packet > packet, LoraTxParameters txParams, double frequencyMHz, double txPowerDbm) override
Instruct the PHY to send a packet according to some parameters.
Definition
simple-end-device-lora-phy.cc:49
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:232
end-device-lora-phy.h
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:38
src
lorawan
model
simple-end-device-lora-phy.h
Generated on Fri Nov 8 2024 13:59:02 for ns-3 by
1.11.0