NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
LTENR_Spectrum.c
1/************************************************************************************
2* Copyright (C) 2023 *
3* TETCOS, Bangalore. India *
4* *
5* Tetcos owns the intellectual property rights in the Product and its content. *
6* The copying, redistribution, reselling or publication of any or all of the *
7* Product or its content without express prior written consent of Tetcos is *
8* prohibited. Ownership and / or any other right relating to the software and all *
9* intellectual property rights therein shall remain at all times with Tetcos. *
10* *
11* This source code is licensed per the NetSim license agreement. *
12* *
13* No portion of this source code may be used as the basis for a derivative work, *
14* or used, for any purpose other than its intended use per the NetSim license *
15* agreement. *
16* *
17* This source code and the algorithms contained within it are confidential trade *
18* secrets of TETCOS and may not be used as the basis for any other software, *
19* hardware, product or service. *
20* *
21* Author: Shashi Kant Suman *
22* *
23* ----------------------------------------------------------------------------------*/
24
25#pragma region HEADER_FILES
26#include "stdafx.h"
27#include "LTENR_Spectrum.h"
28#pragma endregion
29
30#pragma region PHY_OVERHEAD
31void LTENR_PHY_GET_OH(ptrLTENR_SPECTRUMCONFIG sc,
32 double* dlOH,
33 double* ulOH)
34{
35 if (sc->Series3GPP == 38) {
36#pragma warning (disable : 4047)
37 int CA_ID = pstruEventDetails->szOtherDetails;
38#pragma warning (default : 4047)
39 ptrLTENR_CA ca = sc->CA[CA_ID];
40 if (!_stricmp(ca->frequencyRange, "FR1"))
41 {
42 *dlOH = 0.14;
43 *ulOH = 0.08;
44 }
45 else if (!_stricmp(ca->frequencyRange, "FR2"))
46 {
47 *dlOH = 0.18;
48 *ulOH = 0.10;
49 }
50 else
51 {
52 fnNetSimError("Unknown frequecy range %s\n", ca->frequencyRange);
53 *dlOH = 0;
54 *ulOH = 0;
55 }
56 }
57 else if (sc->Series3GPP == 36) {
58 *dlOH = 0.25;
59 *ulOH = 0.25;
60 }
61}
62#pragma endregion