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: Header file for hal_ext_tpc.c 15 */ 16 17 #ifndef __HAL_EXT_TPC_H__ 18 #define __HAL_EXT_TPC_H__ 19 /***************************************************************************** 20 1 头文件包含 21 *****************************************************************************/ 22 #include "osal_types.h" 23 #include "hal_ops_common_rom.h" 24 25 #ifdef __cplusplus 26 #if __cplusplus 27 extern "C" { 28 #endif 29 #endif 30 /***************************************************************************** 31 2 函数声明 32 *****************************************************************************/ 33 #ifdef _PRE_WLAN_FEATURE_TPC 34 osal_void hh503_set_tpc_bf_pow(hal_to_dmac_device_stru *hal_device); 35 osal_void hh503_set_tpc_rts_pow(osal_void); 36 /***************************************************************************** 37 功能描述 : 适配sounding report帧的功率 38 *****************************************************************************/ hal_set_tpc_bf_pow(hal_to_dmac_device_stru * hal_device)39static INLINE__ osal_void hal_set_tpc_bf_pow(hal_to_dmac_device_stru *hal_device) 40 { 41 hal_public_hook_func(_set_tpc_bf_pow)(hal_device); 42 } 43 /***************************************************************************** 44 功能描述 : 适配RTS的功率 45 *****************************************************************************/ hal_set_tpc_rts_pow(osal_void)46static INLINE__ osal_void hal_set_tpc_rts_pow(osal_void) 47 { 48 hal_public_hook_func(_set_tpc_rts_pow)(); 49 } 50 osal_void hal_tpc_query_band_rate_power_debug(hal_to_dmac_device_stru *hal_device); 51 osal_void hal_tpc_query_ack_power_reg(osal_void); 52 #endif 53 #ifdef __cplusplus 54 #if __cplusplus 55 } 56 #endif 57 #endif 58 59 #endif /* end of hal_ext_tpc.h */