/******************************************************************************* ################################################################################ # Copyright (c) [2017-2019] [Radisys] # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # Unless required by applicable law or agreed to in writing, software # # distributed under the License is distributed on an "AS IS" BASIS, # # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ *******************************************************************************/ /************************************************************************ Name: LTE-MAC layer Type: C source file Desc: C source code for Entry point fucntions File: rg_uhm.c **********************************************************************/ /** @file rg_uhm.c @brief This module handles uplink harq related functionality in MAC. */ /* header include files -- defines (.h) */ #include "common_def.h" #include "rg_env.h" /* MAC Environment Defines */ #include "tfu.h" /* TFU Interface defines */ #include "crg.h" /* CRG Interface defines */ #include "rgu.h" /* RGU Interface defines */ #include "rg_sch_inf.h" /* TFU Interface defines */ #include "lrg.h" /* LRG Interface defines */ #include "rg.h" /* MAC defines */ #include "rg_err.h" /* MAC error defines */ /* header/extern include files (.x) */ #include "tfu.x" /* TFU Interface defines */ #include "crg.x" /* CRG Interface includes */ #include "rgu.x" /* RGU Interface includes */ #include "rg_sch_inf.x" /* SCH Interface defines */ #include "rg_prg.x" /* PRG Interface defines */ #include "lrg.x" /* LRG Interface includes */ #include "du_app_mac_inf.h" #include "rg.x" /* MAC includes */ /* local defines */ /* local typedefs */ /* local externs */ /* forward references */ /** * @brief Handler for initializing the HARQ entity. * * @details * * Function: rgUHMCrgUeCfg * * Invoked by: CRG * * Processing Steps: * - Initialize maxHqRetx * * @param[in] *cellCb * @param[in,out] *ueCb * @param[in] *ueCfg * @param[out] *err * @return Void **/ Void rgUHMCrgUeCfg ( RgCellCb *cellCb, RgUeCb *ueCb, CrgUeCfg *ueCfg ) { ueCb->ul.hqEnt.maxHqRetx = (ueCfg->ueUlHqCfg.maxUlHqTx - 1); return; } /* rgUHMCrgUeCfg */ /** * @brief Handler for re-initializing the HARQ entity. * * @details * * Function: rgUHMCrgUeRecfg * * Invoked by: CRG * * Processing Steps: * - Re-initialize maxHqRetx * * @param[in] *cellCb * @param[in,out] *ueCb * @param[in] *ueCfg * @param[out] *err * @return Void **/ Void rgUHMCrgUeRecfg ( RgCellCb *cellCb, RgUeCb *ueCb, CrgUeRecfg *ueRecfg ) { ueCb->ul.hqEnt.maxHqRetx = (ueRecfg->ueUlHqRecfg.maxUlHqTx - 1); return; } /* rgUHMCrgUeCfg */ /********************************************************************** End of file **********************************************************************/