A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
lte-harq-phy.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Marco Miozzo <marco.miozzo@cttc.es>
19
*/
20
21
22
#ifndef LTE_HARQ_PHY_MODULE_H
23
#define LTE_HARQ_PHY_MODULE_H
24
25
26
27
#include <ns3/log.h>
28
#include <ns3/assert.h>
29
#include <
math.h
>
30
#include <vector>
31
#include <map>
32
#include <ns3/simple-ref-count.h>
33
34
35
namespace
ns3 {
36
37
38
39
struct
HarqProcessInfoElement_t
40
{
41
double
m_mi
;
42
uint8_t
m_rv
;
43
uint16_t
m_infoBits
;
44
uint16_t
m_codeBits
;
45
};
46
47
typedef
std::vector <HarqProcessInfoElement_t>
HarqProcessInfoList_t
;
48
55
class
LteHarqPhy
:
public
SimpleRefCount
<LteHarqPhy>
56
{
57
public
:
58
LteHarqPhy
();
59
~LteHarqPhy
();
60
61
void
SubframeIndication
(uint32_t frameNo, uint32_t subframeNo);
62
70
double
GetAccumulatedMiDl
(uint8_t harqProcId, uint8_t layer);
71
79
HarqProcessInfoList_t
GetHarqProcessInfoDl
(uint8_t harqProcId, uint8_t layer);
80
86
double
GetAccumulatedMiUl
(uint16_t rnti);
87
95
HarqProcessInfoList_t
GetHarqProcessInfoUl
(uint16_t rnti, uint8_t harqProcId);
96
106
void
UpdateDlHarqProcessStatus
(uint8_t
id
, uint8_t layer,
double
mi, uint16_t infoBytes, uint16_t codeBytes);
107
113
void
ResetDlHarqProcessStatus
(uint8_t
id
);
114
123
void
UpdateUlHarqProcessStatus
(uint16_t rnti,
double
mi, uint16_t infoBytes, uint16_t codeBytes);
124
130
void
ResetUlHarqProcessStatus
(uint16_t rnti, uint8_t
id
);
131
132
133
134
135
136
private
:
137
138
std::vector <std::vector <HarqProcessInfoList_t> >
m_miDlHarqProcessesInfoMap
;
139
std::map <uint16_t, std::vector <HarqProcessInfoList_t> >
m_miUlHarqProcessesInfoMap
;
140
141
142
};
143
144
145
}
146
147
#endif
/* LTE_HARQ_PHY_MODULE_H */
src
lte
model
lte-harq-phy.h
Generated on Tue May 14 2013 11:08:25 for ns-3 by
1.8.1.2