1 /******************************************************************************
3 * Copyright (c) 2019 Intel.
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.
17 *******************************************************************************/
21 * This file consist of macros, structures and prototypes of all FAPI
26 #ifndef _NR5G_FAPI_FAP2PHY_P5_PVT_PROC_H_
27 #define _NR5G_FAPI_FAP2PHY_P5_PVT_PROC_H_
29 //x is 32 bit variable, y is length in bytes
30 #define GETVLFRM32B(x, y) ((x) & ((0xFFFFFFFF) >> (32 - (y << 3))))
32 uint8_t nr5g_fapi_config_req_to_phy_translation(
33 p_nr5g_fapi_phy_instance_t p_phy_instance,
34 fapi_config_req_t * p_fapi_req,
35 PCONFIGREQUESTStruct p_ia_config_req);
37 uint8_t nr5g_fapi_calc_phy_tdd_period(
38 uint8_t fapi_tdd_period,
39 uint8_t n_subc_common);
41 uint8_t nr5g_fapi_calc_phy_tdd_period_for_n_subc_common_0(
42 uint8_t fapi_tdd_period);
44 uint8_t nr5g_fapi_calc_phy_tdd_period_for_n_subc_common_1(
45 uint8_t fapi_tdd_period);
47 uint8_t nr5g_fapi_calc_phy_tdd_period_for_n_subc_common_2(
48 uint8_t fapi_tdd_period);
50 uint8_t nr5g_fapi_calc_phy_tdd_period_for_n_subc_common_3(
51 uint8_t fapi_tdd_period);
53 uint16_t nr5g_fapi_calc_fft_size(
57 #endif //_NR5G_FAPI_FAP2PHY_P5_PVT_PROC_H_