src/lte/model/lte-ue-phy.h
author mmiozzo
Mon, 23 Apr 2012 13:16:03 +0200
changeset 8726 f6f0e2531457
parent 8670 8f63d16fb2e8
parent 8725 e8df5f68c35e
child 8728 5a99218bfd1b
permissions -rw-r--r--
merge with ns-3-lena-pem changeset 8419:e8df5f68c35e (MIMO model)
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
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    29
#include <ns3/ideal-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>
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    32
#include <ns3/ptr.h>
8517
4446f1535b9e Update LteUePhy for working with new LteAmc object
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8253
diff changeset
    33
#include <ns3/lte-amc.h>
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    34
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    35
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    36
namespace ns3 {
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    37
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    38
class PacketBurst;
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    39
class LteNetDevice;
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    40
class LteEnbPhy;
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    41
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    42
/**
7238
85a7e87bb4cc Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents: 6852
diff changeset
    43
 * \ingroup lte
85a7e87bb4cc Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents: 6852
diff changeset
    44
 *
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    45
 * The LteSpectrumPhy models the physical layer of LTE
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    46
 */
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    47
class LteUePhy : public LtePhy
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    48
{
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    49
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    50
  friend class UeMemberLteUePhySapProvider;
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    51
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    52
public:
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    53
  /**
7980
f07d99163a56 LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents: 7949
diff changeset
    54
   * @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
    55
   */
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    56
  LteUePhy ();
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    57
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    58
  /**
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    59
   *
7980
f07d99163a56 LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents: 7949
diff changeset
    60
   * \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
    61
   * \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
    62
   */
f07d99163a56 LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents: 7949
diff changeset
    63
  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
    64
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
    65
  virtual ~LteUePhy ();
7980
f07d99163a56 LteSpectrumPhy instances now plugged onto LtePhy via its constructor
Nicola Baldo <nbaldo@cttc.es>
parents: 7949
diff changeset
    66
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 7981
diff changeset
    67
  // inherited from Object
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    68
  static TypeId GetTypeId (void);
8015
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 7981
diff changeset
    69
  virtual void DoStart (void);
e8fd3bf1692f flexible spectrum model
Nicola Baldo <nbaldo@cttc.es>
parents: 7981
diff changeset
    70
  virtual void DoDispose (void);
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    71
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    72
  /**
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    73
   * \brief Get the PHY SAP provider
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    74
   * \return a pointer to the SAP Provider of the PHY
6705
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
  LteUePhySapProvider* GetLteUePhySapProvider ();
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
    77
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
  * \brief Set the PHY SAP User
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    80
  * \param s a pointer to the PHY SAP user
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    81
  */
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    82
  void SetLteUePhySapUser (LteUePhySapUser* s);
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
    83
7949
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    84
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    85
  /**
7949
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    86
   * \param pw the transmission power in dBm
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    87
   */
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    88
  void SetTxPower (double pow);
7949
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    89
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    90
  /**
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    91
   * \return the transmission power in dBm
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
    92
   */
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    93
  double GetTxPower () const;
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    94
  /**
7981
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
    95
   * \param pw the noise figure in dB
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
    96
   */
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
    97
  void SetNoiseFigure (double pow);
7981
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
    98
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
    99
  /**
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   100
   * \return the noise figure in dB
aacecd825d99 noise figure attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7980
diff changeset
   101
   */
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   102
  double GetNoiseFigure () const;
7949
3bf9450ac03f added TX power attribute
Nicola Baldo <nbaldo@cttc.es>
parents: 7895
diff changeset
   103
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   104
  /**
8670
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   105
   * \param delay the TTI delay between MAC and channel
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   106
   */
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   107
  void SetMacChDelay (uint8_t delay);
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   108
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   109
  /**
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   110
   * \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
   111
   */
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   112
  uint8_t GetMacChDelay (void) const;
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   113
8f63d16fb2e8 fixed compilation error with g++-4.4
Nicola Baldo <nbaldo@cttc.es>
parents: 8664
diff changeset
   114
  /**
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   115
   * \brief Queue the MAC PDU to be sent
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   116
   * \param p the MAC PDU to sent
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   117
   */
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   118
  virtual void DoSendMacPdu (Ptr<Packet> p);
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   119
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   120
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   121
   * \brief Create the PSD for the TX
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   122
   * \return the pointer to the PSD
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   123
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   124
  virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity ();
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   125
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   126
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   127
   * \brief Update available channel for TX
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   128
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   129
  virtual void DoSetUplinkSubChannels ();
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   130
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   131
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   132
   * \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
   133
   * \param mask a list of sub channels
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
  void SetSubChannelsForTransmission (std::vector <int> mask);
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   136
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   137
   * \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
   138
   * \return a list of sub channels
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   139
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   140
  std::vector <int> GetSubChannelsForTransmission (void);
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
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   143
   * \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
   144
   * \param mask list of sub channels
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   145
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   146
  void SetSubChannelsForReception (std::vector <int> mask);
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   147
  /**
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   148
   * \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
   149
   * \return a list of sub channels
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   150
   */
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   151
  std::vector <int> GetSubChannelsForReception (void);
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
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   154
  /**
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   155
  * \brief Create the DL CQI feedback from SINR values perceived at
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   156
  * the physical layer with the signal received from eNB
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   157
  * \param sinr SINR values vector
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   158
  */
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   159
  Ptr<DlCqiIdealControlMessage> CreateDlCqiFeedbackMessage (const SpectrumValue& sinr);
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   160
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   161
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   162
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   163
  // inherited from LtePhy
8664
ab4c821fc251 revision after Giuseppe's comments http://codereview.appspot.com/4626069/#msg1
Nicola Baldo <nbaldo@cttc.es>
parents: 8522
diff changeset
   164
  virtual void GenerateCqiReport (const SpectrumValue& sinr);
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   165
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   166
  virtual void DoSendIdealControlMessage (Ptr<IdealControlMessage> msg);
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   167
  virtual void ReceiveIdealControlMessage (Ptr<IdealControlMessage> msg);
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   168
  
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   169
  virtual void DoSetTransmissionMode (uint8_t txMode);
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   170
  
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   171
  
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   172
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   173
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   174
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   175
  /**
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   176
   * \brief PhySpectrum received a new PHY-PDU
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   177
   */
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   178
  void PhyPduReceived (Ptr<Packet> p);
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   179
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   180
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   181
  /**
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   182
  * \brief trigger from eNB the start from a new frame
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   183
  *
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   184
  * \param frameNo frame number
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   185
  * \param subframeNo subframe number
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   186
  */
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   187
  void SubframeIndication (uint32_t frameNo, uint32_t subframeNo);
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   188
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
  /**
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   191
  * \param rnti the rnti assigned to the UE
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   192
  */
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   193
  void SetRnti (uint16_t rnti);
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   194
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   195
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   196
  /**
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   197
   * set the cellId of the eNb this PHY is synchronized with
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   198
   *
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   199
   * \param cellId the cell identifier of the eNB
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   200
   */
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   201
  void SetEnbCellId (uint16_t cellId);
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   202
  
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   203
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   204
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   205
private:
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   206
  
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   207
  void SetTxMode1Gain (double gain);
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   208
  void SetTxMode2Gain (double gain);
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   209
  void SetTxMode3Gain (double gain);
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   210
  void SetTxMode4Gain (double gain);
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   211
  void SetTxMode5Gain (double gain);
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   212
  void SetTxMode6Gain (double gain);
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   213
  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
   214
  void SetTxModeGain (uint8_t txMode, double gain);
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   215
  
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   216
  std::vector <int> m_subChannelsForTransmission;
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   217
  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
   218
  
8522
795ea37db2ff Change LteAmc* to Ptr<LteAmc> in LteUePhy
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8517
diff changeset
   219
  Ptr<LteAmc> m_amc;
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   220
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   221
  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
   222
  Time m_p10CqiLast;
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   223
7895
f20bb71f9b71 Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7893
diff changeset
   224
  /**< 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
   225
  // 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
   226
  Time m_a30CqiPeriocity;
f20bb71f9b71 Aperiodic high layer configured subband CQI (A30 type) implemented
Marco Miozzo <marco.miozzo@cttc.es>
parents: 7893
diff changeset
   227
  Time m_a30CqiLast;
7886
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   228
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   229
  LteUePhySapProvider* m_uePhySapProvider;
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   230
  LteUePhySapUser* m_uePhySapUser;
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   231
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   232
  uint16_t  m_rnti;
b65c16d4da83 LENA project first public release
CTTC
parents: 6852
diff changeset
   233
7893
8dba98ae26ee PHY synchronization
Nicola Baldo <nbaldo@cttc.es>
parents: 7887
diff changeset
   234
  uint16_t m_enbCellId;
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   235
  
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   236
  uint8_t m_transmissionMode;
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8522
diff changeset
   237
  std::vector <double> m_txModeGain;
8148
09e2d03022a2 run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents: 8098
diff changeset
   238
6705
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   239
};
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   240
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   241
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   242
}
422c67049471 LTE module form GSoC project
Giuseppe Piro <g.piro@poliba.it>
parents:
diff changeset
   243
7887
78911c978517 renamed several LTE files and classes
CTTC
parents: 7886
diff changeset
   244
#endif /* LTE_UE_PHY_H */