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-gateway-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_GATEWAY_LORA_PHY_H
10
#define SIMPLE_GATEWAY_LORA_PHY_H
11
12
#include "
gateway-lora-phy.h
"
13
14
namespace
ns3
15
{
16
namespace
lorawan
17
{
18
19
/**
20
* @ingroup lorawan
21
*
22
* Class modeling a Lora SX1301 chip.
23
*/
24
class
SimpleGatewayLoraPhy
:
public
GatewayLoraPhy
25
{
26
public
:
27
/**
28
* Register this type.
29
* @return The object TypeId.
30
*/
31
static
TypeId
GetTypeId
();
32
33
SimpleGatewayLoraPhy
();
//!< Default constructor
34
~SimpleGatewayLoraPhy
()
override
;
//!< Destructor
35
36
void
StartReceive
(
Ptr<Packet>
packet,
37
double
rxPowerDbm,
38
uint8_t sf,
39
Time
duration,
40
uint32_t
frequencyHz)
override
;
41
42
void
EndReceive
(
Ptr<Packet>
packet,
Ptr<LoraInterferenceHelper::Event>
event)
override
;
43
44
void
Send
(
Ptr<Packet>
packet,
45
LoraTxParameters
txParams,
46
uint32_t
frequencyHz,
47
double
txPowerDbm)
override
;
48
49
private
:
50
};
51
52
}
// namespace lorawan
53
}
// namespace ns3
54
55
#endif
/* SIMPLE_GATEWAY_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::GatewayLoraPhy::GatewayLoraPhy
GatewayLoraPhy()
Default constructor.
Definition
gateway-lora-phy.cc:112
ns3::lorawan::SimpleGatewayLoraPhy::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition
simple-gateway-lora-phy.cc:31
ns3::lorawan::SimpleGatewayLoraPhy::Send
void Send(Ptr< Packet > packet, LoraTxParameters txParams, uint32_t frequencyHz, double txPowerDbm) override
Instruct the PHY to send a packet according to some parameters.
Definition
simple-gateway-lora-phy.cc:52
ns3::lorawan::SimpleGatewayLoraPhy::EndReceive
void EndReceive(Ptr< Packet > packet, Ptr< LoraInterferenceHelper::Event > event) override
Finish reception of a packet.
Definition
simple-gateway-lora-phy.cc:218
ns3::lorawan::SimpleGatewayLoraPhy::StartReceive
void StartReceive(Ptr< Packet > packet, double rxPowerDbm, uint8_t sf, Time duration, uint32_t frequencyHz) override
Start receiving a packet.
Definition
simple-gateway-lora-phy.cc:112
ns3::lorawan::SimpleGatewayLoraPhy::SimpleGatewayLoraPhy
SimpleGatewayLoraPhy()
Default constructor.
Definition
simple-gateway-lora-phy.cc:41
ns3::lorawan::SimpleGatewayLoraPhy::~SimpleGatewayLoraPhy
~SimpleGatewayLoraPhy() override
Destructor.
Definition
simple-gateway-lora-phy.cc:46
uint32_t
gateway-lora-phy.h
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:54
src
lorawan
model
simple-gateway-lora-phy.h
Generated on
for ns-3 by
1.15.0