X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcommon_def.h;h=d09a28580565ec81c32956ac82d4f538c181920f;hb=45d134510deb6902b870b4a0fb574b6075fba601;hp=a144678d030791ef6ac14f45117d32d06b7bae48;hpb=392607b7a8cbf1b7415b15517275dd1ef4e897a9;p=o-du%2Fl2.git diff --git a/src/cm/common_def.h b/src/cm/common_def.h index a144678d0..d09a28580 100644 --- 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 "du_log.h" + +/* MAX values */ +#define MAX_NUM_CELL 1 +#define MAX_NUM_UE 1 /* 5G ORAN phy delay */ #define PHY_DELTA 2 @@ -58,19 +63,38 @@ #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 +***********************************************************************/