1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: rf customize rx insert loss 头文件 15 */ 16 17 #ifndef _FE_RF_CUSTOMIZE_RX_INSERT_LOSS_H_ 18 #define _FE_RF_CUSTOMIZE_RX_INSERT_LOSS_H_ 19 20 #include "osal_types.h" 21 #include "mac_vap_ext.h" 22 #ifdef __cplusplus 23 #if __cplusplus 24 extern "C" { 25 #endif 26 #endif 27 28 #ifdef _PRE_PLAT_FEATURE_CUSTOMIZE 29 #define HAL_RF_RX_INSERT_LOSS_NUM_2G 3 /* 插入损耗数量 与band划分对应 */ 30 typedef struct { 31 osal_u8 insert_loss[HAL_RF_RX_INSERT_LOSS_NUM_2G]; 32 osal_u8 rsv; 33 } fe_custom_rx_insert_loss_2g_stru; 34 35 typedef struct { 36 fe_custom_rx_insert_loss_2g_stru insert_loss_2g; 37 } fe_custom_rx_insert_loss_stru; 38 39 osal_void fe_custom_set_rx_insert_loss(osal_u8 band, osal_u8 *insert_loss, osal_u8 len); 40 osal_u8 fe_custom_get_rx_insert_loss(osal_u8 band, osal_u8 hal_subband); 41 #ifdef __cplusplus 42 #if __cplusplus 43 } 44 #endif 45 #endif 46 47 #endif // _PRE_PLAT_FEATURE_CUSTOMIZE 48 #endif // _FE_RF_CUSTOMIZE_RX_INSERT_LOSS_H_ 49