OLD | NEW |
(Empty) | |
| 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2011, 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: Nicola Baldo <nbaldo@cttc.es>, |
| 19 * Marco Miozzo <mmiozzo@cttc.es> |
| 20 * Modified by: NIST |
| 21 */ |
| 22 |
| 23 #ifndef NIST_LTE_UE_CPHY_SAP_H |
| 24 #define NIST_LTE_UE_CPHY_SAP_H |
| 25 |
| 26 #include <stdint.h> |
| 27 #include <ns3/ptr.h> |
| 28 |
| 29 #include <ns3/nist-lte-rrc-sap.h> |
| 30 #include <ns3/nist-sl-pool.h> |
| 31 |
| 32 namespace ns3 { |
| 33 |
| 34 |
| 35 class NistLteEnbNetDevice; |
| 36 |
| 37 /** |
| 38 * Service Access Point (SAP) offered by the UE PHY to the UE RRC for control pu
rposes |
| 39 * |
| 40 * This is the PHY SAP Provider, i.e., the part of the SAP that contains |
| 41 * the PHY methods called by the MAC |
| 42 */ |
| 43 class NistLteUeCphySapProvider |
| 44 { |
| 45 public: |
| 46 |
| 47 /**· |
| 48 * destructor |
| 49 */ |
| 50 virtual ~NistLteUeCphySapProvider (); |
| 51 |
| 52 /**· |
| 53 * reset the PHY |
| 54 *· |
| 55 */ |
| 56 virtual void Reset () = 0; |
| 57 |
| 58 /** |
| 59 * \brief Tell the PHY entity to listen to PSS from surrounding cells and |
| 60 * measure the RSRP. |
| 61 * \param dlEarfcn the downlink carrier frequency (EARFCN) to listen to |
| 62 * |
| 63 * This function will instruct this PHY instance to listen to the DL channel |
| 64 * over the bandwidth of 6 RB at the frequency associated with the given |
| 65 * EARFCN. |
| 66 * |
| 67 * After this, it will start receiving Primary Synchronization Signal (PSS) |
| 68 * and periodically returning measurement reports to RRC via |
| 69 * NistLteUeCphySapUser::ReportNistUeMeasurements function. |
| 70 */ |
| 71 virtual void StartCellSearch (uint16_t dlEarfcn) = 0; |
| 72 |
| 73 /** |
| 74 * \brief Tell the PHY entity to synchronize with a given eNodeB over the |
| 75 * currently active EARFCN for communication purposes. |
| 76 * \param cellId the ID of the eNodeB to synchronize with |
| 77 * |
| 78 * By synchronizing, the PHY will start receiving various information |
| 79 * transmitted by the eNodeB. For instance, when receiving system information, |
| 80 * the message will be relayed to RRC via |
| 81 * NistLteUeCphySapUser::RecvNistMasterInformationBlock and |
| 82 * NistLteUeCphySapUser::RecvNistSystemInformationBlockType1 functions. |
| 83 * |
| 84 * Initially, the PHY will be configured to listen to 6 RBs of BCH. |
| 85 * NistLteUeCphySapProvider::SetDlBandwidth can be called afterwards to increa
se |
| 86 * the bandwidth. |
| 87 */ |
| 88 virtual void SynchronizeWithEnb (uint16_t cellId) = 0; |
| 89 |
| 90 /** |
| 91 * \brief Tell the PHY entity to align to the given EARFCN and synchronize |
| 92 * with a given eNodeB for communication purposes. |
| 93 * \param cellId the ID of the eNodeB to synchronize with |
| 94 * \param dlEarfcn the downlink carrier frequency (EARFCN) |
| 95 * |
| 96 * By synchronizing, the PHY will start receiving various information |
| 97 * transmitted by the eNodeB. For instance, when receiving system information, |
| 98 * the message will be relayed to RRC via |
| 99 * NistLteUeCphySapUser::RecvNistMasterInformationBlock and |
| 100 * NistLteUeCphySapUser::RecvNistSystemInformationBlockType1 functions. |
| 101 * |
| 102 * Initially, the PHY will be configured to listen to 6 RBs of BCH. |
| 103 * NistLteUeCphySapProvider::SetDlBandwidth can be called afterwards to increa
se |
| 104 * the bandwidth. |
| 105 */ |
| 106 virtual void SynchronizeWithEnb (uint16_t cellId, uint16_t dlEarfcn) = 0; |
| 107 |
| 108 /** |
| 109 * \param dlBandwidth the DL bandwidth in number of PRBs |
| 110 */ |
| 111 virtual void SetDlBandwidth (uint8_t dlBandwidth) = 0; |
| 112 |
| 113 /**· |
| 114 * \brief Configure uplink (normally done after reception of SIB2) |
| 115 *· |
| 116 * \param ulEarfcn the uplink carrier frequency (EARFCN) |
| 117 * \param ulBandwidth the UL bandwidth in number of PRBs |
| 118 */ |
| 119 virtual void ConfigureUplink (uint16_t ulEarfcn, uint8_t ulBandwidth) = 0; |
| 120 |
| 121 /** |
| 122 * \brief Configure referenceSignalPower |
| 123 * |
| 124 * \param referenceSignalPower received from eNB in SIB2 |
| 125 */ |
| 126 virtual void ConfigureReferenceSignalPower (int8_t referenceSignalPower) = 0; |
| 127 |
| 128 /**· |
| 129 *· |
| 130 * \param rnti the cell-specific UE identifier |
| 131 */ |
| 132 virtual void SetRnti (uint16_t rnti) = 0; |
| 133 |
| 134 /** |
| 135 * \param txMode the transmissionMode of the user |
| 136 */ |
| 137 virtual void SetTransmissionMode (uint8_t txMode) = 0; |
| 138 |
| 139 /** |
| 140 * \param srcCi the SRS configuration index |
| 141 */ |
| 142 virtual void SetSrsConfigurationIndex (uint16_t srcCi) = 0; |
| 143 |
| 144 /** |
| 145 * \param pa the P_A value |
| 146 */ |
| 147 virtual void SetPa (double pa) = 0; |
| 148 |
| 149 //discovery |
| 150 /** |
| 151 * set the current discovery transmit pool |
| 152 * \param pool the transmission pool |
| 153 */ |
| 154 virtual void SetSlTxPool (Ptr<SidelinkTxDiscResourcePool> pool) = 0; |
| 155 |
| 156 /** |
| 157 * remove the discovery transmission pool· |
| 158 */ |
| 159 virtual void RemoveSlTxPool (bool disc) = 0; |
| 160 |
| 161 /** |
| 162 * set the discovery receiving pools |
| 163 * \param pools the receiving pools |
| 164 */ |
| 165 virtual void SetSlRxPools (std::list<Ptr<SidelinkRxDiscResourcePool> > pools)
= 0; |
| 166 |
| 167 |
| 168 /** |
| 169 * set discovery annoucement apps |
| 170 * \param apps applications we are interested in announcing |
| 171 */ |
| 172 virtual void AddDiscTxApps (std::list<uint32_t> apps) = 0; |
| 173 |
| 174 /** |
| 175 * set discovery monitoring apps |
| 176 * \param apps applications we are interested in monitoring |
| 177 */ |
| 178 virtual void AddDiscRxApps (std::list<uint32_t> apps) = 0; |
| 179 |
| 180 |
| 181 /** |
| 182 * Set grant for discovery |
| 183 */ |
| 184 virtual void SetDiscGrantInfo (uint8_t resPsdch) = 0; |
| 185 |
| 186 |
| 187 //communication |
| 188 /** |
| 189 * set the current sidelink transmit pool |
| 190 * \param pool the transmission pool |
| 191 */ |
| 192 virtual void SetSlTxPool (Ptr<SidelinkTxCommResourcePool> pool) = 0; |
| 193 |
| 194 /** |
| 195 * remove the sidelink transmission pool· |
| 196 * \param dstL2Id the destination |
| 197 */ |
| 198 virtual void RemoveSlTxPool () = 0; |
| 199 |
| 200 /** |
| 201 * set the sidelink receiving pools |
| 202 * \param destinations The list of destinations (group) to monitor |
| 203 * \param pools the sidelink receiving pools |
| 204 */ |
| 205 virtual void SetSlRxPools (std::list<Ptr<SidelinkRxCommResourcePool> > pools)
= 0; |
| 206 |
| 207 /** |
| 208 * add a new destination to listen for |
| 209 * \param a destination to listen for |
| 210 */ |
| 211 virtual void AddSlDestination (uint32_t destination) = 0; |
| 212 |
| 213 /** |
| 214 * remove a destination to listen for |
| 215 * \param destination the destination that is no longer of interest |
| 216 */ |
| 217 virtual void RemoveSlDestination (uint32_t destination) = 0; |
| 218 ·· |
| 219 /** |
| 220 * Pass to the PHY entity the SLSSID to be set |
| 221 * \param slssid the SLSSID |
| 222 */ |
| 223 virtual void SetSlssId (uint64_t slssid) = 0; |
| 224 /** |
| 225 * Pass to the PHY entity a SLSS to be sent |
| 226 * \param mibSl the MIB-SL to send |
| 227 */ |
| 228 virtual void SendSlss (NistLteRrcSap::MasterInformationBlockSL mibSl) = 0; |
| 229 /** |
| 230 * Notify the PHY entity that a SyncRef has been selected and that it should
apply |
| 231 * the corresponding change of timing when appropriate |
| 232 * \param mibSl the MIB-SL containing the information of the selected SyncRef |
| 233 */ |
| 234 virtual void SynchronizeToSyncRef (NistLteRrcSap::MasterInformationBlockSL mi
bSl) = 0; |
| 235 |
| 236 }; |
| 237 |
| 238 |
| 239 /** |
| 240 * Service Access Point (SAP) offered by the UE PHY to the UE RRC for control pu
rposes |
| 241 * |
| 242 * This is the CPHY SAP User, i.e., the part of the SAP that contains the RRC |
| 243 * methods called by the PHY |
| 244 */ |
| 245 class NistLteUeCphySapUser |
| 246 { |
| 247 public: |
| 248 |
| 249 /**· |
| 250 * destructor |
| 251 */ |
| 252 virtual ~NistLteUeCphySapUser (); |
| 253 |
| 254 |
| 255 /** |
| 256 * Parameters of the ReportNistUeMeasurements primitive: RSRP [dBm] and RSRQ [
dB] |
| 257 * See section 5.1.1 and 5.1.3 of TS 36.214 |
| 258 */ |
| 259 struct NistUeMeasurementsElement |
| 260 { |
| 261 uint16_t m_cellId; ///< Cell ID of the measured cell |
| 262 double m_rsrp; ///< Measured RSRP [dBm] |
| 263 double m_rsrq; ///< Measured RSRQ [dB] |
| 264 }; |
| 265 |
| 266 /** |
| 267 * List of PSS measurements to be reported to the RRC |
| 268 */ |
| 269 struct NistUeMeasurementsParameters |
| 270 { |
| 271 std::vector <struct NistUeMeasurementsElement> m_ueMeasurementsList; ///< Li
st of PSS measurements to be reported to the RRC |
| 272 }; |
| 273 |
| 274 /** |
| 275 * Parameters for reporting S-RSRP measurements to the RRC by the PHY |
| 276 */ |
| 277 struct NistUeSlssMeasurementReportElement |
| 278 { |
| 279 uint16_t m_slssid; ///< SLSSID of the measured SyncRef |
| 280 double m_srsrp; ///< Measured S-RSRP [dBm] |
| 281 uint16_t m_offset; ///< Reception offset |
| 282 }; |
| 283 /** |
| 284 * List of SLSS measurements to be reported to the RRC by the PHY |
| 285 */ |
| 286 struct NistUeSlssMeasurementsParameters |
| 287 { |
| 288 std::vector <struct NistUeSlssMeasurementReportElement> m_ueSlssMeasuremen
tsList; ///< List of SLSS measurements to be reported to the RRC by the PHY |
| 289 }; |
| 290 |
| 291 /** |
| 292 * \brief Relay an MIB message from the PHY entity to the RRC layer. |
| 293 * \param cellId the ID of the eNodeB where the message originates from |
| 294 * \param mib the Master Information Block message |
| 295 *· |
| 296 * This function is typically called after PHY receives an MIB message over |
| 297 * the BCH. |
| 298 */ |
| 299 virtual void RecvNistMasterInformationBlock (uint16_t cellId, |
| 300 NistLteRrcSap::NistMasterInformationB
lock mib) = 0; |
| 301 |
| 302 /** |
| 303 * \brief Relay an SIB1 message from the PHY entity to the RRC layer. |
| 304 * \param cellId the ID of the eNodeB where the message originates from |
| 305 * \param sib1 the System Information Block Type 1 message |
| 306 * |
| 307 * This function is typically called after PHY receives an SIB1 message over |
| 308 * the BCH. |
| 309 */ |
| 310 virtual void RecvNistSystemInformationBlockType1 (uint16_t cellId, |
| 311 NistLteRrcSap::NistSystemInforma
tionBlockType1 sib1) = 0; |
| 312 |
| 313 /** |
| 314 * \brief Send a report of RSRP and RSRQ values perceived from PSS by the PHY |
| 315 * entity (after applying layer-1 filtering) to the RRC layer. |
| 316 * \param params the structure containing a vector of cellId, RSRP and RSRQ |
| 317 */ |
| 318 virtual void ReportNistUeMeasurements (NistUeMeasurementsParameters params) =
0; |
| 319 |
| 320 /** |
| 321 * \brief Send a report of S-RSRP values perceived from SLSSs by the PHY |
| 322 * entity (after applying layer-1 filtering) to the RRC layer. |
| 323 * \param params the structure containing a list of |
| 324 * (SyncRef SLSSID, SyncRef offset and S-RSRP value) |
| 325 * \param slssid the SLSSID of the evaluated SyncRef if corresponding |
| 326 * \param offset the offset of the evaluated SyncRef if corresponding |
| 327 */ |
| 328 virtual void ReportSlssMeasurements (NistLteUeCphySapUser::NistUeSlssMeasurem
entsParameters params, uint64_t slssid, uint16_t offset) = 0; |
| 329 /** |
| 330 * The PHY indicated to the RRC the current subframe indication |
| 331 * \param frameNo the current frameNo |
| 332 * \param subFrameNo the current subframeNo |
| 333 */ |
| 334 virtual void ReportSubframeIndication (uint16_t frameNo, uint16_t subFrameNo)
= 0; |
| 335 /** |
| 336 * The PHY pass a received MIB-SL to the RRC |
| 337 * \param mibSl the received MIB-SL |
| 338 */ |
| 339 virtual void ReceiveMibSL (NistLteRrcSap::MasterInformationBlockSL mibSl) = 0
; |
| 340 /** |
| 341 * Notify the successful change of timing/SyncRef, and store the selected |
| 342 * (current) SyncRef information |
| 343 * \param mibSl the SyncRef MIB-SL containing its information |
| 344 * \param frameNo the current frameNo |
| 345 * \param subFrameNo the current subframeNo |
| 346 */ |
| 347 virtual void ReportChangeOfSyncRef (NistLteRrcSap::MasterInformationBlockSL m
ibSl, uint16_t frameNo, uint16_t subFrameNo) = 0; |
| 348 }; |
| 349 |
| 350 |
| 351 |
| 352 |
| 353 /** |
| 354 * Template for the implementation of the NistLteUeCphySapProvider as a member |
| 355 * of an owner class of type C to which all methods are forwarded |
| 356 *· |
| 357 */ |
| 358 template <class C> |
| 359 class NistMemberLteUeCphySapProvider : public NistLteUeCphySapProvider |
| 360 { |
| 361 public: |
| 362 NistMemberLteUeCphySapProvider (C* owner); |
| 363 |
| 364 // inherited from NistLteUeCphySapProvider |
| 365 virtual void Reset (); |
| 366 virtual void StartCellSearch (uint16_t dlEarfcn); |
| 367 virtual void SynchronizeWithEnb (uint16_t cellId); |
| 368 virtual void SynchronizeWithEnb (uint16_t cellId, uint16_t dlEarfcn); |
| 369 virtual void SetDlBandwidth (uint8_t dlBandwidth); |
| 370 virtual void ConfigureUplink (uint16_t ulEarfcn, uint8_t ulBandwidth); |
| 371 virtual void ConfigureReferenceSignalPower (int8_t referenceSignalPower); |
| 372 virtual void SetRnti (uint16_t rnti); |
| 373 virtual void SetTransmissionMode (uint8_t txMode); |
| 374 virtual void SetSrsConfigurationIndex (uint16_t srcCi); |
| 375 virtual void SetPa (double pa); |
| 376 //discovery |
| 377 virtual void SetSlTxPool (Ptr<SidelinkTxDiscResourcePool> pool); |
| 378 virtual void RemoveSlTxPool (bool disc); |
| 379 virtual void SetSlRxPools (std::list<Ptr<SidelinkRxDiscResourcePool> > pools); |
| 380 virtual void SetDiscGrantInfo (uint8_t resPsdch); |
| 381 virtual void AddDiscTxApps (std::list<uint32_t> apps); |
| 382 virtual void AddDiscRxApps (std::list<uint32_t> apps); |
| 383 //communication |
| 384 virtual void SetSlTxPool (Ptr<SidelinkTxCommResourcePool> pool); |
| 385 virtual void RemoveSlTxPool (); |
| 386 virtual void SetSlRxPools (std::list<Ptr<SidelinkRxCommResourcePool> > pools); |
| 387 virtual void AddSlDestination (uint32_t destination); |
| 388 virtual void RemoveSlDestination (uint32_t destination); |
| 389 virtual void SetSlssId (uint64_t slssid); |
| 390 virtual void SendSlss (NistLteRrcSap::MasterInformationBlockSL mibSl); |
| 391 virtual void SynchronizeToSyncRef (NistLteRrcSap::MasterInformationBlockSL mib
Sl); |
| 392 |
| 393 |
| 394 private: |
| 395 NistMemberLteUeCphySapProvider (); |
| 396 C* m_owner; |
| 397 }; |
| 398 |
| 399 template <class C> |
| 400 NistMemberLteUeCphySapProvider<C>::NistMemberLteUeCphySapProvider (C* owner) |
| 401 : m_owner (owner) |
| 402 { |
| 403 } |
| 404 |
| 405 template <class C> |
| 406 NistMemberLteUeCphySapProvider<C>::NistMemberLteUeCphySapProvider () |
| 407 { |
| 408 } |
| 409 |
| 410 template <class C> |
| 411 void· |
| 412 NistMemberLteUeCphySapProvider<C>::Reset () |
| 413 { |
| 414 m_owner->DoReset (); |
| 415 } |
| 416 |
| 417 template <class C> |
| 418 void |
| 419 NistMemberLteUeCphySapProvider<C>::StartCellSearch (uint16_t dlEarfcn) |
| 420 { |
| 421 m_owner->DoStartCellSearch (dlEarfcn); |
| 422 } |
| 423 |
| 424 template <class C> |
| 425 void |
| 426 NistMemberLteUeCphySapProvider<C>::SynchronizeWithEnb (uint16_t cellId) |
| 427 { |
| 428 m_owner->DoSynchronizeWithEnb (cellId); |
| 429 } |
| 430 |
| 431 template <class C> |
| 432 void |
| 433 NistMemberLteUeCphySapProvider<C>::SynchronizeWithEnb (uint16_t cellId, uint16_t
dlEarfcn) |
| 434 { |
| 435 m_owner->DoSynchronizeWithEnb (cellId, dlEarfcn); |
| 436 } |
| 437 |
| 438 template <class C> |
| 439 void |
| 440 NistMemberLteUeCphySapProvider<C>::SetDlBandwidth (uint8_t dlBandwidth) |
| 441 { |
| 442 m_owner->DoSetDlBandwidth (dlBandwidth); |
| 443 } |
| 444 |
| 445 template <class C> |
| 446 void· |
| 447 NistMemberLteUeCphySapProvider<C>::ConfigureUplink (uint16_t ulEarfcn, uint8_t u
lBandwidth) |
| 448 { |
| 449 m_owner->DoConfigureUplink (ulEarfcn, ulBandwidth); |
| 450 } |
| 451 |
| 452 template <class C> |
| 453 void· |
| 454 NistMemberLteUeCphySapProvider<C>::ConfigureReferenceSignalPower (int8_t referen
ceSignalPower) |
| 455 { |
| 456 m_owner->DoConfigureReferenceSignalPower (referenceSignalPower); |
| 457 } |
| 458 |
| 459 template <class C> |
| 460 void |
| 461 NistMemberLteUeCphySapProvider<C>::SetRnti (uint16_t rnti) |
| 462 { |
| 463 m_owner->DoSetRnti (rnti); |
| 464 } |
| 465 |
| 466 template <class C> |
| 467 void· |
| 468 NistMemberLteUeCphySapProvider<C>::SetTransmissionMode (uint8_t txMode) |
| 469 { |
| 470 m_owner->DoSetTransmissionMode (txMode); |
| 471 } |
| 472 |
| 473 template <class C> |
| 474 void· |
| 475 NistMemberLteUeCphySapProvider<C>::SetSrsConfigurationIndex (uint16_t srcCi) |
| 476 { |
| 477 m_owner->DoSetSrsConfigurationIndex (srcCi); |
| 478 } |
| 479 |
| 480 template <class C> |
| 481 void |
| 482 NistMemberLteUeCphySapProvider<C>::SetPa (double pa) |
| 483 { |
| 484 m_owner->DoSetPa (pa); |
| 485 } |
| 486 |
| 487 //discovery |
| 488 template <class C> |
| 489 void NistMemberLteUeCphySapProvider<C>::SetSlTxPool (Ptr<SidelinkTxDiscResourceP
ool> pool) |
| 490 { |
| 491 m_owner->DoSetSlTxPool (pool); |
| 492 } |
| 493 |
| 494 template <class C> |
| 495 void NistMemberLteUeCphySapProvider<C>::RemoveSlTxPool (bool disc) |
| 496 { |
| 497 m_owner->DoRemoveSlTxPool (disc); |
| 498 } |
| 499 |
| 500 template <class C> |
| 501 void NistMemberLteUeCphySapProvider<C>::SetSlRxPools (std::list<Ptr<SidelinkRxDi
scResourcePool> > pools) |
| 502 { |
| 503 m_owner->DoSetSlRxPools (pools); |
| 504 } |
| 505 |
| 506 template <class C> |
| 507 void NistMemberLteUeCphySapProvider<C>::SetDiscGrantInfo (uint8_t resPsdch)· |
| 508 { |
| 509 m_owner->DoSetDiscGrantInfo (resPsdch); |
| 510 } |
| 511 |
| 512 template <class C> |
| 513 void NistMemberLteUeCphySapProvider<C>::AddDiscTxApps (std::list<uint32_t> apps) |
| 514 { |
| 515 m_owner->DoAddDiscTxApps (apps); |
| 516 } |
| 517 |
| 518 template <class C> |
| 519 void NistMemberLteUeCphySapProvider<C>::AddDiscRxApps (std::list<uint32_t> apps) |
| 520 { |
| 521 m_owner->DoAddDiscRxApps (apps); |
| 522 } |
| 523 |
| 524 |
| 525 //communication |
| 526 template <class C> |
| 527 void |
| 528 NistMemberLteUeCphySapProvider<C>::SetSlTxPool (Ptr<SidelinkTxCommResourcePool>
pool) |
| 529 { |
| 530 m_owner->DoSetSlTxPool (pool); |
| 531 } |
| 532 |
| 533 template <class C> |
| 534 void NistMemberLteUeCphySapProvider<C>::RemoveSlTxPool () |
| 535 { |
| 536 m_owner->DoRemoveSlTxPool (); |
| 537 } |
| 538 |
| 539 template <class C> |
| 540 void NistMemberLteUeCphySapProvider<C>::SetSlRxPools (std::list<Ptr<SidelinkRxCo
mmResourcePool> > pools) |
| 541 { |
| 542 m_owner->DoSetSlRxPools (pools); |
| 543 } |
| 544 |
| 545 template <class C> |
| 546 void NistMemberLteUeCphySapProvider<C>::AddSlDestination (uint32_t destination) |
| 547 { |
| 548 m_owner->DoAddSlDestination (destination); |
| 549 } |
| 550 |
| 551 template <class C> |
| 552 void NistMemberLteUeCphySapProvider<C>::RemoveSlDestination (uint32_t destinatio
n) |
| 553 { |
| 554 m_owner->DoRemoveSlDestination (destination); |
| 555 } |
| 556 |
| 557 template <class C> |
| 558 void |
| 559 NistMemberLteUeCphySapProvider<C>::SetSlssId (uint64_t slssid) |
| 560 { |
| 561 m_owner->DoSetSlssId (slssid); |
| 562 } |
| 563 |
| 564 template <class C> |
| 565 void |
| 566 NistMemberLteUeCphySapProvider<C>::SendSlss (NistLteRrcSap::MasterInformationBlo
ckSL mibSl) |
| 567 { |
| 568 m_owner->DoSendSlss (mibSl); |
| 569 } |
| 570 |
| 571 template <class C> |
| 572 void |
| 573 NistMemberLteUeCphySapProvider<C>::SynchronizeToSyncRef (NistLteRrcSap::MasterIn
formationBlockSL mibSl) |
| 574 { |
| 575 m_owner->DoSynchronizeToSyncRef (mibSl); |
| 576 } |
| 577 |
| 578 /** |
| 579 * Template for the implementation of the NistLteUeCphySapUser as a member |
| 580 * of an owner class of type C to which all methods are forwarded |
| 581 *· |
| 582 */ |
| 583 template <class C> |
| 584 class NistMemberLteUeCphySapUser : public NistLteUeCphySapUser |
| 585 { |
| 586 public: |
| 587 NistMemberLteUeCphySapUser (C* owner); |
| 588 |
| 589 // methods inherited from NistLteUeCphySapUser go here |
| 590 virtual void RecvNistMasterInformationBlock (uint16_t cellId, |
| 591 NistLteRrcSap::NistMasterInformationB
lock mib); |
| 592 virtual void RecvNistSystemInformationBlockType1 (uint16_t cellId, |
| 593 NistLteRrcSap::NistSystemInforma
tionBlockType1 sib1); |
| 594 virtual void ReportNistUeMeasurements (NistLteUeCphySapUser::NistUeMeasurement
sParameters params); |
| 595 |
| 596 virtual void ReportSlssMeasurements (NistLteUeCphySapUser::NistUeSlssMeasureme
ntsParameters params, uint64_t slssid, uint16_t offset); |
| 597 virtual void ReportSubframeIndication (uint16_t frameNo, uint16_t subFrameNo); |
| 598 virtual void ReceiveMibSL (NistLteRrcSap::MasterInformationBlockSL mibSL); |
| 599 virtual void ReportChangeOfSyncRef (NistLteRrcSap::MasterInformationBlockSL mi
bSL, uint16_t frameNo, uint16_t subFrameNo); |
| 600 |
| 601 private: |
| 602 NistMemberLteUeCphySapUser (); |
| 603 C* m_owner; |
| 604 }; |
| 605 |
| 606 template <class C> |
| 607 NistMemberLteUeCphySapUser<C>::NistMemberLteUeCphySapUser (C* owner) |
| 608 : m_owner (owner) |
| 609 { |
| 610 } |
| 611 |
| 612 template <class C> |
| 613 NistMemberLteUeCphySapUser<C>::NistMemberLteUeCphySapUser () |
| 614 { |
| 615 } |
| 616 |
| 617 template <class C>· |
| 618 void· |
| 619 NistMemberLteUeCphySapUser<C>::RecvNistMasterInformationBlock (uint16_t cellId, |
| 620 NistLteRrcSap::NistMaster
InformationBlock mib) |
| 621 { |
| 622 m_owner->DoRecvNistMasterInformationBlock (cellId, mib); |
| 623 } |
| 624 |
| 625 template <class C> |
| 626 void |
| 627 NistMemberLteUeCphySapUser<C>::RecvNistSystemInformationBlockType1 (uint16_t cel
lId, |
| 628 NistLteRrcSap::NistS
ystemInformationBlockType1 sib1) |
| 629 { |
| 630 m_owner->DoRecvNistSystemInformationBlockType1 (cellId, sib1); |
| 631 } |
| 632 |
| 633 template <class C> |
| 634 void |
| 635 NistMemberLteUeCphySapUser<C>::ReportNistUeMeasurements (NistLteUeCphySapUser::N
istUeMeasurementsParameters params) |
| 636 { |
| 637 m_owner->DoReportNistUeMeasurements (params); |
| 638 } |
| 639 |
| 640 template <class C> |
| 641 void |
| 642 NistMemberLteUeCphySapUser<C>::ReportSlssMeasurements (NistLteUeCphySapUser::Nis
tUeSlssMeasurementsParameters params, uint64_t slssid, uint16_t offset) |
| 643 { |
| 644 m_owner->DoReportSlssMeasurements (params, slssid, offset); |
| 645 } |
| 646 |
| 647 |
| 648 template <class C> |
| 649 void |
| 650 NistMemberLteUeCphySapUser<C>::ReportSubframeIndication (uint16_t frameNo, uint1
6_t subFrameNo) |
| 651 { |
| 652 m_owner->DoReportSubframeIndication (frameNo, subFrameNo); |
| 653 } |
| 654 |
| 655 template <class C> |
| 656 void |
| 657 NistMemberLteUeCphySapUser<C>::ReceiveMibSL (NistLteRrcSap::MasterInformationBlo
ckSL mibSL) |
| 658 { |
| 659 m_owner->DoReceiveMibSL (mibSL); |
| 660 } |
| 661 |
| 662 template <class C> |
| 663 void |
| 664 NistMemberLteUeCphySapUser<C>::ReportChangeOfSyncRef (NistLteRrcSap::MasterInfor
mationBlockSL mibSL, uint16_t frameNo, uint16_t subFrameNo) |
| 665 { |
| 666 m_owner->DoReportChangeOfSyncRef (mibSL, frameNo, subFrameNo ); |
| 667 } |
| 668 |
| 669 |
| 670 } // namespace ns3 |
| 671 |
| 672 |
| 673 #endif // NIST_LTE_UE_CPHY_SAP_H |
OLD | NEW |