X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrrlc%2Frlc_upr_inf_api.c;h=ff4305862d9dccf2c63730b1ed522293623996eb;hb=ed6746a6081339633c3baa314251fcc11b98ce10;hp=4785fb716253049025685fd0fe08432e1c260ece;hpb=6b44407d464a5a4e060999255233a7cfe78bb0fa;p=o-du%2Fl2.git diff --git a/src/5gnrrlc/rlc_upr_inf_api.c b/src/5gnrrlc/rlc_upr_inf_api.c index 4785fb716..ff4305862 100644 --- a/src/5gnrrlc/rlc_upr_inf_api.c +++ b/src/5gnrrlc/rlc_upr_inf_api.c @@ -26,6 +26,21 @@ RlcUlRrcMsgToDuFunc rlcSendUlRrcMsgToDuOpts[] = packRlcUlRrcMsgToDu /* 2 - Light weight loosely coupled */ }; +RlcRrcDeliveryReportToDuFunc rlcSendRrcDeliveryReportToDuOpts[]= +{ + packRrcDeliveryReportToDu, /* 0 - Loosely coupled */ + DuProcRlcRrcDeliveryReport, /* 1 - Tightly coupled */ + packRrcDeliveryReportToDu /* 2 - Light weight loosely coupled */ +}; + +/* Function pointer array for DL RRC Msg Rsp Transfer */ +RlcDlRrcMsgRspToDuFunc rlcSendDlRrcMsgRspToDuOpts[] = +{ + packRlcDlRrcMsgRspToDu, /* 0 - Loosely coupled */ + DuProcRlcDlRrcMsgRsp, /* 1 - Tightly coupled */ + packRlcDlRrcMsgRspToDu /* 2 - Light weight loosely coupled */ +}; + /******************************************************************* * * @brief Sends UL RRC Message Info to DU APP @@ -47,6 +62,48 @@ uint8_t rlcSendUlRrcMsgToDu(Pst *pst, RlcUlRrcMsgInfo *ulRrcMsgInfo) return (*rlcSendUlRrcMsgToDuOpts[pst->selector])(pst, ulRrcMsgInfo); } +/******************************************************************* +* +* @brief Sends RRC delivery Message Info to DU APP +* +* @details +* +* Function : rlcSendRrcDeliveryReportToDu +* +* Functionality: Sends RRC delivery Message Info to DU APP +* +* @params[in] Pst structure +* RRC delivery Msg Info +* @return ROK - success +* RFAILED - failure +* +* ****************************************************************/ +uint8_t rlcSendRrcDeliveryReportToDu(Pst *pst, RrcDeliveryReport *rrcDelivery) +{ + return (*rlcSendRrcDeliveryReportToDuOpts[pst->selector])(pst, rrcDelivery); +} + +/******************************************************************* + * + * @brief Sends DL RRC Message Status to DU APP + * + * @details + * + * Function : rlcSendDlRrcMsgRspToDu + * + * Functionality: Sends DL RRC Message Status to DU APP + * + * @params[in] Pst structure + * DL RRC Msg Info + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t rlcSendDlRrcMsgRspToDu(Pst *pst, RlcDlRrcMsgRsp *dlRrcMsg) +{ + return (*rlcSendDlRrcMsgRspToDuOpts[pst->selector])(pst, dlRrcMsg); +} + /********************************************************************** End of file **********************************************************************/