X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=2b2449930ed0a96070adb183ff9862f3e32844aa;hb=0fccb83e55b237d60cf451bab71a0c7242cc6e66;hp=1f6bfb417e4a6343987ee1035a505b99024b9914;hpb=b490cd1231cfcc837e8bfccc40c6bb106dceef7c;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index 1f6bfb417..2b2449930 100644 --- a/src/cm/mac_sch_interface.c +++ b/src/cm/mac_sch_interface.c @@ -57,6 +57,22 @@ int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd) RETVALUE(SPstTsk(pst,mBuf)); } +/******************************************************************* + * + * @brief Pack and Send Rach Ind from MAC to SCH + * + * @details + * + * Function : packMacSchRachInd + * + * Functionality: + * Pack and Send Rach Ind from MAC to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd) { if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) @@ -69,21 +85,51 @@ int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd) } return ROK; } + +/******************************************************************* + * + * @brief Pack and Send Crc Ind from MAC to SCH + * + * @details + * + * Function : packMacSchCrcInd + * + * Functionality: + * Pack and Send Crc Ind from MAC to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +int packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd) +{ + if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) + { + /* TODO */ + } + else + { + return RFAILED; + } + return ROK; +} + /** * @brief function to pack DL Broadcast allocation message * from MAC to SCH * * @details * - * Function : packSchMaccDlBrdcstAlloc + * Function : packSchMaccDlAlloc * * * @param[in] Pst *pst, the post structure - * @param[in] *dlBrdcstAlloc, dlBroadcastAlloc + * @param[in] DlAlloc *dlAlloc * @return S16 * -# ROK **/ -int packSchMacDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc *dlBrdcstAlloc) +int packSchMacDlAlloc(Pst *pst, DlAlloc *dlAlloc) { return ROK; }