author | Vedran Mileti? <rivanvx@gmail.com> |
Fri, 19 Apr 2013 22:39:55 +0200 | |
changeset 9703 | 681f35b212ff |
parent 9636 | 91e31f0e569c |
child 10063 | 6b30859ebd37 |
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 |
|
43 |
/** |
|
7238
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
44 |
* \ingroup lte |
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
45 |
* |
6705 | 46 |
* The LteSpectrumPhy models the physical layer of LTE |
47 |
*/ |
|
7887 | 48 |
class LteUePhy : public LtePhy |
6705 | 49 |
{ |
50 |
||
7887 | 51 |
friend class UeMemberLteUePhySapProvider; |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
52 |
friend class MemberLteUeCphySapProvider<LteUePhy>; |
7886 | 53 |
|
6705 | 54 |
public: |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
55 |
/** |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
56 |
* @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
|
57 |
*/ |
7887 | 58 |
LteUePhy (); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
59 |
|
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 |
* |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
62 |
* \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
|
63 |
* \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
|
64 |
*/ |
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
65 |
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
|
66 |
|
7887 | 67 |
virtual ~LteUePhy (); |
7980
f07d99163a56
LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents:
7949
diff
changeset
|
68 |
|
8015 | 69 |
// inherited from Object |
7886 | 70 |
static TypeId GetTypeId (void); |
9703
681f35b212ff
Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Mileti? <rivanvx@gmail.com>
parents:
9636
diff
changeset
|
71 |
virtual void DoInitialize (void); |
8015 | 72 |
virtual void DoDispose (void); |
6705 | 73 |
|
74 |
/** |
|
7886 | 75 |
* \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
|
76 |
* \return a pointer to the SAP Provider |
6705 | 77 |
*/ |
7886 | 78 |
LteUePhySapProvider* GetLteUePhySapProvider (); |
6705 | 79 |
|
80 |
/** |
|
7886 | 81 |
* \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
|
82 |
* \param s a pointer to the SAP user |
7886 | 83 |
*/ |
84 |
void SetLteUePhySapUser (LteUePhySapUser* s); |
|
85 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
86 |
/** |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
87 |
* \brief Get the CPHY SAP provider |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
88 |
* \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
|
89 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
90 |
LteUeCphySapProvider* GetLteUeCphySapProvider (); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
91 |
|
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 |
* \brief Set the CPHY SAP User |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
94 |
* \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
|
95 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
96 |
void SetLteUeCphySapUser (LteUeCphySapUser* s); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
97 |
|
7949 | 98 |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
99 |
/** |
7949 | 100 |
* \param pw the transmission power in dBm |
101 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
102 |
void SetTxPower (double pow); |
7949 | 103 |
|
104 |
/** |
|
105 |
* \return the transmission power in dBm |
|
106 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
107 |
double GetTxPower () const; |
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
108 |
/** |
7981 | 109 |
* \param pw the noise figure in dB |
110 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
111 |
void SetNoiseFigure (double pow); |
7981 | 112 |
|
113 |
/** |
|
114 |
* \return the noise figure in dB |
|
115 |
*/ |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
116 |
double GetNoiseFigure () const; |
7949 | 117 |
|
7886 | 118 |
/** |
8670
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
119 |
* \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
|
120 |
*/ |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
121 |
uint8_t GetMacChDelay (void) const; |
8f63d16fb2e8
fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents:
8664
diff
changeset
|
122 |
|
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
|
123 |
/** |
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 |
* \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
|
125 |
*/ |
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 |
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
|
127 |
|
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 |
* \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
|
130 |
*/ |
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 |
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
|
132 |
|
6705 | 133 |
|
134 |
/** |
|
135 |
* \brief Create the PSD for the TX |
|
136 |
* \return the pointer to the PSD |
|
137 |
*/ |
|
138 |
virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity (); |
|
139 |
||
140 |
/** |
|
141 |
* \brief Set a list of sub channels to use in TX |
|
142 |
* \param mask a list of sub channels |
|
143 |
*/ |
|
144 |
void SetSubChannelsForTransmission (std::vector <int> mask); |
|
145 |
/** |
|
146 |
* \brief Get a list of sub channels to use in RX |
|
147 |
* \return a list of sub channels |
|
148 |
*/ |
|
149 |
std::vector <int> GetSubChannelsForTransmission (void); |
|
150 |
||
151 |
/** |
|
152 |
* \brief Get a list of sub channels to use in RX |
|
153 |
* \param mask list of sub channels |
|
154 |
*/ |
|
155 |
void SetSubChannelsForReception (std::vector <int> mask); |
|
156 |
/** |
|
157 |
* \brief Get a list of sub channels to use in RX |
|
158 |
* \return a list of sub channels |
|
159 |
*/ |
|
160 |
std::vector <int> GetSubChannelsForReception (void); |
|
161 |
||
162 |
||
163 |
/** |
|
7886 | 164 |
* \brief Create the DL CQI feedback from SINR values perceived at |
165 |
* the physical layer with the signal received from eNB |
|
166 |
* \param sinr SINR values vector |
|
167 |
*/ |
|
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
|
168 |
Ptr<DlCqiLteControlMessage> CreateDlCqiFeedbackMessage (const SpectrumValue& sinr); |
7886 | 169 |
|
170 |
||
171 |
||
172 |
// inherited from LtePhy |
|
9036 | 173 |
virtual void GenerateCtrlCqiReport (const SpectrumValue& sinr); |
174 |
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
|
175 |
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
|
176 |
virtual void ReportRsReceivedPower (const SpectrumValue& power); |
7886 | 177 |
|
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
|
178 |
virtual void ReceiveLteControlMessageList (std::list<Ptr<LteControlMessage> >); |
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
179 |
|
7886 | 180 |
|
181 |
||
182 |
||
183 |
/** |
|
184 |
* \brief PhySpectrum received a new PHY-PDU |
|
6705 | 185 |
*/ |
7886 | 186 |
void PhyPduReceived (Ptr<Packet> p); |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
187 |
|
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
188 |
|
7886 | 189 |
/** |
190 |
* \brief trigger from eNB the start from a new frame |
|
191 |
* |
|
192 |
* \param frameNo frame number |
|
193 |
* \param subframeNo subframe number |
|
194 |
*/ |
|
195 |
void SubframeIndication (uint32_t frameNo, uint32_t subframeNo); |
|
196 |
||
6705 | 197 |
|
7886 | 198 |
/** |
9038
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
199 |
* \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
|
200 |
*/ |
e1d67c8aa95b
Polish code according to codereview
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9036
diff
changeset
|
201 |
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
|
202 |
|
9351
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
203 |
/** |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
204 |
* \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
|
205 |
*/ |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
206 |
virtual void ReceiveLteDlHarqFeedback (DlInfoListElement_s mes); |
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 |
/** |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
209 |
* \brief Set the HARQ PHY module |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
210 |
*/ |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
211 |
void SetHarqPhyModule (Ptr<LteHarqPhy> harq); |
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 |
|
7886 | 214 |
|
6705 | 215 |
|
216 |
private: |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
217 |
|
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
218 |
void SetTxMode1Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
219 |
void SetTxMode2Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
220 |
void SetTxMode3Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
221 |
void SetTxMode4Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
222 |
void SetTxMode5Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
223 |
void SetTxMode6Gain (double gain); |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
224 |
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
|
225 |
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
|
226 |
|
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
|
227 |
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
|
228 |
|
9406 | 229 |
// UE CPHY SAP methods |
9485
938edff6f281
reset LteUePhy upon handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9469
diff
changeset
|
230 |
void DoReset (); |
9406 | 231 |
void DoSyncronizeWithEnb (uint16_t cellId, uint16_t dlEarfcn); |
232 |
void DoSetDlBandwidth (uint8_t ulBandwidth); |
|
233 |
void DoConfigureUplink (uint16_t ulEarfcn, uint8_t ulBandwidth); |
|
234 |
void DoSetRnti (uint16_t rnti); |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
235 |
void DoSetTransmissionMode (uint8_t txMode); |
9406 | 236 |
void DoSetSrsConfigurationIndex (uint16_t srcCi); |
237 |
||
238 |
// UE PHY SAP methods |
|
239 |
virtual void DoSendMacPdu (Ptr<Packet> p); |
|
240 |
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
|
241 |
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
|
242 |
|
6705 | 243 |
std::vector <int> m_subChannelsForTransmission; |
244 |
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
|
245 |
|
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
|
246 |
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
|
247 |
|
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 |
|
8522
795ea37db2ff
Change LteAmc* to Ptr<LteAmc> in LteUePhy
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8517
diff
changeset
|
249 |
Ptr<LteAmc> m_amc; |
7886 | 250 |
|
251 |
Time m_p10CqiPeriocity; /**< Wideband Periodic CQI: 2, 5, 10, 16, 20, 32, 40, 64, 80 or 160 ms */ |
|
252 |
Time m_p10CqiLast; |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
253 |
|
7895
f20bb71f9b71
Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents:
7893
diff
changeset
|
254 |
/**< 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
|
255 |
// 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
|
256 |
Time m_a30CqiPeriocity; |
f20bb71f9b71
Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents:
7893
diff
changeset
|
257 |
Time m_a30CqiLast; |
7886 | 258 |
|
259 |
LteUePhySapProvider* m_uePhySapProvider; |
|
260 |
LteUePhySapUser* m_uePhySapUser; |
|
261 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
262 |
LteUeCphySapProvider* m_ueCphySapProvider; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
263 |
LteUeCphySapUser* m_ueCphySapUser; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8729
diff
changeset
|
264 |
|
7886 | 265 |
uint16_t m_rnti; |
9406 | 266 |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
267 |
uint8_t m_transmissionMode; |
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8522
diff
changeset
|
268 |
std::vector <double> m_txModeGain; |
9036 | 269 |
|
270 |
uint16_t m_srsPeriodicity; |
|
9406 | 271 |
uint16_t m_srsSubframeOffset; |
272 |
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
|
273 |
Time m_srsStartTime; |
9406 | 274 |
|
275 |
bool m_dlConfigured; |
|
276 |
bool m_ulConfigured; |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
8098
diff
changeset
|
277 |
|
9389
4bd2725add01
Update RSRP and RSRQ evaluation (RSRQ as average SINR)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9386
diff
changeset
|
278 |
bool m_rsReceivedPowerUpdated; |
4bd2725add01
Update RSRP and RSRQ evaluation (RSRQ as average SINR)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9386
diff
changeset
|
279 |
SpectrumValue m_rsReceivedPower; |
4bd2725add01
Update RSRP and RSRQ evaluation (RSRQ as average SINR)
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9386
diff
changeset
|
280 |
|
9351
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
281 |
Ptr<LteHarqPhy> m_harqPhyModule; |
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9346
diff
changeset
|
282 |
|
9460
0674e66ee483
Introduces RACH procedures in the schedulers and UL grant at PHY layer
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9414
diff
changeset
|
283 |
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
|
284 |
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
|
285 |
|
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
|
286 |
/** |
9390
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
287 |
* 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
|
288 |
* 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
|
289 |
*/ |
9390
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
290 |
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
|
291 |
uint16_t m_rsrpSinrSamplePeriod; |
d51829659a57
Change RSRQ stats for average SINR ones
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9389
diff
changeset
|
292 |
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
|
293 |
|
9485
938edff6f281
reset LteUePhy upon handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9469
diff
changeset
|
294 |
EventId m_sendSrsEvent; |
938edff6f281
reset LteUePhy upon handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9469
diff
changeset
|
295 |
|
9519
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
296 |
/** |
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
297 |
* 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
|
298 |
* 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
|
299 |
*/ |
fc6e45584ef4
Add DL and UL PHY traces on transmission and reception statistics
Marco Miozzo <marco.miozzo@cttc.es>
parents:
9460
diff
changeset
|
300 |
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
|
301 |
|
6705 | 302 |
}; |
303 |
||
304 |
||
305 |
} |
|
306 |
||
7887 | 307 |
#endif /* LTE_UE_PHY_H */ |