A Discrete-Event Network Simulator
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
14namespace ns3
15{
16namespace lorawan
17{
18
19/**
20 * @ingroup lorawan
21 *
22 * Class representing a simple LoRa transceiver, with an error model based
23 * on receiver sensitivity and a SIR table.
24 */
26{
27 public:
28 /**
29 * Register this type.
30 * @return The object TypeId.
31 */
32 static TypeId GetTypeId();
33
34 SimpleEndDeviceLoraPhy(); //!< Default constructor
35 ~SimpleEndDeviceLoraPhy() override; //!< Destructor
36
37 // Implementation of EndDeviceLoraPhy's pure virtual functions
38 void StartReceive(Ptr<Packet> packet,
39 double rxPowerDbm,
40 uint8_t sf,
41 Time duration,
42 uint32_t frequencyHz) override;
43
44 // Implementation of LoraPhy's pure virtual functions
46
47 // Implementation of LoraPhy's pure virtual functions
48 void Send(Ptr<Packet> packet,
49 LoraTxParameters txParams,
50 uint32_t frequencyHz,
51 double txPowerDbm) override;
52
53 private:
54};
55
56} // namespace lorawan
57} // namespace ns3
58
59#endif /* SIMPLE_END_DEVICE_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
EndDeviceLoraPhy()
Default constructor.
void Send(Ptr< Packet > packet, LoraTxParameters txParams, uint32_t frequencyHz, 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, uint32_t frequencyHz) 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:54