1 /* header include files (.h) */
2 #include "common_def.h"
3 #include "tfu.h" /* RGU Interface defines */
6 /* header/extern include files (.x) */
7 #include "tfu.x" /* RGU Interface includes */
9 #include "du_app_mac_inf.h"
10 #include "mac_sch_interface.h"
13 * @brief function to send Slot ind message from MAC
14 * to scheduler with loose coupling
18 * Function : packMacSchSlotInd
21 * @param[in] Pst *pst, the post structure
22 * @param[in] *slotInd, the value of SFN and slot
26 int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd)
29 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
34 /* pack SFN and slot value */
35 CMCHKPK(SPkU16,slotInd->sfn, mBuf);
36 CMCHKPK(SPkU16,slotInd->slot, mBuf);
38 RETVALUE(SPstTsk(pst,mBuf));
41 /*******************************************************************
43 * @brief Pack and Send Rach Ind from MAC to SCH
47 * Function : packMacSchRachInd
50 * Pack and Send Rach Ind from MAC to SCH
53 * @return ROK - success
56 * ****************************************************************/
57 int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd)
59 if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
70 /*******************************************************************
72 * @brief Pack and Send Crc Ind from MAC to SCH
76 * Function : packMacSchCrcInd
79 * Pack and Send Crc Ind from MAC to SCH
82 * @return ROK - success
85 * ****************************************************************/
86 int packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd)
88 if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
99 /*******************************************************************
101 * @brief Pack and Send DL RLC BO Info from MAC to SCH
105 * Function : packMacSchDlRlcBoInfo
108 * Pack and Send L RLC BO Info from MAC to SCH
111 * @return ROK - success
114 * ****************************************************************/
115 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBOInfo *dlBoInfo)
117 if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
129 * @brief function to pack DL Broadcast allocation message
134 * Function : packSchMaccDlAlloc
137 * @param[in] Pst *pst, the post structure
138 * @param[in] DlSchedInfo *dlSchedInfo
142 int packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo)
148 * @brief function to pack UL Sch Info message
153 * Function : packSchMacUlSchInfo
156 * @param[in] Pst *pst, the post structure
157 * @param[in] UlSchedInfo *ulSchedInfo
161 int packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo)
167 * @brief function to pack cell cfg from MAC to SCH
171 * Function : packSchCellCfg
174 * @param[in] Pst *pst, the post structure
175 * @param[in] *schCellCfg, SchCellCfg structure
179 int packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg)
185 * @brief function to pack cell cfg cfm from SCH to MAC
189 * Function : packSchCellCfgCfm
192 * @param[in] Pst *pst, the post structure
193 * @param[in] *schCellCfgCfm, SchCellCfgCfm structure
197 int packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm)
203 /**********************************************************************
205 **********************************************************************/