author | Marco Miozzo <marco.miozzo@cttc.es> |
Thu, 08 Mar 2012 12:03:44 +0100 | |
changeset 8674 | 2bd42ffd4fe8 |
parent 8007 | 845888b95c15 |
child 8714 | 398bbcbb3f42 |
permissions | -rw-r--r-- |
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: Nicola Baldo <nbaldo@cttc.es> |
|
19 |
*/ |
|
20 |
||
21 |
#ifndef LTE_ENB_CMAC_SAP_H |
|
22 |
#define LTE_ENB_CMAC_SAP_H |
|
23 |
||
24 |
#include <ns3/packet.h> |
|
25 |
#include <ns3/ff-mac-common.h> |
|
26 |
#include <ns3/eps-bearer.h> |
|
27 |
||
28 |
namespace ns3 { |
|
29 |
||
30 |
||
31 |
class LteMacSapUser; |
|
32 |
||
33 |
/** |
|
34 |
* Service Access Point (SAP) offered by the eNB MAC to the eNB RRC |
|
35 |
* See Femto Forum MAC Scheduler Interface Specification v 1.11, Figure 1 |
|
36 |
* |
|
37 |
* This is the MAC SAP Provider, i.e., the part of the SAP that contains the MAC methods called by the RRC |
|
38 |
*/ |
|
39 |
class LteEnbCmacSapProvider |
|
40 |
{ |
|
41 |
public: |
|
7909
82b1281ea0a3
Updates for MACOS compilation (virtual destructors and variable types)
mmiozzo
parents:
7886
diff
changeset
|
42 |
virtual ~LteEnbCmacSapProvider (); |
7886 | 43 |
/** |
44 |
* |
|
45 |
* |
|
46 |
* @param ulBandwidth |
|
47 |
* @param dlBandwidth |
|
48 |
*/ |
|
49 |
virtual void ConfigureMac (uint8_t ulBandwidth, |
|
50 |
uint8_t dlBandwidth) = 0; |
|
51 |
||
52 |
||
53 |
virtual void AddUe (uint16_t rnti) = 0; |
|
54 |
||
55 |
||
56 |
/** |
|
57 |
* Logical Channel information to be passed to CmacSapProvider::ConfigureLc |
|
58 |
* |
|
59 |
*/ |
|
60 |
struct LcInfo |
|
61 |
{ |
|
8007 | 62 |
uint16_t rnti; /**< C-RNTI identifying the UE */ |
7886 | 63 |
uint8_t lcId; /**< logical channel identifier */ |
64 |
uint8_t lcGroup; /**< logical channel group */ |
|
65 |
uint8_t qci; /**< QoS Class Identifier */ |
|
66 |
bool isGbr; /**< true if the bearer is GBR, false if the bearer is NON-GBR */ |
|
67 |
uint64_t mbrUl; /**< maximum bitrate in uplink */ |
|
68 |
uint64_t mbrDl; /**< maximum bitrate in downlink */ |
|
69 |
uint64_t gbrUl; /**< guaranteed bitrate in uplink */ |
|
70 |
uint64_t gbrDl; /**< guaranteed bitrate in downlink */ |
|
71 |
}; |
|
72 |
||
73 |
/** |
|
74 |
* Add a new logical channel |
|
75 |
* |
|
76 |
* \param lcinfo |
|
77 |
* \param msu |
|
78 |
*/ |
|
79 |
virtual void AddLc (LcInfo lcinfo, LteMacSapUser* msu) = 0; |
|
80 |
||
81 |
||
82 |
/** |
|
83 |
* Reconfigure an existing logical channel |
|
84 |
* |
|
85 |
* \param lcinfo |
|
86 |
*/ |
|
87 |
virtual void ReconfigureLc (LcInfo lcinfo) = 0; |
|
88 |
||
89 |
||
90 |
/** |
|
91 |
* release an existing logical channel |
|
92 |
* |
|
93 |
* \param rnti |
|
94 |
* \param lcid |
|
95 |
*/ |
|
96 |
virtual void ReleaseLc (uint16_t rnti, uint8_t lcid) = 0; |
|
97 |
||
98 |
||
99 |
}; |
|
100 |
||
101 |
||
102 |
||
103 |
/** |
|
104 |
* Service Access Point (SAP) offered by the MAC to the RRC |
|
105 |
* See Femto Forum MAC Scheduler Interface Specification v 1.11, Figure 1 |
|
106 |
* |
|
107 |
* This is the MAC SAP User, i.e., the part of the SAP that contains the RRC methods called by the MAC |
|
108 |
*/ |
|
109 |
class LteEnbCmacSapUser |
|
110 |
{ |
|
111 |
public: |
|
7909
82b1281ea0a3
Updates for MACOS compilation (virtual destructors and variable types)
mmiozzo
parents:
7886
diff
changeset
|
112 |
virtual ~LteEnbCmacSapUser (); |
7886 | 113 |
/** |
114 |
* notify the result of the last LC config operation |
|
115 |
* |
|
116 |
* \param rnti the rnti of the user |
|
117 |
* \param lcid the logical channel id |
|
118 |
* \param success true if the operation was successful, false otherwise |
|
119 |
*/ |
|
120 |
virtual void NotifyLcConfigResult (uint16_t rnti, uint8_t lcid, bool success) = 0; |
|
121 |
}; |
|
122 |
||
123 |
||
124 |
||
125 |
||
126 |
||
127 |
||
128 |
||
129 |
} // namespace ns3 |
|
130 |
||
131 |
||
132 |
#endif // MAC_SAP_H |