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 * 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#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#include <list>
22
23namespace ns3
24{
25namespace lorawan
26{
27
28class LoraChannel;
29
30/**
31 * \ingroup lorawan
32 *
33 * Class modeling a Lora SX1301 chip.
34 */
36{
37 public:
38 /**
39 * Register this type.
40 * \return The object TypeId.
41 */
42 static TypeId GetTypeId();
43
44 SimpleGatewayLoraPhy(); //!< Default constructor
45 ~SimpleGatewayLoraPhy() override; //!< Destructor
46
47 void StartReceive(Ptr<Packet> packet,
48 double rxPowerDbm,
49 uint8_t sf,
50 Time duration,
51 double frequencyMHz) override;
52
54
55 void Send(Ptr<Packet> packet,
56 LoraTxParameters txParams,
57 double frequencyMHz,
58 double txPowerDbm) override;
59
60 private:
61};
62
63} // namespace lorawan
64
65} // namespace ns3
66#endif /* SIMPLE_GATEWAY_LORA_PHY_H */
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
a unique identifier for an interface.
Definition type-id.h:48
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:38