X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fdu_app_mac_inf.h;fp=src%2Fcm%2Fdu_app_mac_inf.h;h=4b2f98ece0a39f266a55f4efa0ff5634b3500813;hb=904a5d446b480d71da1bf81f892bab86ab365ce6;hp=c0cb0dc80c3aa42d286378940695d02ec3b8d9cc;hpb=a14bf79bbc001990f96e01ada0dd291bcc9ddcad;p=o-du%2Fl2.git diff --git a/src/cm/du_app_mac_inf.h b/src/cm/du_app_mac_inf.h index c0cb0dc80..4b2f98ece 100644 --- a/src/cm/du_app_mac_inf.h +++ b/src/cm/du_app_mac_inf.h @@ -91,6 +91,7 @@ #define EVENT_MAC_DL_BROADCAST_REQ 228 #define EVENT_MAC_STATISTICS_REQ 229 #define EVENT_MAC_STATISTICS_RSP 230 +#define EVENT_MAC_STATISTICS_IND 231 #define BSR_PERIODIC_TIMER_SF_10 10 #define BSR_RETX_TIMER_SF_320 320 @@ -1872,6 +1873,12 @@ typedef struct macStatsRsp CauseOfResult cause; }MacStatsRsp; +typedef struct macStatsInd +{ + MacMeasurementType type; + double value; +}MacStatsInd; + /****************** FUNCTION POINTERS ********************************/ /* DL broadcast req from DU APP to MAC*/ @@ -2036,6 +2043,11 @@ typedef uint8_t (*MacDuStatsRspFunc) ARGS(( Pst *pst, MacStatsRsp *statsRsp)); +/* Statistics Ind from MAC to DU APP */ +typedef uint8_t (*MacDuStatsIndFunc) ARGS(( + Pst *pst, + MacStatsInd *statsInd)); + /******************** FUNCTION DECLARATIONS ********************************/ uint8_t packMacCellUpInd(Pst *pst, OduCellId *cellId); uint8_t unpackMacCellUpInd(DuMacCellUpInd func, Pst *pst, Buffer *mBuf); @@ -2165,6 +2177,9 @@ uint8_t packDuMacStatsRsp(Pst *pst, MacStatsRsp *statsRsp); uint8_t DuProcMacStatsRsp(Pst *pst, MacStatsRsp *statsRsp); uint8_t unpackDuMacStatsRsp(MacDuStatsRspFunc func, Pst *pst, Buffer *mBuf); +uint8_t packDuMacStatsInd(Pst *pst, MacStatsInd *statsRsp); +uint8_t DuProcMacStatsInd(Pst *pst, MacStatsInd *statsRsp); +uint8_t unpackDuMacStatsInd(MacDuStatsIndFunc func, Pst *pst, Buffer *mBuf); #endif