RLC BO, BO response and DL Data handling. [Issue-ID: ODUHIGH-181]
[o-du/l2.git] / src / 5gnrmac / lwr_mac_fsm.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 #ifndef _LWR_MAC_FSM_H_
20 #define _LWR_MAC_FSM_H_
21
22 #define FAPI_UINT_8   1
23 #define FAPI_UINT_16  2
24 #define FAPI_UINT_32  4
25 #define INVALID_VALUE -1
26
27 #define CORESET_TYPE0 0
28 #define CORESET_TYPE1 1
29 #define CORESET_TYPE2 2
30 #define CORESET_TYPE3 3
31
32 typedef enum{
33    SI_RNTI_TYPE,
34    RA_RNTI_TYPE,
35    TC_RNTI_TYPE,
36    C_RNTI_TYPE
37 }RntiType;
38
39 uint8_t lwr_mac_procInvalidEvt(void *msg);
40 uint8_t lwr_mac_procParamReqEvt(void *msg);
41 uint8_t lwr_mac_procParamRspEvt(void *msg);
42 uint8_t lwr_mac_procConfigReqEvt(void *msg);
43 uint8_t lwr_mac_procConfigRspEvt(void *msg);
44 uint8_t lwr_mac_procStartReqEvt(void *msg);
45 uint8_t lwr_mac_procStopReqEvt(void *msg);
46 void sendToLowerMac(uint16_t, uint32_t, void *);
47 void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg);
48 uint16_t fillUlTtiReq(SlotIndInfo currTimingInfo);
49 uint16_t fillDlTtiReq(SlotIndInfo currTimingInfo);
50 uint16_t fillUlDciReq(SlotIndInfo currTimingInfo);
51
52 typedef uint8_t (*lwrMacFsmHdlr)(void *);
53 #endif
54
55 /**********************************************************************
56          End of file
57 **********************************************************************/
58