INFO.yaml
[o-du/l2.git] / src / cm / common_def.h
index 7ef5121..d09a285 100644 (file)
 #   limitations under the License.                                             #
 ################################################################################
 *******************************************************************************/
+#include <stdio.h>
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+#include "cm_mem.h"
+#include "cm_math.h"
+#include "envopt.h"
+#include "envdep.h"
+#include "envind.h"
+#include "gen.h" 
+#include "ssi.h" 
+#include "cm5.h"
+#include "cm_tkns.h"
+#include "cm_mblk.h"
+#include "cm_llist.h"
+#include "cm_hash.h"
+#include "cm_lte.h"
+#include "cm_err.h"
+#include "cm_tpt.h"
+#include "cm.h"
+#include "gen.x"           /* general */
+#include "ssi.x"           /* system services */
+#include "cm_math.x"
+#include "cm_tpt.x"
+#include "cm_tkns.x" 
+#include "cm_mblk.x"
+#include "cm_llist.x"
+#include "cm5.x" 
+#include "cm_hash.x"
+#include "cm_lte.x"
+#include "cm_lib.x"
+#include "du_log.h"
+
+/* MAX values */
+#define MAX_NUM_CELL 1
+#define MAX_NUM_UE   1
 
 /* 5G ORAN phy delay */
 #define PHY_DELTA 2
+
+ /* SELECTORS */ 
+#define ODU_SELECTOR_LC 0
+#define ODU_SELECTOR_TC 1
+#define ODU_SELECTOR_LWLC 2
+
+#define ODU_START_CRNTI   100
+#define ODU_END_CRNTI     500
+
+#define GET_UE_IDX( _crnti,_ueIdx)         \
+{                                          \
+   _ueIdx = _crnti - ODU_START_CRNTI + 1;  \
+}
+
+#define GET_CRNTI( _crnti,_ueIdx)          \
+{                                          \
+   _crnti = _ueIdx + ODU_START_CRTNI - 1;  \
+}
+
+/* Calculates cellIdx from cellId */
+#define GET_CELL_IDX(_cellId, _cellIdx)   \
+{                                         \
+   _cellIdx = _cellId - 1;                \
+}
+
+typedef struct slotIndInfo
+{
+   uint16_t cellId;
+   uint16_t sfn;
+   uint16_t slot;
+}SlotIndInfo;
+
+typedef struct PlmnIdentity
+{
+   uint8_t mcc[3];
+   uint8_t mnc[3];
+}Plmn;
+
+/**********************************************************************
+  End of file
+***********************************************************************/