WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
fe_tpc_rate_pow.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
3 * Description: header for fe_tpc_rate_pow
4 */
5#ifndef __FE_TPC_RATE_POW_H__
6#define __FE_TPC_RATE_POW_H__
9#ifdef _PRE_PRODUCT_ID_HOST
10#include "wlan_spec.h"
11#include "frw_ext_if.h"
12#include "hal_ops_common_rom.h"
13#include "hcc_cfg_comm.h"
14#include "dmac_common_inc_rom.h"
15#else
16#include "wlan_spec_rom.h"
17#endif
18#ifdef __cplusplus
19#if __cplusplus
20extern "C" {
21#endif
22#endif
23#define FE_HAL_TPC_RATE_TPC_CODE_NUM 74 // 功率档位的个数 0-147 分给ofdm(0-73)和11b
24#define FE_HAL_TPC_RATE_POW_LVL_VAL 5 // 功率档位的间隔 0.5dB
25// 给到外部使用的tpc code结构 对齐到tpc_code_params_stru (本地保存的档位是分ofdm和11b的 最大73 送出去是0-147)
26typedef struct {
30typedef struct {
31 // bit0-6:tpc code 存储时不考虑11b 使用时根据速率档位判断是否11b 11b增加FE_HAL_TPC_RATE_TPC_CODE_NUM
32 osal_u16 tpc_code_level[HAL_POW_LEVEL_NUM];
34#ifdef _PRE_PRODUCT_ID_HOST
35osal_u8 fe_hal_pow_get_custom_tpc_pow(osal_u8 band, osal_u8 rate_idx);
36osal_u8 fe_hal_pow_get_tpc_code_by_pow(osal_u8 band, osal_s16 pow, osal_u8 is_ofdm);
37#endif
40 osal_u8 pwr_lvl, osal_u16 tpc_code_st);
43#ifdef __cplusplus
44#if __cplusplus
45}
46#endif
47#endif
48#endif // __FE_TPC_RATE_POW_H__
osal_void fe_tpc_rate_pow_print_rate_pow_table(osal_void)
osal_u16 fe_tpc_rate_pow_get_rate_tpc_code(osal_u8 band, osal_u8 protocol, osal_u8 mcs, osal_u8 bw, osal_u8 pwr_lvl)
osal_u8 fe_tpc_rate_pow_get_rate_idx(osal_u8 protocol, osal_u8 mcs, osal_u8 bw)
osal_void fe_tpc_rate_pow_set_tpc_code_by_rate_idx(osal_u8 band, osal_u8 rate_idx, osal_u8 pwr_lvl, osal_u16 tpc_code_st)
#define HAL_POW_LEVEL_NUM
Definition hal_commom_ops_type_rom.h:341
unsigned char osal_u8
Definition osal_types.h:11
short osal_s16
Definition osal_types.h:18
void osal_void
Definition osal_types.h:29
unsigned short osal_u16
Definition osal_types.h:12
Definition fe_tpc_rate_pow.h:30
Definition fe_tpc_rate_pow.h:26
osal_u16 bit_rsv
Definition fe_tpc_rate_pow.h:28
osal_u16 tpc_code
Definition fe_tpc_rate_pow.h:27