X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcu_stub%2Fcu_f1ap_msg_hdl.h;h=585eb5843673c64d7accaf3b12e8d9a1d4f14d2b;hb=d43106e9959db218ce4a4c278f73405d6d70579f;hp=a14f9e02237f4f95c6a272d4c19876bc7171daee;hpb=a5f35b2204dd87ebe347f11282000852b55810ad;p=o-du%2Fl2.git diff --git a/src/cu_stub/cu_f1ap_msg_hdl.h b/src/cu_stub/cu_f1ap_msg_hdl.h index a14f9e022..585eb5843 100644 --- a/src/cu_stub/cu_f1ap_msg_hdl.h +++ b/src/cu_stub/cu_f1ap_msg_hdl.h @@ -47,16 +47,28 @@ #define SP_CELL_ID 2 #define SERV_CELL_IDX 3 #define CU_TO_DU_RRC_INF 4 - -#define RRC_SETUP 1 -#define REGISTRATION_ACCEPT 2 -#define UE_CONTEXT_SETUP_REQ 3 -#define UE_CONTEXT_SETUP_RSP 4 -#define SECURITY_MODE_COMPLETE 5 -#define RRC_RECONFIG 6 -#define UE_CONTEXT_MOD_REQ 7 #define NUM_QOS_EXT 1 +typedef enum +{ + RRC_SETUP=1, + REGISTRATION_ACCEPT, + UE_CONTEXT_SETUP_REQ, + UE_CONTEXT_SETUP_RSP, + SECURITY_MODE_COMPLETE, + RRC_RECONFIG, + RRC_RECONFIG_COMPLETE, + UE_CONTEXT_MOD_REQ +}RrcMsgType; + +/* Defines action to be performed via UE Context Modification request */ +typedef enum +{ + MODIFY_UE, /* Modify UE configuration at DU */ + QUERY_CONFIG, /* Query DU for its configurations */ + STOP_DATA_TX /* Stop data transmission from DU to a particular UE */ +}UeCtxtModAction; + typedef struct f1apDb { uint8_t dlRrcMsgCount; @@ -64,7 +76,7 @@ typedef struct f1apDb }F1apMsgDb; void F1APMsgHdlr(uint32_t *destDuId, Buffer *mBuf); -uint8_t BuildAndSendUeContextModificationReq(uint32_t duId, void *ueCb); +uint8_t BuildAndSendUeContextModificationReq(uint32_t duId, void *ueCb, UeCtxtModAction action); uint8_t BuildAndSendUeContextReleaseCommand(uint32_t duId, uint8_t cuUeF1apId, uint8_t duUeF1apId); uint8_t BuildAndSendF1ResetReq(); /**********************************************************************