X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_msg_hdl.c;fp=src%2F5gnrmac%2Fmac_msg_hdl.c;h=d36792a557559e491fa4d7b172860d9c30e1dd5e;hb=9625bef129812dfbc9b0a55ee52395c2fa7fbd93;hp=6939b8c3bdf34220468169a7afeb5acf69c1d7d2;hpb=f3638e5eecd563d0a02488afe54a6bf19b52ffad;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_msg_hdl.c b/src/5gnrmac/mac_msg_hdl.c index 6939b8c3b..d36792a55 100644 --- a/src/5gnrmac/mac_msg_hdl.c +++ b/src/5gnrmac/mac_msg_hdl.c @@ -86,6 +86,78 @@ uint8_t sendCrcIndMacToSch(CrcIndInfo *crcInd) return(SchMessageRouter(&pst, (void *)crcInd)); } +/******************************************************************* + * + * @brief Sends UL CQI Indication to SCH + * + * @details + * + * Function : sendUlCqiIndMacToSch + * + * Functionality: + * Sends Ul Cqi Indication to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + ****************************************************************/ +uint8_t sendUlCqiIndMacToSch(SchUlCqiInd *ulCqiInd) +{ + Pst pst; + + FILL_PST_MAC_TO_SCH(pst, EVENT_UL_CQI_TO_SCH); + return(SchMessageRouter(&pst, (void *)ulCqiInd)); +} + +/******************************************************************* + * + * @brief Sends DL CQI Indication to SCH + * + * @details + * + * Function : sendDlCqiIndMacToSch + * + * Functionality: + * Sends Dl Cqi Indication to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + ****************************************************************/ +uint8_t sendDlCqiIndMacToSch(SchDlCqiInd *dlCqiInd) +{ + Pst pst; + + FILL_PST_MAC_TO_SCH(pst, EVENT_DL_CQI_TO_SCH); + return(SchMessageRouter(&pst, (void *)dlCqiInd)); +} + +/******************************************************************* + * + * @brief Sends Power Headroom Indication to SCH + * + * @details + * + * Function : sendPhrIndToSch + * + * Functionality: + * Sends Phr Indication to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + ****************************************************************/ +uint8_t sendPhrIndToSch(SchPwrHeadroomInd *macPhrInd) +{ + Pst pst; + + FILL_PST_MAC_TO_SCH(pst, EVENT_PHR_IND_TO_SCH); + return(SchMessageRouter(&pst, (void *)macPhrInd)); +} + /******************************************************************* * * @brief Processes CRC Indication from PHY