1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2020] [HCL Technologies Ltd.] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /* This file contains C interface for ODU and stubs to get startup
23 #ifndef __CM_INTERFACE_H__
24 #define __CM_INTERFACE_H__
27 #include <CommonMessages.h>
36 #define MAX_MEMBER_LIST 2
40 #define MAX_POLICY_LIST 4
46 #define MAX_SUPPORTED_PLMN 2
55 char DU_IPV4_Addr[IPV4_LEN];
56 char CU_IPV4_Addr[IPV4_LEN];
57 char RIC_IPV4_Addr[IPV4_LEN];
65 typedef struct rRMPolicyMemberList
82 typedef struct rrmPolicyList
85 RrmResourceType resourceType;
87 RRMPolicyMemberList rRMPolicyMemberList[MAX_MEMBER_LIST];
88 uint8_t rRMPolicyMaxRatio;
89 uint8_t rRMPolicyMinRatio;
90 uint8_t rRMPolicyDedicatedRatio;
105 SHUTTING_DOWN, //value 2
115 typedef struct plmnInfo
117 uint8_t mcc[MCC_LEN];
118 uint8_t mnc[MNC_LEN];
124 typedef struct nRCellDU
126 uint32_t cellLocalId;
127 OpState operationalState;
128 AdminState administrativeState;
130 PlmnInfo plmnList[MAX_SUPPORTED_PLMN];
136 uint32_t ssbFrequency;
137 uint32_t ssbPeriodicity;
138 uint32_t ssbSubCarrierSpacing;
140 uint32_t ssbDuration;
141 uint32_t bSChannelBwUL;
142 uint32_t bSChannelBwDL;
143 uint32_t bSChannelBwSUL;
146 //ME, GNB and NRCELLDU ID's struct
147 typedef struct managedElement
149 char meId[ID_MAX_LEN];
150 char gnbId[ID_MAX_LEN];
151 char nrCellDuId[ID_MAX_LEN];
155 uint8_t getStartupConfig(StartupConfig *cfg);
156 uint8_t getStartupConfigForStub(StartupConfig *cfg);
157 bool setCellOpState(uint16_t cellId, OpState opState, \
158 CellState cellState);
160 #ifndef ODU_TEST_STUB
161 //Defined in odu high
162 bool bringCellUp(uint16_t cellId);
163 bool bringCellDown(uint16_t cellId);
164 uint8_t setRrmPolicy(RrmPolicyList rrmPolicy[],uint8_t policyNum);
165 uint8_t setCellParam();
166 #endif //ODU_TEST_STUB
173 /**********************************************************************
175 **********************************************************************/