A Discrete-Event Network Simulator
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 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Davide Magrin <magrinda@dei.unipd.it>
18 */
19
20#ifndef SIMPLE_GATEWAY_LORA_PHY_H
21#define SIMPLE_GATEWAY_LORA_PHY_H
22
23#include "gateway-lora-phy.h"
24
25#include "ns3/mobility-model.h"
26#include "ns3/net-device.h"
27#include "ns3/node.h"
28#include "ns3/nstime.h"
29#include "ns3/object.h"
30#include "ns3/traced-value.h"
31
32#include <list>
33
34namespace ns3
35{
36namespace lorawan
37{
38
39class LoraChannel;
40
41/**
42 * \ingroup lorawan
43 *
44 * Class modeling a Lora SX1301 chip.
45 */
47{
48 public:
49 /**
50 * Register this type.
51 * \return The object TypeId.
52 */
53 static TypeId GetTypeId();
54
55 SimpleGatewayLoraPhy(); //!< Default constructor
56 ~SimpleGatewayLoraPhy() override; //!< Destructor
57
58 void StartReceive(Ptr<Packet> packet,
59 double rxPowerDbm,
60 uint8_t sf,
61 Time duration,
62 double frequencyMHz) override;
63
65
66 void Send(Ptr<Packet> packet,
67 LoraTxParameters txParams,
68 double frequencyMHz,
69 double txPowerDbm) override;
70
71 private:
72};
73
74} // namespace lorawan
75
76} // namespace ns3
77#endif /* SIMPLE_GATEWAY_LORA_PHY_H */
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
a unique identifier for an interface.
Definition: type-id.h:59
Class modeling a Lora SX1301 chip.
Class modeling a Lora SX1301 chip.
void Send(Ptr< Packet > packet, LoraTxParameters txParams, double frequencyMHz, double txPowerDbm) override
Instruct the PHY to send a packet according to some parameters.
static TypeId GetTypeId()
Register this type.
void StartReceive(Ptr< Packet > packet, double rxPowerDbm, uint8_t sf, Time duration, double frequencyMHz) override
Start receiving a packet.
void EndReceive(Ptr< Packet > packet, Ptr< LoraInterferenceHelper::Event > event) override
Finish reception of a packet.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Structure to collect all parameters that are used to compute the duration of a packet (excluding payl...
Definition: lora-phy.h:49