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
14namespace ns3
15{
16namespace lorawan
17{
18
19/**
20 * @ingroup lorawan
21 *
22 * Class modeling a Lora SX1301 chip.
23 */
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 // Implementation of GatewayLoraPhy's pure virtual function
37 void Send(Ptr<Packet> packet,
38 uint32_t frequencyHz,
39 IQPolarity iqPolarity,
40 const LoraTxParameters& txParams,
41 double txPowerDbm) override;
42
43 // Implementation of GatewayLoraPhy's pure virtual function
44 void StartReceive(Ptr<Packet> packet,
45 uint32_t frequencyHz,
46 IQPolarity iqPolarity,
47 uint8_t spreadingFactor,
48 double rxPowerDbm,
49 Time duration) override;
50
51 private:
52 // Implementation of GatewayLoraPhy's pure virtual function
54};
55
56} // namespace lorawan
57} // namespace ns3
58
59#endif /* SIMPLE_GATEWAY_LORA_PHY_H */
Smart pointer class similar to boost::intrusive_ptr.
Definition ptr.h:70
Simulation virtual time values and global simulation resolution.
Definition nstime.h:95
a unique identifier for an interface.
Definition type-id.h:50
GatewayLoraPhy()
Default constructor.
static TypeId GetTypeId()
Register this type.
void StartReceive(Ptr< Packet > packet, uint32_t frequencyHz, IQPolarity iqPolarity, uint8_t spreadingFactor, double rxPowerDbm, Time duration) override
Start receiving a packet.
void EndReceive(Ptr< Packet > packet, Ptr< LoraInterferenceHelper::Event > event) override
Finish reception of a packet.
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.
IQPolarity
I/Q Polarity of LoRa transmission symbols.
Definition lora-phy.h:33
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:73