1 /******************************************************************************
2 ###############################################################################
3 # Copyright (c) [2017-2020] [ICT/CAS] #
4 # Licensed under the ORAN Software License v1.0 (License) #
5 ###############################################################################
6 ******************************************************************************/
8 #ifndef __GNB_COMM_TYPE_H__
9 #define __GNB_COMM_TYPE_H__
11 /** @brief max cell num */
12 #define MAX_CELL_NUM 4
14 /** @brief max cell id */
15 #define MAX_CELL_ID (MAX_CELL_NUM - 1)
17 /** @brief max ue num */
19 #define MAX_UE_NUM_PER_CELL 21
21 /** @brief max ue id */
22 #define MAX_UE_ID (MAX_UE_NUM - 1)
24 /** @brief max drb num */
25 #define MAX_DRB_NUM 33
27 /** @brief max drb id */
28 #define MAX_DRB_ID (MAX_DRB_NUM - 1)
30 /** @brief max srb num */
33 /** @brief max srb id */
34 #define MAX_SRB_ID (MAX_SRB_NUM - 1)
36 /** @brief max logical channel num */
37 #define MAX_LCH_NUM 33
39 #define MAX_PLMN_ID_NUM 8
41 /** @brief tunnel port */
42 #define TUNNEL_PORT 2152
44 #define MAX_PDU_SESSION_NUM (10)
46 #define MAC_CU_DU_TNL_ASSOC_NUM (32)
48 typedef UINT16 CmNrCellId;
51 typedef UINT16 CmNrRnti;
54 typedef UINT64 CmNrIRnti;
57 typedef UINT16 CmNrUeId;
59 /** @brief Radio Bearer ID */
60 typedef UINT8 CmNrRbId;
62 /** @brief Logical Channel Type */
63 typedef UINT8 CmNrLcType;
65 /** @brief Radio Bearer ID */
66 typedef UINT8 CmNrRbId;
68 /** @brief Mode Type TM/UM/AM */
69 typedef UINT8 CmNrRlcMode;
71 /** @brief Logical Channel ID */
72 typedef UINT8 CmNrLcId;
74 /** @brief Logical Channel Type */
75 typedef UINT8 CmNrLcType;
78 typedef UINT8 CmRlcSnLen;
80 /*见协议38401 8.5 F1 Startup and cells activation*/
99 /* NR CELL Identity */
100 typedef struct NrCellId
105 #define TRACKING_AREA_CODE (1<<0)
107 typedef struct plmnInformation
111 PlmnId_t plmnId[MAX_PLMN_ID_NUM];
112 UINT32 trackingAreaCode; /*option*/
113 UINT8 ranac; /*option*/
115 BOOL cellReservedForOperatorUse;
132 typedef LONG GnbSrbId_t;//9.3.1.7
135 typedef LONG GnbDrbId_t;
137 /** @brief Transaction ID */
138 typedef LONG GnbTransId;
140 /** @brief gND DU ID */
141 typedef LONG GnbDuId;
143 /** @brief gND CU ID */
144 typedef LONG GnbCuId;