A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-ue-phy-sap.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Marco Miozzo <mmiozzo@cttc.es>
18 */
19
20#ifndef LTE_UE_PHY_SAP_H
21#define LTE_UE_PHY_SAP_H
22
23#include <ns3/packet.h>
24
25namespace ns3
26{
27
28class LteControlMessage;
29
37{
38 public:
39 virtual ~LteUePhySapProvider();
40
46 virtual void SendMacPdu(Ptr<Packet> p) = 0;
47
54
61 virtual void SendRachPreamble(uint32_t prachId, uint32_t raRnti) = 0;
62
67 virtual void NotifyConnectionSuccessful() = 0;
68};
69
77{
78 public:
79 virtual ~LteUePhySapUser();
80
88 virtual void ReceivePhyPdu(Ptr<Packet> p) = 0;
89
96 virtual void SubframeIndication(uint32_t frameNo, uint32_t subframeNo) = 0;
97
105};
106
107} // namespace ns3
108
109#endif // LTE_UE_PHY_SAP_H
Service Access Point (SAP) offered by the UE-PHY to the UE-MAC.
virtual void SendLteControlMessage(Ptr< LteControlMessage > msg)=0
Send SendLteControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel.
virtual void SendRachPreamble(uint32_t prachId, uint32_t raRnti)=0
Send a preamble on the PRACH.
virtual void NotifyConnectionSuccessful()=0
Notify PHY about the successful RRC connection establishment.
virtual void SendMacPdu(Ptr< Packet > p)=0
Send the MAC PDU to the channel.
Service Access Point (SAP) offered by the PHY to the MAC.
virtual void ReceivePhyPdu(Ptr< Packet > p)=0
Receive Phy Pdu function.
virtual void SubframeIndication(uint32_t frameNo, uint32_t subframeNo)=0
Trigger the start from a new frame (input from Phy layer)
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)=0
Receive SendLteControlMessage (PDCCH map, CQI feedbacks) using the ideal control channel.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
Every class exported by the ns3 library is enclosed in the ns3 namespace.