X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_upr_inf_api.c;h=72f816d7c0208773c123f32933386079a26a35e8;hb=531da47c7bfb6ce138a454f66eb184729860beef;hp=6e6b962afce2fbbe71e3ca97234834c82f6b26d0;hpb=79b8d410dc34e5624583b9ad935e65350dd3f62a;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_upr_inf_api.c b/src/5gnrmac/mac_upr_inf_api.c index 6e6b962af..72f816d7c 100644 --- a/src/5gnrmac/mac_upr_inf_api.c +++ b/src/5gnrmac/mac_upr_inf_api.c @@ -30,6 +30,14 @@ DuMacCellUpInd packMacCellUpIndOpts[] = duHandleCellUpInd, packMacCellUpInd }; + +DuMacSlotInd packMacSlotIndOpts[] = +{ + packMacSlotInd, + duHandleSlotInd, + packMacSlotInd +}; + /* Funtion pointer options for stop indication */ DuMacStopInd packMacStopIndOpts[] = { @@ -86,6 +94,26 @@ uint8_t MacDuAppCellUpInd(Pst *pst, OduCellId *cellId) return (*packMacCellUpIndOpts[pst->selector])(pst, cellId); } +/******************************************************************* + * + * @brief Send slot indication to DU APP + * + * @details + * + * Function : MacDuAppSlotInd + * + * Functionality: + * send slot indication to DU APP + * + * @params[in] Post structure pointer, SlotTimingInfo *slotIndInfo + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t MacDuAppSlotInd(Pst *pst, SlotTimingInfo *slotIndInfo) +{ + return (*packMacSlotIndOpts[pst->selector])(pst, slotIndInfo); +} /******************************************************************* * * @brief Send stop indication to MAC @@ -145,7 +173,7 @@ uint8_t MacDuAppUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo) * RFAILED - failure * * ****************************************************************/ -uint8_t MacSendUlDataToRlc(Pst *pst, RlcData *ulData) +uint8_t MacSendUlDataToRlc(Pst *pst, RlcUlData *ulData) { return (*rlcMacSendUlDataOpts[pst->selector])(pst, ulData); }