author | Nicola Baldo <nbaldo@cttc.es> |
Mon, 05 Nov 2012 18:32:22 +0100 | |
changeset 9409 | 4513a6e69157 |
parent 9406 | 7f0f9d8f8e20 |
child 9414 | 7b0db3dbf19b |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7238
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
6705 | 2 |
/* |
3 |
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
|
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: Giuseppe Piro <g.piro@poliba.it> |
|
7886 | 19 |
* Author: Marco Miozzo <marco.miozzo@cttc.es> |
6705 | 20 |
*/ |
21 |
||
22 |
#ifndef ENB_LTE_PHY_H |
|
23 |
#define ENB_LTE_PHY_H |
|
24 |
||
25 |
||
9346 | 26 |
#include <ns3/lte-control-messages.h> |
7886 | 27 |
#include <ns3/lte-enb-phy-sap.h> |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
28 |
#include <ns3/lte-enb-cphy-sap.h> |
9053
974762654b12
subframe indication now triggered independently by LteUePhy
Nicola Baldo <nicola@baldo.biz>
parents:
9049
diff
changeset
|
29 |
#include <ns3/lte-phy.h> |
974762654b12
subframe indication now triggered independently by LteUePhy
Nicola Baldo <nicola@baldo.biz>
parents:
9049
diff
changeset
|
30 |
|
7886 | 31 |
#include <map> |
9053
974762654b12
subframe indication now triggered independently by LteUePhy
Nicola Baldo <nicola@baldo.biz>
parents:
9049
diff
changeset
|
32 |
#include <set> |
974762654b12
subframe indication now triggered independently by LteUePhy
Nicola Baldo <nicola@baldo.biz>
parents:
9049
diff
changeset
|
33 |
|
974762654b12
subframe indication now triggered independently by LteUePhy
Nicola Baldo <nicola@baldo.biz>
parents:
9049
diff
changeset
|
34 |
|
6705 | 35 |
|
36 |
namespace ns3 { |
|
37 |
||
38 |
class PacketBurst; |
|
39 |
class LteNetDevice; |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
40 |
class LteUePhy; |
6705 | 41 |
|
42 |
/** |
|
7238
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
43 |
* \ingroup lte |
7887 | 44 |
* LteEnbPhy models the physical layer for the eNodeB |
6705 | 45 |
*/ |
7887 | 46 |
class LteEnbPhy : public LtePhy |
6705 | 47 |
{ |
7886 | 48 |
friend class EnbMemberLteEnbPhySapProvider; |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
49 |
friend class MemberLteEnbCphySapProvider<LteEnbPhy>; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
50 |
|
6705 | 51 |
public: |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
52 |
/** |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
53 |
* @warning the default constructor should not be used |
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
54 |
*/ |
7887 | 55 |
LteEnbPhy (); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
56 |
|
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
57 |
/** |
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
58 |
* |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
59 |
* \param dlPhy the downlink LteSpectrumPhy instance |
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
60 |
* \param ulPhy the uplink LteSpectrumPhy instance |
6705 | 61 |
*/ |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
62 |
LteEnbPhy (Ptr<LteSpectrumPhy> dlPhy, Ptr<LteSpectrumPhy> ulPhy); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
63 |
|
7887 | 64 |
virtual ~LteEnbPhy (); |
6705 | 65 |
|
8015 | 66 |
// inherited from Object |
6705 | 67 |
static TypeId GetTypeId (void); |
8015 | 68 |
virtual void DoStart (void); |
7913
ed3a9f8a76d7
added DoDispose to lte-phy and lte-spectrum-phy
Nicola Baldo <nbaldo@cttc.es>
parents:
7887
diff
changeset
|
69 |
virtual void DoDispose (void); |
6705 | 70 |
|
7886 | 71 |
|
6705 | 72 |
/** |
7886 | 73 |
* \brief Get the PHY SAP provider |
74 |
* \return a pointer to the SAP Provider of the PHY |
|
75 |
*/ |
|
76 |
LteEnbPhySapProvider* GetLteEnbPhySapProvider (); |
|
77 |
||
78 |
/** |
|
79 |
* \brief Set the PHY SAP User |
|
80 |
* \param s a pointer to the PHY SAP user |
|
81 |
*/ |
|
82 |
void SetLteEnbPhySapUser (LteEnbPhySapUser* s); |
|
83 |
||
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
84 |
/** |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
85 |
* \brief Get the CPHY SAP provider |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
86 |
* \return a pointer to the SAP Provider |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
87 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
88 |
LteEnbCphySapProvider* GetLteEnbCphySapProvider (); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
89 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
90 |
/** |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
91 |
* \brief Set the CPHY SAP User |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
92 |
* \param s a pointer to the SAP user |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
93 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
94 |
void SetLteEnbCphySapUser (LteEnbCphySapUser* s); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
95 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
96 |
/** |
7949 | 97 |
* \param pw the transmission power in dBm |
98 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
99 |
void SetTxPower (double pow); |
7949 | 100 |
|
101 |
/** |
|
102 |
* \return the transmission power in dBm |
|
103 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
104 |
double GetTxPower () const; |
7886 | 105 |
|
8670
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
106 |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
107 |
/** |
7981 | 108 |
* \param pw the noise figure in dB |
109 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
110 |
void SetNoiseFigure (double pow); |
7981 | 111 |
|
112 |
/** |
|
113 |
* \return the noise figure in dB |
|
114 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
115 |
double GetNoiseFigure () const; |
7981 | 116 |
|
7886 | 117 |
/** |
8670
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
118 |
* \param delay the TTI delay between MAC and channel |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
119 |
*/ |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
120 |
void SetMacChDelay (uint8_t delay); |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
121 |
|
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
122 |
/** |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
123 |
* \returns the TTI delay between MAC and channel |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
124 |
*/ |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
125 |
uint8_t GetMacChDelay (void) const; |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
126 |
|
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
127 |
/** |
9048
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
128 |
* \brief set the resource blocks (a.k.a. sub channels) to be used in the downlink for transmission |
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
129 |
* |
9049
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
130 |
* \param mask a vector of integers, if the i-th value is j it means |
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
131 |
* that the j-th resource block is used for transmission in the |
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
132 |
* downlink. If there is no i such that the value of the i-th |
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
133 |
* element is j, it means that RB j is not used. |
9048
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
134 |
*/ |
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
135 |
void SetDownlinkSubChannels (std::vector<int> mask ); |
7886 | 136 |
|
9048
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
137 |
|
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
138 |
/** |
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
139 |
* |
9049
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
140 |
* \return a vector of integers, if the i-th value is j it means |
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
141 |
* that the j-th resource block is used for transmission in the |
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
142 |
* downlink. If there is no i such that the value of the i-th |
9079248e111b
updated doxygen of Get/SetDownlinkSubChannels to reflect actual usage
Nicola Baldo <nbaldo@cttc.es>
parents:
9048
diff
changeset
|
143 |
* element is j, it means that RB j is not used. |
9048
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
144 |
*/ |
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
145 |
std::vector<int> GetDownlinkSubChannels (void); |
6705 | 146 |
|
147 |
/** |
|
148 |
* \brief Create the PSD for TX |
|
149 |
*/ |
|
150 |
virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity (); |
|
151 |
||
152 |
/** |
|
153 |
* \brief Calculate the channel quality for a given UE |
|
154 |
* \param sinr a list of computed SINR |
|
155 |
* \param ue the UE |
|
156 |
*/ |
|
157 |
void CalcChannelQualityForUe (std::vector <double> sinr, Ptr<LteSpectrumPhy> ue); |
|
158 |
||
159 |
/** |
|
160 |
* \brief Receive the control message |
|
161 |
* \param msg the received message |
|
162 |
*/ |
|
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
163 |
virtual void ReceiveLteControlMessage (Ptr<LteControlMessage> msg); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
164 |
|
7910 | 165 |
/** |
166 |
* \brief Create the UL CQI feedback from SINR values perceived at |
|
9036 | 167 |
* the physical layer with the PUSCH signal received from eNB |
7910 | 168 |
* \param sinr SINR values vector |
169 |
*/ |
|
9039
5bdf0c1be85f
Add SRS based UL-CQI and update RR and PF schedulers for managing them
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9038
diff
changeset
|
170 |
FfMacSchedSapProvider::SchedUlCqiInfoReqParameters CreatePuschCqiReport (const SpectrumValue& sinr); |
9036 | 171 |
|
172 |
/** |
|
173 |
* \brief Create the UL CQI feedback from SINR values perceived at |
|
174 |
* the physical layer with the SRS signal received from eNB |
|
175 |
* \param sinr SINR values vector |
|
176 |
*/ |
|
9039
5bdf0c1be85f
Add SRS based UL-CQI and update RR and PF schedulers for managing them
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9038
diff
changeset
|
177 |
FfMacSchedSapProvider::SchedUlCqiInfoReqParameters CreateSrsCqiReport (const SpectrumValue& sinr); |
6705 | 178 |
|
9038
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
179 |
/** |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
180 |
* \brief Send the PDCCH and PCFICH in the first 3 symbols |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
181 |
* \param ctrlMsgList the list of control messages of PDCCH |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
182 |
*/ |
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
183 |
void SendControlChannels (std::list<Ptr<LteControlMessage> > ctrlMsgList); |
9038
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
184 |
|
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
185 |
/** |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
186 |
* \brief Send the PDSCH |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
187 |
* \param pb the PacketBurst to be sent |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
188 |
*/ |
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
189 |
void SendDataChannels (Ptr<PacketBurst> pb); |
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
190 |
|
8728
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
191 |
/** |
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
192 |
* \param m the UL-CQI to be queued |
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
193 |
*/ |
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
194 |
void QueueUlDci (UlDciLteControlMessage m); |
8728
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
195 |
|
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
196 |
/** |
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
197 |
* \returns the list of UL-CQI to be processed |
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
198 |
*/ |
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
199 |
std::list<UlDciLteControlMessage> DequeueUlDci (void); |
7886 | 200 |
|
201 |
||
6705 | 202 |
/** |
203 |
* \brief Start a LTE frame |
|
204 |
*/ |
|
205 |
void StartFrame (void); |
|
206 |
/** |
|
207 |
* \brief Start a LTE sub frame |
|
208 |
*/ |
|
209 |
void StartSubFrame (void); |
|
210 |
/** |
|
211 |
* \brief End a LTE sub frame |
|
212 |
*/ |
|
213 |
void EndSubFrame (void); |
|
214 |
/** |
|
215 |
* \brief End a LTE frame |
|
216 |
*/ |
|
217 |
void EndFrame (void); |
|
218 |
||
7886 | 219 |
/** |
220 |
* \brief PhySpectrum received a new PHY-PDU |
|
221 |
*/ |
|
222 |
void PhyPduReceived (Ptr<Packet> p); |
|
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
223 |
|
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
224 |
/** |
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
225 |
* \brief PhySpectrum received a new list of LteControlMessage |
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
226 |
*/ |
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
227 |
virtual void ReceiveLteControlMessageList (std::list<Ptr<LteControlMessage> >); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
228 |
|
7886 | 229 |
// inherited from LtePhy |
9036 | 230 |
virtual void GenerateCtrlCqiReport (const SpectrumValue& sinr); |
231 |
virtual void GenerateDataCqiReport (const SpectrumValue& sinr); |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
232 |
|
6705 | 233 |
|
234 |
private: |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
235 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
236 |
// LteEnbCphySapProvider forwarded methods |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
237 |
void DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
238 |
void DoSetEarfcn (uint16_t dlEarfcn, uint16_t ulEarfcn); |
9345
8290ae6cab62
add/remove UEs and bearers upon handover
Nicola Baldo <nicola@baldo.biz>
parents:
9337
diff
changeset
|
239 |
void DoAddUe (uint16_t rnti); |
9406 | 240 |
void DoRemoveUe (uint16_t rnti); |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
241 |
void DoSetTransmissionMode (uint16_t rnti, uint8_t txMode); |
9406 | 242 |
void DoSetSrsConfigurationIndex (uint16_t rnti, uint16_t srcCi); |
243 |
void DoSetMasterInformationBlock (LteRrcSap::MasterInformationBlock mib); |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
244 |
|
9346 | 245 |
// LteEnbPhySapProvider forwarded methods |
246 |
void DoSendMacPdu (Ptr<Packet> p); |
|
247 |
void DoSendLteControlMessage (Ptr<LteControlMessage> msg); |
|
248 |
uint8_t DoGetMacChTtiDelay (); |
|
249 |
||
250 |
bool AddUePhy (uint16_t rnti); |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
251 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
252 |
bool DeleteUePhy (uint16_t rnti); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
253 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
254 |
|
9053
974762654b12
subframe indication now triggered independently by LteUePhy
Nicola Baldo <nicola@baldo.biz>
parents:
9049
diff
changeset
|
255 |
std::set <uint16_t> m_ueAttached; |
8728
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
256 |
|
9048
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
257 |
std::vector <int> m_listOfDownlinkSubchannel; |
4aeb9111981b
removed useless LtePhy::{Get,Set}{Up,down}linkSubChannels
Nicola Baldo <nbaldo@cttc.es>
parents:
9039
diff
changeset
|
258 |
|
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
259 |
std::vector <int> m_dlDataRbMap; |
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
260 |
|
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
261 |
std::vector< std::list<UlDciLteControlMessage> > m_ulDciQueue; // for storing info on future receptions |
7886 | 262 |
|
263 |
LteEnbPhySapProvider* m_enbPhySapProvider; |
|
264 |
LteEnbPhySapUser* m_enbPhySapUser; |
|
265 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
266 |
LteEnbCphySapProvider* m_enbCphySapProvider; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
267 |
LteEnbCphySapUser* m_enbCphySapUser; |
9035
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
268 |
|
e40974228d94
Update Phy Layer for managing different frames for different set of channels (data vs. ctrl and srs)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8729
diff
changeset
|
269 |
std::vector <uint16_t> m_ulRntiRxed; |
7886 | 270 |
|
271 |
uint32_t m_nrFrames; |
|
272 |
uint32_t m_nrSubFrames; |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8253
diff
changeset
|
273 |
|
9036 | 274 |
uint16_t m_srsPeriodicity; |
9409 | 275 |
Time m_srsStartTime; |
9036 | 276 |
std::map <uint16_t,uint16_t> m_srsCounter; |
9039
5bdf0c1be85f
Add SRS based UL-CQI and update RR and PF schedulers for managing them
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9038
diff
changeset
|
277 |
std::vector <uint16_t> m_srsUeOffset; |
5bdf0c1be85f
Add SRS based UL-CQI and update RR and PF schedulers for managing them
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9038
diff
changeset
|
278 |
uint16_t m_currentSrsOffset; |
9406 | 279 |
|
280 |
LteRrcSap::MasterInformationBlock m_mib; |
|
9036 | 281 |
|
6705 | 282 |
}; |
283 |
||
284 |
||
285 |
} |
|
286 |
||
7887 | 287 |
#endif /* LTE_ENB_PHY_H */ |