NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
LTENR_NSA.h
1#pragma once
2/************************************************************************************
3* Copyright (C) 2023 *
4* TETCOS, Bangalore. India *
5* *
6* Tetcos owns the intellectual property rights in the Product and its content. *
7* The copying, redistribution, reselling or publication of any or all of the *
8* Product or its content without express prior written consent of Tetcos is *
9* prohibited. Ownership and / or any other right relating to the software and all *
10* intellectual property rights therein shall remain at all times with Tetcos. *
11* *
12* This source code is licensed per the NetSim license agreement. *
13* *
14* No portion of this source code may be used as the basis for a derivative work, *
15* or used, for any purpose other than its intended use per the NetSim license *
16* agreement. *
17* *
18* This source code and the algorithms contained within it are confidential trade *
19* secrets of TETCOS and may not be used as the basis for any other software, *
20* hardware, product or service. *
21* *
22* Author: Kumar Gaurav *
23* *
24* ----------------------------------------------------------------------------------*/
25#ifndef _NETSIM_LTENR_NSA_H_
26#define _NETSIM_LTENR_NSA_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#pragma region HEADER_FILES
33#include"stdafx.h"
34#include "LTE_NR.h"
35#include "LTENR_GNBRRC.h"
36#pragma endregion
37
38#pragma region SEC_NODE_ADDITION_HEADER
39 typedef struct stru_LTENR_DC_HDR {
40 LTENR_MSGTYPE msgType;
41 void* msg;
42 }LTENR_DC_HDR, * ptrLTENR_DC_HDR;
43
45 NETSIM_ID UEID;
46 NETSIM_ID UEIF;
47 NETSIM_ID MgNBID;
48 NETSIM_ID MgNBIF;
49 NETSIM_ID SgNBID;
50 NETSIM_ID SgNBIF;
51 }LTENR_SEC_NODE_ADD_HDR, * ptrLTENR_SEC_NODE_ADD_HDR;
52
53 void fn_Netsim_DC_Secondary_Cell_Addition(NETSIM_ID UEID, NETSIM_ID UEIF,
54 NETSIM_ID MGNBID, NETSIM_ID MGNBIF,
55 NETSIM_ID SGNBID, NETSIM_ID SGNBIF);
56#pragma endregion
57
58#pragma region LTENR_XN_HDR
59 typedef struct stru_LTENR_XN_HDR {
60 NETSIM_ID UEID;
61 NETSIM_ID UEIF;
62 NETSIM_ID gnbID;
63 NETSIM_ID gnbIF;
64 bool flag;
65 void* msg;
66 char* gateway;
67 char* nexthop;
68 }LTENR_XN_HDR,*ptrLTENR_XN_HDR;
69#pragma endregion
70
71#pragma region API
72 UINT DC_SN_CELL_ADDITION_REQUEST;
73 UINT DC_SN_CELL_ADDITION_RESPONSE;
74 void fn_NetSim_LTENR_NSA_INIT();
75 void fn_Netsim_NSA_Secondary_Cell_Addition(NETSIM_ID UEID, NETSIM_ID UEIF,
76 NETSIM_ID MGNBID, NETSIM_ID MGNBIF,
77 NETSIM_ID SGNBID, NETSIM_ID SGNBIF);
78 void fn_Netsim_NSA_Secondary_Cell_Addition_Request_Recv(ptrLTENR_DC_HDR header);
79 void fn_Netsim_NSA_Secondary_Cell_Addition_Response_Recv(ptrLTENR_DC_HDR header);
80
81 void LTENR_NSA_DC_SN_CELL_ADDITION_REQUEST_FREEHDR(ptrLTENR_DC_HDR hdr);
82 void LTENR_NSA_DC_SN_CELL_ADDITION_RESPONSE_FREEHDR(ptrLTENR_DC_HDR hdr);
83
84 void LTENR_NSA_XN_INTERFACE_TO_RAN_Handle();
85#pragma endregion
86
87#ifdef __cplusplus
88}
89#endif // __cplusplus
90#endif //_NETSIM_LTENR_NSA_H_