lorawan-mac-gateway.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2017 University of Padova
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Davide Magrin <magrinda@dei.unipd.it>
19  *
20  * Modified by: Bastien Tauran <bastien.tauran@viveris.fr>
21  */
22 
23 #ifndef LORAWAN_MAC_GATEWAY_H
24 #define LORAWAN_MAC_GATEWAY_H
25 
26 #include "lora-tag.h"
27 #include "lorawan-mac.h"
29 
30 namespace ns3
31 {
32 
34 {
35  public:
36  static TypeId GetTypeId(void);
37 
39  LorawanMacGateway(uint32_t satId, uint32_t beamId);
40  virtual ~LorawanMacGateway();
41 
42  // Implementation of the LorawanMac interface
43  virtual void Send(Ptr<Packet> packet);
44 
45  // Implementation of the LorawanMac interface
46  bool IsTransmitting(void);
47 
48  // Implementation of the LorawanMac interface
49  // virtual void Receive (Ptr<Packet const> packet);
50  virtual void Receive(SatPhy::PacketContainer_t packets, Ptr<SatSignalParameters> /*rxParams*/);
51 
52  // Implementation of the LorawanMac interface
53  virtual void FailedReception(Ptr<const Packet> packet);
54 
55  // Implementation of the LorawanMac interface
56  virtual void TxFinished();
57 
63  Time GetWaitingTime(double frequency);
64 
65  private:
66  // BB Frame configuration.
67  protected:
68 };
69 
70 } /* namespace ns3 */
71 
72 #endif /* LORAWAN_MAC_GATEWAY_H */
virtual void Send(Ptr< Packet > packet)
Send a packet.
virtual void FailedReception(Ptr< const Packet > packet)
Function called by lower layers to inform this layer that reception of a packet we were locked on fai...
virtual void Receive(SatPhy::PacketContainer_t packets, Ptr< SatSignalParameters >)
Receive a packet from the lower layer.
Time GetWaitingTime(double frequency)
Return the next time at which we will be able to transmit.
virtual void TxFinished()
Perform actions after sending a packet.
static TypeId GetTypeId(void)
Class representing the LoRaWAN MAC layer.
Definition: lorawan-mac.h:47
SatSignalParameters::PacketsInBurst_t PacketContainer_t
Define PacketContainer in SatPhy.
Definition: satellite-phy.h:78
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.