author | Marco Miozzo <marco.miozzo@cttc.es> |
Mon, 04 Mar 2013 11:50:24 +0100 | |
changeset 9996 | 62697fe2165d |
parent 9986 | d1c0357a227f |
child 10000 | 2c29c6f2bddf |
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 <mmiozzo@cttc.es> |
6705 | 20 |
*/ |
21 |
||
7887 | 22 |
#ifndef LTE_UE_PHY_H |
23 |
#define LTE_UE_PHY_H |
|
6705 | 24 |
|
25 |
||
7886 | 26 |
#include <ns3/lte-phy.h> |
27 |
#include <ns3/ff-mac-common.h> |
|
28 |
||
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
|
29 |
#include <ns3/lte-control-messages.h> |
7887 | 30 |
#include <ns3/lte-amc.h> |
7886 | 31 |
#include <ns3/lte-ue-phy-sap.h> |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
32 |
#include <ns3/lte-ue-cphy-sap.h> |
7886 | 33 |
#include <ns3/ptr.h> |
8517
4446f1535b9e
Update LteUePhy for working with new LteAmc object
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8253
diff
changeset
|
34 |
#include <ns3/lte-amc.h> |
7886 | 35 |
|
6705 | 36 |
|
37 |
namespace ns3 { |
|
38 |
||
39 |
class PacketBurst; |
|
7887 | 40 |
class LteEnbPhy; |
9351
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
41 |
class LteHarqPhy; |
6705 | 42 |
|
9986
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
43 |
|
6705 | 44 |
/** |
7238
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
45 |
* \ingroup lte |
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
46 |
* |
6705 | 47 |
* The LteSpectrumPhy models the physical layer of LTE |
48 |
*/ |
|
7887 | 49 |
class LteUePhy : public LtePhy |
6705 | 50 |
{ |
51 |
||
7887 | 52 |
friend class UeMemberLteUePhySapProvider; |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
53 |
friend class MemberLteUeCphySapProvider<LteUePhy>; |
7886 | 54 |
|
6705 | 55 |
public: |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
56 |
/** |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
57 |
* @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
|
58 |
*/ |
7887 | 59 |
LteUePhy (); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
60 |
|
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
61 |
/** |
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
62 |
* |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
63 |
* \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
|
64 |
* \param ulPhy the uplink LteSpectrumPhy instance |
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
65 |
*/ |
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
66 |
LteUePhy (Ptr<LteSpectrumPhy> dlPhy, Ptr<LteSpectrumPhy> ulPhy); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
67 |
|
7887 | 68 |
virtual ~LteUePhy (); |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
69 |
|
8015 | 70 |
// inherited from Object |
7886 | 71 |
static TypeId GetTypeId (void); |
8015 | 72 |
virtual void DoStart (void); |
73 |
virtual void DoDispose (void); |
|
6705 | 74 |
|
75 |
/** |
|
7886 | 76 |
* \brief Get the PHY SAP provider |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
77 |
* \return a pointer to the SAP Provider |
6705 | 78 |
*/ |
7886 | 79 |
LteUePhySapProvider* GetLteUePhySapProvider (); |
6705 | 80 |
|
81 |
/** |
|
7886 | 82 |
* \brief Set the PHY SAP User |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
83 |
* \param s a pointer to the SAP user |
7886 | 84 |
*/ |
85 |
void SetLteUePhySapUser (LteUePhySapUser* s); |
|
86 |
||
9337
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 |
* \brief Get the CPHY SAP provider |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
89 |
* \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
|
90 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
91 |
LteUeCphySapProvider* GetLteUeCphySapProvider (); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
92 |
|
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 |
* \brief Set the CPHY SAP User |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
95 |
* \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
|
96 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
97 |
void SetLteUeCphySapUser (LteUeCphySapUser* s); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
98 |
|
7949 | 99 |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
100 |
/** |
7949 | 101 |
* \param pw the transmission power in dBm |
102 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
103 |
void SetTxPower (double pow); |
7949 | 104 |
|
105 |
/** |
|
106 |
* \return the transmission power in dBm |
|
107 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
108 |
double GetTxPower () const; |
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
109 |
/** |
7981 | 110 |
* \param pw the noise figure in dB |
111 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
112 |
void SetNoiseFigure (double pow); |
7981 | 113 |
|
114 |
/** |
|
115 |
* \return the noise figure in dB |
|
116 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
117 |
double GetNoiseFigure () const; |
7949 | 118 |
|
7886 | 119 |
/** |
8670
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
120 |
* \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
|
121 |
*/ |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
122 |
uint8_t GetMacChDelay (void) const; |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
123 |
|
9636
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
124 |
/** |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
125 |
* \return a pointer to the LteSpectrumPhy instance relative to the downlink |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
126 |
*/ |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
127 |
Ptr<LteSpectrumPhy> GetDlSpectrumPhy () const; |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
128 |
|
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
129 |
/** |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
130 |
* \return a pointer to the LteSpectrumPhy instance relative to the uplink |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
131 |
*/ |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
132 |
Ptr<LteSpectrumPhy> GetUlSpectrumPhy () const; |
91e31f0e569c
make Dl/UlSpectrumPhy attributes in LteUe/EnbPhy use getter instead of member variable to fix compilation issue with gcc 4.4.3
Nicola Baldo <nbaldo@cttc.es>
parents:
9562
diff
changeset
|
133 |
|
6705 | 134 |
|
135 |
/** |
|
136 |
* \brief Create the PSD for the TX |
|
137 |
* \return the pointer to the PSD |
|
138 |
*/ |
|
139 |
virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity (); |
|
140 |
||
141 |
/** |
|
142 |
* \brief Set a list of sub channels to use in TX |
|
143 |
* \param mask a list of sub channels |
|
144 |
*/ |
|
145 |
void SetSubChannelsForTransmission (std::vector <int> mask); |
|
146 |
/** |
|
147 |
* \brief Get a list of sub channels to use in RX |
|
148 |
* \return a list of sub channels |
|
149 |
*/ |
|
150 |
std::vector <int> GetSubChannelsForTransmission (void); |
|
151 |
||
152 |
/** |
|
153 |
* \brief Get a list of sub channels to use in RX |
|
154 |
* \param mask list of sub channels |
|
155 |
*/ |
|
156 |
void SetSubChannelsForReception (std::vector <int> mask); |
|
157 |
/** |
|
158 |
* \brief Get a list of sub channels to use in RX |
|
159 |
* \return a list of sub channels |
|
160 |
*/ |
|
161 |
std::vector <int> GetSubChannelsForReception (void); |
|
162 |
||
163 |
||
164 |
/** |
|
7886 | 165 |
* \brief Create the DL CQI feedback from SINR values perceived at |
166 |
* the physical layer with the signal received from eNB |
|
167 |
* \param sinr SINR values vector |
|
168 |
*/ |
|
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
|
169 |
Ptr<DlCqiLteControlMessage> CreateDlCqiFeedbackMessage (const SpectrumValue& sinr); |
7886 | 170 |
|
171 |
||
172 |
||
173 |
// inherited from LtePhy |
|
9036 | 174 |
virtual void GenerateCtrlCqiReport (const SpectrumValue& sinr); |
175 |
virtual void GenerateDataCqiReport (const SpectrumValue& sinr); |
|
9357
d52b94f66fe7
Add trace sources for DL RSRP/RSRQ (dummy values, TBD), UL SRS and interference power traces
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9351
diff
changeset
|
176 |
virtual void ReportInterference (const SpectrumValue& interf); |
9389
4bd2725add01
Update RSRP and RSRQ evaluation (RSRQ as average SINR)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9386
diff
changeset
|
177 |
virtual void ReportRsReceivedPower (const SpectrumValue& power); |
7886 | 178 |
|
9983
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
179 |
// callbacks for LteSpectrumPhy |
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
|
180 |
virtual void ReceiveLteControlMessageList (std::list<Ptr<LteControlMessage> >); |
9996
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
181 |
virtual void ReceivePss (uint16_t cellId, Ptr<SpectrumValue> p); |
9983
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
182 |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
183 |
|
7886 | 184 |
|
185 |
||
186 |
||
187 |
/** |
|
188 |
* \brief PhySpectrum received a new PHY-PDU |
|
6705 | 189 |
*/ |
7886 | 190 |
void PhyPduReceived (Ptr<Packet> p); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
191 |
|
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
192 |
|
7886 | 193 |
/** |
194 |
* \brief trigger from eNB the start from a new frame |
|
195 |
* |
|
196 |
* \param frameNo frame number |
|
197 |
* \param subframeNo subframe number |
|
198 |
*/ |
|
199 |
void SubframeIndication (uint32_t frameNo, uint32_t subframeNo); |
|
200 |
||
6705 | 201 |
|
7886 | 202 |
/** |
9038
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
203 |
* \brief Send the SRS signal in the last symbols of the frame |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
204 |
*/ |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
205 |
void SendSrs (); |
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
|
206 |
|
9351
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
207 |
/** |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
208 |
* \brief PhySpectrum generated a new DL HARQ feedback |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
209 |
*/ |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
210 |
virtual void ReceiveLteDlHarqFeedback (DlInfoListElement_s mes); |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
211 |
|
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
212 |
/** |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
213 |
* \brief Set the HARQ PHY module |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
214 |
*/ |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
215 |
void SetHarqPhyModule (Ptr<LteHarqPhy> harq); |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
216 |
|
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
217 |
|
7886 | 218 |
|
6705 | 219 |
|
220 |
private: |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
221 |
|
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
222 |
void SetTxMode1Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
223 |
void SetTxMode2Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
224 |
void SetTxMode3Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
225 |
void SetTxMode4Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
226 |
void SetTxMode5Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
227 |
void SetTxMode6Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
228 |
void SetTxMode7Gain (double gain); |
8725
e8df5f68c35e
Update SetTxModeXGain for reducing the copy-and-paste code
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8714
diff
changeset
|
229 |
void SetTxModeGain (uint8_t txMode, double gain); |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
230 |
|
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
|
231 |
void QueueSubChannelsForTransmission (std::vector <int> rbMap); |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
232 |
|
9986
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
233 |
void ReportUeMeasurements (); |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
234 |
|
9406 | 235 |
// UE CPHY SAP methods |
9485
938edff6f281
reset LteUePhy upon handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9469
diff
changeset
|
236 |
void DoReset (); |
9406 | 237 |
void DoSyncronizeWithEnb (uint16_t cellId, uint16_t dlEarfcn); |
238 |
void DoSetDlBandwidth (uint8_t ulBandwidth); |
|
239 |
void DoConfigureUplink (uint16_t ulEarfcn, uint8_t ulBandwidth); |
|
240 |
void DoSetRnti (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 (uint8_t txMode); |
9406 | 242 |
void DoSetSrsConfigurationIndex (uint16_t srcCi); |
243 |
||
244 |
// UE PHY SAP methods |
|
245 |
virtual void DoSendMacPdu (Ptr<Packet> p); |
|
246 |
virtual void DoSendLteControlMessage (Ptr<LteControlMessage> msg); |
|
9460
0674e66ee483
Introduces RACH procedures in the schedulers and UL grant at PHY layer
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9414
diff
changeset
|
247 |
virtual void DoSendRachPreamble (uint32_t prachId, uint32_t raRnti); |
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
|
248 |
|
6705 | 249 |
std::vector <int> m_subChannelsForTransmission; |
250 |
std::vector <int> m_subChannelsForReception; |
|
8517
4446f1535b9e
Update LteUePhy for working with new LteAmc object
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8253
diff
changeset
|
251 |
|
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
|
252 |
std::vector< std::vector <int> > m_subChannelsForTransmissionQueue; |
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
253 |
|
5a99218bfd1b
Bug-fix on m_macChTtiDelay management on UE-eNB PHY and consequently update RR-PF schedulers and tests
mmiozzo
parents:
8726
diff
changeset
|
254 |
|
8522
795ea37db2ff
Change LteAmc* to Ptr<LteAmc> in LteUePhy
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8517
diff
changeset
|
255 |
Ptr<LteAmc> m_amc; |
7886 | 256 |
|
257 |
Time m_p10CqiPeriocity; /**< Wideband Periodic CQI: 2, 5, 10, 16, 20, 32, 40, 64, 80 or 160 ms */ |
|
258 |
Time m_p10CqiLast; |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
259 |
|
7895
f20bb71f9b71
Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents:
7893
diff
changeset
|
260 |
/**< SubBand Aperiodic CQI: activated by DCI format 0 or Random Access Response Grant */ |
f20bb71f9b71
Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents:
7893
diff
changeset
|
261 |
// NOTE defines a periodicity for academic studies |
f20bb71f9b71
Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents:
7893
diff
changeset
|
262 |
Time m_a30CqiPeriocity; |
f20bb71f9b71
Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents:
7893
diff
changeset
|
263 |
Time m_a30CqiLast; |
7886 | 264 |
|
265 |
LteUePhySapProvider* m_uePhySapProvider; |
|
266 |
LteUePhySapUser* m_uePhySapUser; |
|
267 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
268 |
LteUeCphySapProvider* m_ueCphySapProvider; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
269 |
LteUeCphySapUser* m_ueCphySapUser; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
270 |
|
7886 | 271 |
uint16_t m_rnti; |
9406 | 272 |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
273 |
uint8_t m_transmissionMode; |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
274 |
std::vector <double> m_txModeGain; |
9036 | 275 |
|
276 |
uint16_t m_srsPeriodicity; |
|
9406 | 277 |
uint16_t m_srsSubframeOffset; |
278 |
uint16_t m_srsConfigured; |
|
9469
28a7b04a0b11
removed spurious LteUePhy::m_enbCellId; fixed bug in LteEnbRrc::GetNewSrsConfigurationIndex ()
Nicola Baldo <nbaldo@cttc.es>
parents:
9460
diff
changeset
|
279 |
Time m_srsStartTime; |
9406 | 280 |
|
281 |
bool m_dlConfigured; |
|
282 |
bool m_ulConfigured; |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
283 |
|
9983
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
284 |
uint8_t m_subframeNo; |
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
285 |
|
9389
4bd2725add01
Update RSRP and RSRQ evaluation (RSRQ as average SINR)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9386
diff
changeset
|
286 |
bool m_rsReceivedPowerUpdated; |
4bd2725add01
Update RSRP and RSRQ evaluation (RSRQ as average SINR)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9386
diff
changeset
|
287 |
SpectrumValue m_rsReceivedPower; |
4bd2725add01
Update RSRP and RSRQ evaluation (RSRQ as average SINR)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9386
diff
changeset
|
288 |
|
9983
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
289 |
bool m_rsInterferencePowerUpdated; |
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
290 |
SpectrumValue m_rsIntereferencePower; |
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
291 |
|
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
292 |
bool m_pssReceived; |
9996
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
293 |
struct PssElement |
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
294 |
{ |
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
295 |
uint16_t cellId; |
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
296 |
double pssPsdSum; |
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
297 |
uint16_t nRB; |
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
298 |
}; |
62697fe2165d
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9986
diff
changeset
|
299 |
std::list <PssElement> m_pssList; |
9983
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
300 |
|
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
301 |
double m_pssReceptionThreshold; // on RSRQ [W] |
0091ab7a897c
Add RSRP-RSRQ UE measurement and correspondent c-phy primitive for reporting them to LteUeRrr
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9636
diff
changeset
|
302 |
|
9986
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
303 |
struct UeMeasurementsElement |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
304 |
{ |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
305 |
double rsrpSum; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
306 |
uint8_t rsrpNum; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
307 |
double rsrqSum; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
308 |
uint8_t rsrqNum; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
309 |
}; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
310 |
|
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
311 |
std::map <uint16_t, UeMeasurementsElement> m_UeMeasurementsMap; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
312 |
Time m_ueMeasurementsFilterPeriod; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
313 |
Time m_ueMeasurementsFilterLast; |
d1c0357a227f
Update Phy support for Ue Measurements with time filtering and c-phy-sap measurements grouping
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9983
diff
changeset
|
314 |
|
9351
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
315 |
Ptr<LteHarqPhy> m_harqPhyModule; |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
316 |
|
9460
0674e66ee483
Introduces RACH procedures in the schedulers and UL grant at PHY layer
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9414
diff
changeset
|
317 |
uint32_t m_raPreambleId; |
0674e66ee483
Introduces RACH procedures in the schedulers and UL grant at PHY layer
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9414
diff
changeset
|
318 |
uint32_t m_raRnti; |
0674e66ee483
Introduces RACH procedures in the schedulers and UL grant at PHY layer
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9414
diff
changeset
|
319 |
|
9357
d52b94f66fe7
Add trace sources for DL RSRP/RSRQ (dummy values, TBD), UL SRS and interference power traces
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9351
diff
changeset
|
320 |
/** |
9390
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
321 |
* Trace information regarding RSRP and average SINR (see TS 36.214) |
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
322 |
* uint16_t cellId, uint16_t rnti, double rsrp, double sinr |
9357
d52b94f66fe7
Add trace sources for DL RSRP/RSRQ (dummy values, TBD), UL SRS and interference power traces
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9351
diff
changeset
|
323 |
*/ |
9390
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
324 |
TracedCallback<uint16_t, uint16_t, double, double> m_reportCurrentCellRsrpSinrTrace; |
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
325 |
uint16_t m_rsrpSinrSamplePeriod; |
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
326 |
uint16_t m_rsrpSinrSampleCounter; |
9357
d52b94f66fe7
Add trace sources for DL RSRP/RSRQ (dummy values, TBD), UL SRS and interference power traces
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9351
diff
changeset
|
327 |
|
9485
938edff6f281
reset LteUePhy upon handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9469
diff
changeset
|
328 |
EventId m_sendSrsEvent; |
938edff6f281
reset LteUePhy upon handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9469
diff
changeset
|
329 |
|
9519
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
330 |
/** |
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
331 |
* Trace information regarding PHY stats from DL Tx perspective |
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
332 |
* PhyTrasmissionStatParameters see lte-common.h |
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
333 |
*/ |
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
334 |
TracedCallback<PhyTransmissionStatParameters> m_ulPhyTransmission; |
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
335 |
|
6705 | 336 |
}; |
337 |
||
338 |
||
339 |
} |
|
340 |
||
7887 | 341 |
#endif /* LTE_UE_PHY_H */ |