src/lte/model/lte-ue-phy.h
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--
Bug-fix LteUePhy UE Measurements PSS storage by introducing PssElement struct
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     2
/*
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     3
 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     4
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     7
 * published by the Free Software Foundation;
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     8
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    12
 * GNU General Public License for more details.
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    13
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    17
 *
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    18
 * Author: Giuseppe Piro  <g.piro@poliba.it>
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    19
 * Author: Marco Miozzo <mmiozzo@cttc.es>
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    20
 */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    21
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    22
#ifndef LTE_UE_PHY_H
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    23
#define LTE_UE_PHY_H
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    24
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    25
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    26
#include <ns3/lte-phy.h>
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    27
#include <ns3/ff-mac-common.h>
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    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
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    30
#include <ns3/lte-amc.h>
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    35
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    36
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    37
namespace ns3 {
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    38
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    39
class PacketBurst;
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    47
 * The LteSpectrumPhy models the physical layer of LTE
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    48
 */
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    49
class LteUePhy : public LtePhy
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    50
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    51
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    54
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    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
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    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
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    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
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 7981
diff changeset
    70
  // inherited from Object
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    71
  static TypeId GetTypeId (void);
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 7981
diff changeset
    72
  virtual void DoStart (void);
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 7981
diff changeset
    73
  virtual void DoDispose (void);
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    74
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    75
  /**
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    78
   */
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    79
  LteUePhySapProvider* GetLteUePhySapProvider ();
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    80
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    81
  /**
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    84
  */
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    85
  void SetLteUePhySapUser (LteUePhySapUser* s);
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    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
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    99
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   100
  /**
7949
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   101
   * \param pw the transmission power in dBm
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   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
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   104
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   105
  /**
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   106
   * \return the transmission power in dBm
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   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
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   110
   * \param pw the noise figure in dB
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   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
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   113
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   114
  /**
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   115
   * \return the noise figure in dB
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   116
   */
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   117
  double GetNoiseFigure () const;
7949
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   118
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   134
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   135
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   136
   * \brief Create the PSD for the TX
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   137
   * \return the pointer to the PSD
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   138
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   139
  virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity ();
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   140
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   141
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   142
   * \brief Set a list of sub channels to use in TX
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   143
   * \param mask a list of sub channels
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   144
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   145
  void SetSubChannelsForTransmission (std::vector <int> mask);
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   146
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   147
   * \brief Get a list of sub channels to use in RX
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   148
   * \return a list of sub channels
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   149
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   150
  std::vector <int> GetSubChannelsForTransmission (void);
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   151
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   152
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   153
   * \brief Get a list of sub channels to use in RX
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   154
   * \param mask list of sub channels
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   155
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   156
  void SetSubChannelsForReception (std::vector <int> mask);
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   157
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   158
   * \brief Get a list of sub channels to use in RX
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   159
   * \return a list of sub channels
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   160
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   161
  std::vector <int> GetSubChannelsForReception (void);
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   162
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   163
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   164
  /**
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   165
  * \brief Create the DL CQI feedback from SINR values perceived at
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   166
  * the physical layer with the signal received from eNB
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   167
  * \param sinr SINR values vector
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   170
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   171
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   172
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   173
  // inherited from LtePhy
9036
5e09b29d4af5 Add SRS signaling
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9035
diff changeset
   174
  virtual void GenerateCtrlCqiReport (const SpectrumValue& sinr);
5e09b29d4af5 Add SRS signaling
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9035
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   184
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   185
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   186
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   187
  /**
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   188
   * \brief PhySpectrum received a new PHY-PDU
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   189
   */
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   193
  /**
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   194
  * \brief trigger from eNB the start from a new frame
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   195
  *
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   196
  * \param frameNo frame number
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   197
  * \param subframeNo subframe number
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   198
  */
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   199
  void SubframeIndication (uint32_t frameNo, uint32_t subframeNo);
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   200
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   201
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   218
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   219
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   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
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   235
  // UE CPHY SAP methods
9485
938edff6f281 reset LteUePhy upon handover
Nicola Baldo <nbaldo@cttc.es>
parents: 9469
diff changeset
   236
  void DoReset ();  
9406
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   237
  void DoSyncronizeWithEnb (uint16_t cellId, uint16_t dlEarfcn);  
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   238
  void DoSetDlBandwidth (uint8_t ulBandwidth);
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   239
  void DoConfigureUplink (uint16_t ulEarfcn, uint8_t ulBandwidth);
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   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
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   242
  void DoSetSrsConfigurationIndex (uint16_t srcCi);
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   243
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   244
  // UE PHY SAP methods 
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   245
  virtual void DoSendMacPdu (Ptr<Packet> p);  
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   249
  std::vector <int> m_subChannelsForTransmission;
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   256
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   257
  Time m_p10CqiPeriocity; /**< Wideband Periodic CQI: 2, 5, 10, 16, 20, 32, 40, 64, 80 or 160 ms */
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   264
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   265
  LteUePhySapProvider* m_uePhySapProvider;
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   266
  LteUePhySapUser* m_uePhySapUser;
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   271
  uint16_t  m_rnti;
9406
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   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
5e09b29d4af5 Add SRS signaling
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9035
diff changeset
   275
  
5e09b29d4af5 Add SRS signaling
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9035
diff changeset
   276
  uint16_t m_srsPeriodicity;
9406
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   277
  uint16_t m_srsSubframeOffset;
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   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
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   280
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   281
  bool m_dlConfigured;
7f0f9d8f8e20 new LTE RRC model
Nicola Baldo <nbaldo@cttc.es>
parents: 9346
diff changeset
   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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   336
};
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   337
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   338
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   339
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   340
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
   341
#endif /* LTE_UE_PHY_H */