7886
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
|
2 |
/*
|
|
3 |
* Copyright (c) 2011 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: Manuel Requena <manuel.requena@cttc.es>
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef FF_MAC_SCHED_SAP_H
|
|
22 |
#define FF_MAC_SCHED_SAP_H
|
|
23 |
|
|
24 |
#include <stdint.h>
|
|
25 |
#include <vector>
|
|
26 |
|
|
27 |
#include "ff-mac-common.h"
|
|
28 |
|
|
29 |
|
|
30 |
namespace ns3 {
|
|
31 |
|
|
32 |
/**
|
|
33 |
* \ingroup ff-api
|
|
34 |
* \defgroup FF-API FfMacSchedSap
|
|
35 |
*/
|
|
36 |
/**
|
|
37 |
* \ingroup FfMacSchedSap
|
|
38 |
* \brief Provides the SCHED SAP
|
|
39 |
*
|
|
40 |
* This abstract class defines the MAC Scheduler interface specified in the
|
|
41 |
* Femto Forum Technical Document:
|
|
42 |
* - LTE MAC Scheduler Interface Specification v1.11
|
|
43 |
*
|
|
44 |
* The Technical Document contains a detailed description of the API.
|
|
45 |
* The documentation of this class refers to sections of this Technical Document.
|
|
46 |
*
|
|
47 |
* You can found an example of the implementation of this interface
|
|
48 |
* in the SampleFfMacSchedSapProvider and SampleFfMacSchedSapUser classes
|
|
49 |
*/
|
|
50 |
class FfMacSchedSapProvider
|
|
51 |
{
|
|
52 |
public:
|
|
53 |
virtual ~FfMacSchedSapProvider ();
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Parameters of the API primitives
|
|
57 |
*/
|
|
58 |
|
|
59 |
/**
|
|
60 |
* Parameters of the SCHED_DL_RLC_BUFFER_REQ primitive.
|
|
61 |
* See section 4.2.1 for a detailed description of the parameters.
|
|
62 |
*/
|
|
63 |
struct SchedDlRlcBufferReqParameters
|
|
64 |
{
|
|
65 |
uint16_t m_rnti;
|
|
66 |
uint8_t m_logicalChannelIdentity;
|
|
67 |
uint32_t m_rlcTransmissionQueueSize;
|
|
68 |
uint16_t m_rlcTransmissionQueueHolDelay;
|
|
69 |
uint32_t m_rlcRetransmissionQueueSize;
|
|
70 |
uint16_t m_rlcRetransmissionHolDelay;
|
|
71 |
uint16_t m_rlcStatusPduSize;
|
|
72 |
|
|
73 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
74 |
};
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Parameters of the SCHED_DL_PAGING_BUFFER_REQ primitive.
|
|
78 |
* See section 4.2.2 for a detailed description of the parameters.
|
|
79 |
*/
|
|
80 |
struct SchedDlPagingBufferReqParameters
|
|
81 |
{
|
|
82 |
uint16_t m_rnti;
|
|
83 |
std::vector <struct PagingInfoListElement_s> m_pagingInfoList;
|
|
84 |
|
|
85 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
86 |
};
|
|
87 |
|
|
88 |
/**
|
|
89 |
* Parameters of the SCHED_DL_MAC_BUFFER_REQ primitive.
|
|
90 |
* See section 4.2.3 for a detailed description of the parameters.
|
|
91 |
*/
|
|
92 |
struct SchedDlMacBufferReqParameters
|
|
93 |
{
|
|
94 |
uint16_t m_rnti;
|
|
95 |
enum CeBitmap_e m_ceBitmap;
|
|
96 |
|
|
97 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
98 |
};
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Parameters of the SCHED_DL_TRIGGER_REQ primitive.
|
|
102 |
* See section 4.2.4 for a detailed description of the parameters.
|
|
103 |
*/
|
|
104 |
struct SchedDlTriggerReqParameters
|
|
105 |
{
|
|
106 |
uint16_t m_sfnSf;
|
|
107 |
std::vector <struct DlInfoListElement_s> m_dlInfoList;
|
|
108 |
|
|
109 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
110 |
};
|
|
111 |
|
|
112 |
/**
|
|
113 |
* Parameters of the SCHED_DL_RACH_INFO_REQ primitive.
|
|
114 |
* See section 4.2.5 for a detailed description of the parameters.
|
|
115 |
*/
|
|
116 |
struct SchedDlRachInfoReqParameters
|
|
117 |
{
|
|
118 |
uint16_t m_sfnSf;
|
|
119 |
std::vector <struct RachListElement_s> m_rachList;
|
|
120 |
|
|
121 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
122 |
};
|
|
123 |
|
|
124 |
/**
|
|
125 |
* Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
|
|
126 |
* See section 4.2.6 for a detailed description of the parameters.
|
|
127 |
*/
|
|
128 |
struct SchedDlCqiInfoReqParameters
|
|
129 |
{
|
|
130 |
uint16_t m_sfnSf;
|
|
131 |
std::vector <struct CqiListElement_s> m_cqiList;
|
|
132 |
|
|
133 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
134 |
};
|
|
135 |
|
|
136 |
/**
|
|
137 |
* Parameters of the SCHED_UL_TRIGGER_REQ primitive.
|
|
138 |
* See section 4.2.8 for a detailed description of the parameters.
|
|
139 |
*/
|
|
140 |
struct SchedUlTriggerReqParameters
|
|
141 |
{
|
|
142 |
uint16_t m_sfnSf;
|
|
143 |
std::vector <struct UlInfoListElement_s> m_ulInfoList;
|
|
144 |
|
|
145 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
146 |
};
|
|
147 |
|
|
148 |
/**
|
|
149 |
* Parameters of the SCHED_UL_NOISE_INTERFERENCE_REQ primitive.
|
|
150 |
* See section 4.2.9 for a detailed description of the parameters.
|
|
151 |
*/
|
|
152 |
struct SchedUlNoiseInterferenceReqParameters
|
|
153 |
{
|
|
154 |
uint16_t m_sfnSf;
|
|
155 |
uint16_t m_rip;
|
|
156 |
uint16_t m_tnp;
|
|
157 |
|
|
158 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
159 |
};
|
|
160 |
|
|
161 |
/**
|
|
162 |
* Parameters of the SCHED_UL_SR_INFO_REQ primitive.
|
|
163 |
* See section 4.2.10 for a detailed description of the parameters.
|
|
164 |
*/
|
|
165 |
struct SchedUlSrInfoReqParameters
|
|
166 |
{
|
|
167 |
uint16_t m_sfnSf;
|
|
168 |
std::vector <struct SrListElement_s> m_srList;
|
|
169 |
|
|
170 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
171 |
};
|
|
172 |
|
|
173 |
/**
|
|
174 |
* Parameters of the SCHED_UL_MAC_CTRL_INFO_REQ primitive.
|
|
175 |
* See section 4.2.11 for a detailed description of the parameters.
|
|
176 |
*/
|
|
177 |
struct SchedUlMacCtrlInfoReqParameters
|
|
178 |
{
|
|
179 |
uint16_t m_sfnSf;
|
|
180 |
std::vector <struct MacCeListElement_s> m_macCeList;
|
|
181 |
|
|
182 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
183 |
};
|
|
184 |
|
|
185 |
/**
|
|
186 |
* Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
|
|
187 |
* See section 4.2.12 for a detailed description of the parameters.
|
|
188 |
*/
|
|
189 |
struct SchedUlCqiInfoReqParameters
|
|
190 |
{
|
|
191 |
uint16_t m_sfnSf;
|
|
192 |
struct UlCqi_s m_ulCqi;
|
|
193 |
|
|
194 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
195 |
};
|
|
196 |
|
|
197 |
//
|
|
198 |
// SCHED - MAC Scheduler SAP primitives
|
|
199 |
// (See 4.2 for description of the primitives)
|
|
200 |
//
|
|
201 |
|
|
202 |
virtual void SchedDlRlcBufferReq (const struct SchedDlRlcBufferReqParameters& params) = 0;
|
|
203 |
|
|
204 |
virtual void SchedDlPagingBufferReq (const struct SchedDlPagingBufferReqParameters& params) = 0;
|
|
205 |
|
|
206 |
virtual void SchedDlMacBufferReq (const struct SchedDlMacBufferReqParameters& params) = 0;
|
|
207 |
|
|
208 |
virtual void SchedDlTriggerReq (const struct SchedDlTriggerReqParameters& params) = 0;
|
|
209 |
|
|
210 |
virtual void SchedDlRachInfoReq (const struct SchedDlRachInfoReqParameters& params) = 0;
|
|
211 |
|
|
212 |
virtual void SchedDlCqiInfoReq (const struct SchedDlCqiInfoReqParameters& params) = 0;
|
|
213 |
|
|
214 |
virtual void SchedUlTriggerReq (const struct SchedUlTriggerReqParameters& params) = 0;
|
|
215 |
|
|
216 |
virtual void SchedUlNoiseInterferenceReq (const struct SchedUlNoiseInterferenceReqParameters& params) = 0;
|
|
217 |
|
|
218 |
virtual void SchedUlSrInfoReq (const struct SchedUlSrInfoReqParameters& params) = 0;
|
|
219 |
|
|
220 |
virtual void SchedUlMacCtrlInfoReq (const struct SchedUlMacCtrlInfoReqParameters& params) = 0;
|
|
221 |
|
|
222 |
virtual void SchedUlCqiInfoReq (const struct SchedUlCqiInfoReqParameters& params) = 0;
|
|
223 |
|
|
224 |
private:
|
|
225 |
};
|
|
226 |
|
|
227 |
|
|
228 |
class FfMacSchedSapUser
|
|
229 |
{
|
|
230 |
public:
|
|
231 |
virtual ~FfMacSchedSapUser ();
|
|
232 |
|
|
233 |
/**
|
|
234 |
* Parameters of the API primitives
|
|
235 |
*/
|
|
236 |
|
|
237 |
/**
|
|
238 |
* Parameters of the SCHED_DL_CONFIG_IND primitive.
|
|
239 |
* See section 4.2.7 for a detailed description of the parameters.
|
|
240 |
*/
|
|
241 |
struct SchedDlConfigIndParameters
|
|
242 |
{
|
|
243 |
std::vector <struct BuildDataListElement_s> m_buildDataList;
|
|
244 |
std::vector <struct BuildRarListElement_s> m_buildRarList;
|
|
245 |
std::vector <struct BuildBroadcastListElement_s> m_buildBroadcastList;
|
|
246 |
|
|
247 |
uint8_t m_nrOfPdcchOfdmSymbols;
|
|
248 |
|
|
249 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
250 |
};
|
|
251 |
|
|
252 |
/**
|
|
253 |
* Parameters of the SCHED_UL_CONFIG_IND primitive.
|
|
254 |
* See section 4.2.13 for a detailed description of the parameters.
|
|
255 |
*/
|
|
256 |
struct SchedUlConfigIndParameters
|
|
257 |
{
|
|
258 |
std::vector <struct UlDciListElement_s> m_dciList;
|
|
259 |
std::vector <struct PhichListElement_s> m_phichList;
|
|
260 |
|
|
261 |
std::vector <struct VendorSpecificListElement_s> m_vendorSpecificList;
|
|
262 |
};
|
|
263 |
|
|
264 |
//
|
|
265 |
// SCHED - MAC Scheduler SAP primitives
|
|
266 |
// (See 4.2 for description of the primitives)
|
|
267 |
//
|
|
268 |
|
|
269 |
virtual void SchedDlConfigInd (const struct SchedDlConfigIndParameters& params) = 0;
|
|
270 |
|
|
271 |
virtual void SchedUlConfigInd (const struct SchedUlConfigIndParameters& params) = 0;
|
|
272 |
|
|
273 |
private:
|
|
274 |
};
|
|
275 |
|
|
276 |
} // namespace ns3
|
|
277 |
|
|
278 |
#endif /* FF_MAC_SCHED_SAP_H */
|