<[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-421]Paging Message: CU_STUB Trigger and...
[o-du/l2.git] / src / du_app / du_f1ap_conversions.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 /* This file contains definitions of F1AP conversion functions */
20
21 #include "RLC-BearerConfig.h"
22 #include "RLC-Config.h"
23 #include "SN-FieldLengthAM.h"
24 #include "SN-FieldLengthUM.h"
25 #include "T-PollRetransmit.h"
26 #include "PollPDU.h"
27 #include "PollByte.h"
28 #include "T-Reassembly.h"
29 #include "T-StatusProhibit.h"
30 #include "PUCCH-Resource.h"
31 #include "PagingDRX.h"
32 #include "PCCH-Config.h"
33 #include "du_app_rlc_inf.h"
34
35 RLC_BearerConfig__servedRadioBearer_PR covertRbTypeFromIntEnumToRrcEnum(RlcRbType rbType);
36 RLC_Config_PR covertRlcModeFromIntEnumToRrcEnum(RlcMode mode);
37 SN_FieldLengthAM_t covertAmSnLenFromIntEnumToRrcEnum(SnLenAm snLen);
38 SnLenAm covertAmSnLenFromRrcEnumToIntEnum(SN_FieldLengthAM_t snLen);
39 SN_FieldLengthUM_t covertUmSnLenFromIntEnumToRrcEnum(SnLenUm snLen);
40 SnLenUm covertUmSnLenFromRrcEnumToIntEnum(SN_FieldLengthUM_t snLen);
41 T_PollRetransmit_t covertPollRetxTmrValueToEnum(uint16_t pollRetxTmr);
42 uint16_t covertPollRetxTmrEnumToValue(uint8_t pollRetxTmrCfg);
43 PollPDU_t covertPollPduValueToEnum(int32_t pollPdu);
44 int32_t covertPollPduEnumToValue(uint8_t pollPduCfg);
45 PollByte_t covertPollByteValueToEnum(int32_t pollByte);
46 int32_t covertPollByteEnumToValue(uint16_t pollBytesCfg);
47 uint8_t covertMaxRetxValueToEnum(uint8_t maxRetx);
48 uint8_t covertMaxRetxEnumToValue(uint8_t maxRetxCfg);
49 T_Reassembly_t convertReasmblTmrValueToEnum(int8_t reasmblTmr);
50 int8_t convertReasmblTmrEnumToValue(uint8_t reAsmblTmrCfg);
51 T_StatusProhibit_t convertProhibitTmrValueToEnum(int16_t prohibitTmr);
52 int16_t convertProhibitTmrEnumToValue(T_StatusProhibit_t prohibitTmr);
53 PUCCH_Resource__format_PR covertPucchFormatIntEnumToRrcEnum(uint8_t pucchFormat);
54 long convertBsrPeriodicTmrValueToEnum(int16_t periodicTmr);
55 long convertBsrRetxTmrValueToEnum(uint16_t retxTmr);
56 long convertLcSrDelayTmrValueToEnum(uint16_t delayTimer);
57
58 e_PagingDRX convertPagingCycleValueToEnum(uint16_t pagingDrxCycle);
59 uint16_t convertPagingCycleEnumToValue(e_PagingDRX pagingDrx);
60 uint8_t convertNsEnumToValue(e_PCCH_Config__ns Ns);
61 e_PCCH_Config__ns convertNsValueToEnum(uint8_t numPO);
62
63 /**********************************************************************
64   End of file
65  **********************************************************************/