Initial commit
[o-du/l2.git] / src / 5gnrrlc / kw_ul.h
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
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                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
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 *******************************************************************************/
18
19 /********************************************************************20**
20   
21         Name:     LTE RLC file for uplink and non real time tasks 
22     
23         Type:     C include file
24   
25         Desc:     This file contains helper macros for RLC uplink
26                   and non real time tasks
27  
28         File:     kw_ul.h
29
30 *********************************************************************21*/
31 /** 
32  * @file kw_ul.h
33  * @brief RLC uplink helper macros
34 */
35
36 #ifndef __KW_ULH__
37 #define __KW_ULH__
38
39 /**
40  * @def KW_MEAS_IS_UL_IP_MEAS_ON_FOR_RB
41  *
42  *    This macro is used to check if UL IP throughput measurement is ON
43  *    or off for the passed rb
44  *
45  *    Returns TRUE(non-zero) if measurement is ON else FALSE (zero)
46  *
47  * @param[in] _gCb     RLC UL Cb
48  * @param[in] _rbCb    RLC uplink control block
49  *
50 */ 
51 #define KW_MEAS_IS_UL_IP_MEAS_ON_FOR_RB(_gCb, _rbCb)  \
52      ((_rbCb->rlcId.rbType == CM_LTE_DRB) && \
53      (_gCb->u.ulCb->kwL2Cb.measOn[_rbCb->qci] & LKW_L2MEAS_UL_IP) && \
54      (_rbCb->rbL2Cb.measOn & LKW_L2MEAS_UL_IP))
55 #endif /* __KW_ULH__ */
56 \f  
57 /********************************************************************30**
58   
59          End of file
60 **********************************************************************/