1 /* header include files (.h) */
2 #include "envopt.h" /* environment options */
3 #include "envdep.h" /* environment dependent */
4 #include "envind.h" /* environment independent */
5 #include "gen.h" /* general */
6 #include "ssi.h" /* system services */
7 #include "cm_tkns.h" /* Common Token Defines */
8 #include "cm_llist.h" /* Common Link List Defines */
9 #include "cm_hash.h" /* Common Hash List Defines */
10 #include "cm_lte.h" /* Common LTE Defines */
11 #include "cm_mblk.h" /* Common LTE Defines */
12 #include "tfu.h" /* RGU Interface defines */
16 /* header/extern include files (.x) */
17 #include "gen.x" /* general */
18 #include "ssi.x" /* system services */
19 #include "cm_tkns.x" /* Common Token Definitions */
20 #include "cm_llist.x" /* Common Link List Definitions */
21 #include "cm_lib.x" /* Common Library Definitions */
22 #include "cm_hash.x" /* Common Hash List Definitions */
23 #include "cm_lte.x" /* Common LTE Defines */
24 #include "cm_mblk.x" /* Common LTE Defines */
25 #include "tfu.x" /* RGU Interface includes */
28 #include "du_app_mac_inf.h"
29 #include "mac_sch_interface.h"
32 * @brief function to send Slot ind message from MAC
33 * to scheduler with loose coupling
37 * Function : packMacSchSlotInd
40 * @param[in] Pst *pst, the post structure
41 * @param[in] *slotInd, the value of SFN and slot
45 int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd)
48 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
53 /* pack SFN and slot value */
54 CMCHKPK(SPkU16,slotInd->sfn, mBuf);
55 CMCHKPK(SPkU16,slotInd->slot, mBuf);
57 RETVALUE(SPstTsk(pst,mBuf));
61 * @brief function to pack DL Broadcast allocation message
66 * Function : packSchMaccDlBrdcstAlloc
69 * @param[in] Pst *pst, the post structure
70 * @param[in] *dlBrdcstAlloc, dlBroadcastAlloc
74 int packSchMacDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc *dlBrdcstAlloc)
80 * @brief function to pack UL Sch Info message
85 * Function : packSchMacUlSchInfo
88 * @param[in] Pst *pst, the post structure
89 * @param[in] *ulSchInfo, UlSchInfo
93 int packSchMacUlSchInfo(Pst *pst, UlSchInfo *ulSchInfo)
99 * @brief function to pack cell cfg from MAC to SCH
103 * Function : packSchCellCfg
106 * @param[in] Pst *pst, the post structure
107 * @param[in] *schCellCfg, SchCellCfg structure
111 int packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg)
117 * @brief function to pack cell cfg cfm from SCH to MAC
121 * Function : packSchCellCfgCfm
124 * @param[in] Pst *pst, the post structure
125 * @param[in] *schCellCfgCfm, SchCellCfgCfm structure
129 int packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm)
135 /**********************************************************************
137 **********************************************************************/