X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=d870a003670e6d0389a294f21eb35dbd58942303;hb=1931d49496d91723b7c54c63db50ff4ee8ff03b6;hp=c8d12a641e10c93a566f94894c7b332ec2854ab6;hpb=9fc4986e02c1ab2be2a9276cdfbf049c55af88e6;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index c8d12a641..d870a0036 100644 --- a/src/cm/mac_sch_interface.c +++ b/src/cm/mac_sch_interface.c @@ -1,4 +1,5 @@ /* header include files (.h) */ +#include "stdbool.h" #include "envopt.h" /* environment options */ #include "envdep.h" /* environment dependent */ #include "envind.h" /* environment independent */ @@ -57,21 +58,108 @@ 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)) + { + /* TODO */ + } + else + { + return RFAILED; + } + 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 Pack and Send DL RLC BO Info from MAC to SCH + * + * @details + * + * Function : packMacSchDlRlcBoInfo + * + * Functionality: + * Pack and Send L RLC BO Info from MAC to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBOInfo *dlBoInfo) +{ + 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] DlSchedInfo *dlSchedInfo * @return S16 * -# ROK **/ -int packSchMacDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc *dlBrdcstAlloc) +int packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo) { return ROK; } @@ -86,11 +174,11 @@ int packSchMacDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc *dlBrdcstAlloc) * * * @param[in] Pst *pst, the post structure - * @param[in] *ulSchInfo, UlSchInfo + * @param[in] UlSchedInfo *ulSchedInfo * @return S16 * -# ROK **/ -int packSchMacUlSchInfo(Pst *pst, UlSchInfo *ulSchInfo) +int packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo) { return ROK; }