1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 #include "lwr_mac_upr_inf.h"
21 /*******************************************************************
23 * @brief Packs and Sends RACH Ind to MAC
27 * Function : packRachInd
30 * Packs and Sends RACH Ind to MAC
32 * @params[in] Post structure pointer
34 * @return ROK - success
37 * ****************************************************************/
38 uint16_t packRachInd(Pst *pst, RachInd *rachInd)
40 if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
50 /*******************************************************************
52 * @brief Loose coupled packing of slot indication
56 * Function : packLcSlotInd
59 * Loose coupled packing of slot indication
61 * @params[in] Post structure
62 * Slot indication info
63 * @return ROK - success
66 * ****************************************************************/
67 S16 packLcSlotInd (Pst *pst, SlotIndInfo *slotInd)
70 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
75 /* pack SFN and slot value */
76 CMCHKPK(SPkU16,slotInd->sfn, mBuf);
77 CMCHKPK(SPkU16,slotInd->slot, mBuf);
79 RETVALUE(SPstTsk(pst,mBuf));
82 /*******************************************************************
84 * @brief Light weight loose coupled packing of slot indication
88 * Function : packLwlcSlotInd
91 * Light weight loose coupled packing of slot indication
93 * @params[in] Post structure
94 * Slot indication info
95 * @return ROK - success
98 * ****************************************************************/
99 S16 packLwlcSlotInd (Pst *pst, SlotIndInfo *slotInd)
104 /**********************************************************************
106 **********************************************************************/