Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
MAC Clean-up [Issue-ID: ODUHIGH-212]
[o-du/l2.git]
/
src
/
cm
/
common_def.h
diff --git
a/src/cm/common_def.h
b/src/cm/common_def.h
index
a144678
..
d09a285
100644
(file)
--- a/
src/cm/common_def.h
+++ b/
src/cm/common_def.h
@@
-49,6
+49,11
@@
#include "cm_hash.x"
#include "cm_lte.x"
#include "cm_lib.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
/* 5G ORAN phy delay */
#define PHY_DELTA 2
@@
-58,19
+63,38
@@
#define ODU_SELECTOR_TC 1
#define ODU_SELECTOR_LWLC 2
#define ODU_SELECTOR_TC 1
#define ODU_SELECTOR_LWLC 2
-#define CRNTI_START_RANGE 100
-#define CRNTI_END_RANGE 500
+#define ODU_START_CRNTI 100
+#define ODU_END_CRNTI 500
+
+#define GET_UE_IDX( _crnti,_ueIdx) \
+{ \
+ _ueIdx = _crnti - ODU_START_CRNTI + 1; \
+}
-#define GET_
UE_IDX( _crnti,_ueIdx)
\
-{
\
- _
ueIdx = _crnti - CRNTI_START_RANGE;
\
+#define GET_
CRNTI( _crnti,_ueIdx)
\
+{ \
+ _
crnti = _ueIdx + ODU_START_CRTNI - 1;
\
}
}
-#define GET_CRNTI( _crnti,_ueIdx) \
-{ \
- _crnti = _ueIdx + CRNTI_START_RANGE; \
+/* 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
-**********************************************************************/
+ End of file
+**********************************************************************
*
/