X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_upr_inf.c;h=0c91610ce8f28dd3e87d9696bbe0f99642c855a3;hb=51bd2af5867794ba058365581a7ad3c2eba0d1c3;hp=46b7a42810592dab32f9d72186471deb626596a5;hpb=b490cd1231cfcc837e8bfccc40c6bb106dceef7c;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_upr_inf.c b/src/5gnrmac/lwr_mac_upr_inf.c index 46b7a4281..0c91610ce 100644 --- a/src/5gnrmac/lwr_mac_upr_inf.c +++ b/src/5gnrmac/lwr_mac_upr_inf.c @@ -18,6 +18,65 @@ #include "lwr_mac_upr_inf.h" +/******************************************************************* + * + * @brief Packs and Sends CRC Ind to MAC + * + * @details + * + * Function : packCrcInd + * + * Functionality: + * Packs and Sends CRC Ind to MAC + * + * @params[in] Post structure pointer + * CRC indication + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint16_t packCrcInd(Pst *pst, CrcInd *crcInd) +{ + if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) + { + return ROK; + } + else + { + return RFAILED; + } +} + +/******************************************************************* + * + * @brief Packs and Sends Rx Data Ind to MAC + * + * @details + * + * Function : packRxDataInd + * + * Functionality: + * Packs and Sends Rx data Ind to MAC + * + * @params[in] Post structure pointer + * Rx Data indication + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint16_t packRxDataInd(Pst *pst, RxDataInd *rxDataInd) +{ + if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) + { + return ROK; + } + else + { + return RFAILED; + } +} + + /******************************************************************* * * @brief Packs and Sends RACH Ind to MAC @@ -101,6 +160,34 @@ S16 packLwlcSlotInd (Pst *pst, SlotIndInfo *slotInd) return ROK; } +/******************************************************************* + * + * @brief Packs and Sends Stop Ind to MAC + * + * @details + * + * Function : packStopInd + * + * Functionality: + * Packs and Sends Stop Ind to MAC + * + * @params[in] Post structure pointer + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint16_t packStopInd(Pst *pst) +{ + if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) + { + return ROK; + } + else + { + return RFAILED; + } +} + /********************************************************************** End of file **********************************************************************/