X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrrlc%2Frlc_upr_inf_api.c;h=32ddf362848cbf1a346b12d6aaaf131a54f29b82;hb=aa4c92c065ee9a7f469abeee26e1dd8e00ce11d5;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..32ddf3628 100644 --- a/src/5gnrrlc/rlc_upr_inf_api.c +++ b/src/5gnrrlc/rlc_upr_inf_api.c @@ -26,6 +26,36 @@ 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 */ +}; + +/* Function pointer array for UL RRC Msg Transfer */ +RlcUlUserDataToDuFunc rlcSendUlUserDataToDuOpts[] = +{ + packRlcUlUserDataToDu, /* 0 - Loosely coupled */ + DuProcRlcUlUserDataTrans, /* 1 - Tightly coupled */ + packRlcUlUserDataToDu /* 2 - Light weight loosely coupled */ +}; + +RlcDuUeDeleteRsp rlcUeDeleteRspOpts[] = +{ + packRlcDuUeDeleteRsp, /* 0 - loosely coupled */ + DuProcRlcUeDeleteRsp, /* 1 - tightly coupled */ + packRlcDuUeDeleteRsp /* 2 - LWLC loosely coupled */ +}; + /******************************************************************* * * @brief Sends UL RRC Message Info to DU APP @@ -47,6 +77,89 @@ 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); +} + +/******************************************************************* + * + * @brief Sends UL User data Info to DU APP + * + * @details + * + * Function : rlcSendUlUserDataToDu + * + * Functionality: Sends UL User Data Info to DU APP + * + * @params[in] Pst structure + * UL user data Info + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t rlcSendUlUserDataToDu(Pst *pst, RlcUlUserDatInfo *ulUserData) +{ + return (*rlcSendUlUserDataToDuOpts[pst->selector])(pst, ulUserData); +} + +/******************************************************************* + * + * @brief Sends Ue Delete Rsp to DU APP + * + * @details + * + * Function : rlcSendUeDeleteRspToDu + * + * Functionality: Sends Ue Delete Rsp to DU APP + * + * @params[in] Pst *pst, RlcUeDeleteRsp *ueDeleteRsp + * + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t rlcSendUeDeleteRspToDu(Pst *pst, RlcUeDeleteRsp *ueDeleteRsp) +{ + return (*rlcUeDeleteRspOpts[pst->selector])(pst, ueDeleteRsp); +} + /********************************************************************** End of file **********************************************************************/