WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_device.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2020-2022. All rights reserved.
3 * Description: Header file for hal_device.c.
4 */
5
6#ifndef __HAL_DEVICE_H__
7#define __HAL_DEVICE_H__
8
9/*****************************************************************************
10 头文件包含
11*****************************************************************************/
12#include "hal_common_ops.h"
13#include "hal_device_rom.h"
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif
19#endif
20
21/*****************************************************************************
22 宏定义
23*****************************************************************************/
24#define HAL_DEVICE_2G_BAND_NUM_FOR_LOSS (3) /* 2g 插损的band个数,用于插损相关的计算 */
25#define HAL_DEVICE_5G_BAND_NUM_FOR_LOSS WLAN_5G_SUB_BAND_NUM
26#define HAL_DEVICE_2G_DELTA_RSSI_NUM (2) /* 20M/40M */
27#define HAL_DEVICE_5G_DELTA_RSSI_NUM (4) /* 20M/40M/80M/160M */
28#define HAL_2G_CHANNEL_NUM (13)
29#define INVALID_SAR_PWR_LIMIT (0XFF) /* 当前SAR功率值 */
30#define HAL_SAR_PWR_LIMIT_THRESHOLD (15) /* SAR功率阈值,低于阈值表示正在降SAR,高于阈值表示降SAR结束 */
31
32#define WLAN_HAL_OHTER_BSS_ID 6 /* 其他BSS的广播ID */
33#define WLAN_HAL_OTHER_BSS_OTHER_ID 7 /* 来自其他BSS的其他帧(组播、单播) */
34/* MAC上报的tbtt中断类别最大值,2个ap的tbtt中断(0-1)+3个sta的tbtt中断(4-6) */
35#define WLAN_MAC_REPORT_TBTT_IRQ_MAX 7
36/*****************************************************************************
37 结构体定义
38*****************************************************************************/
39
40#ifdef _PRE_PLAT_FEATURE_CUSTOMIZE
41/* customize rf cfg struct */
42typedef struct {
43 osal_s8 rf_gain_db_mult4; /* 插损值(单位0.25dB) */
44 osal_u8 resv[3]; /* 3 byte保留字段 */
45} hal_cfg_custom_gain_db_per_band_stru;
46#endif /* #ifdef _PRE_PLAT_FEATURE_CUSTOMIZE */
47
48/*****************************************************************************
49 函数声明
50*****************************************************************************/
55
56#ifdef _PRE_PLAT_FEATURE_CUSTOMIZE
57osal_void hal_set_nvram_params_by_delt_pwr(hal_to_dmac_device_stru *hal_device, const osal_u8 *param);
58#endif
59
60#ifdef __cplusplus
61#if __cplusplus
62}
63#endif
64#endif
65
66#endif /* end of hal_device.h */
osal_u8 * get_sar_ctrl_params_dev(osal_void)
osal_u8 hal_device_get_m2s_mask(osal_void)
oal_bool_enum_uint8 hal_is_hw_tx_queue_empty(hal_to_dmac_device_stru *hal_device)
osal_u8 get_sar_ctrl_params(osal_u8 idx)
osal_u8 oal_bool_enum_uint8
Definition oal_types_device_rom.h:45
unsigned char osal_u8
Definition osal_types.h:11
signed char osal_s8
Definition osal_types.h:17
void osal_void
Definition osal_types.h:29
Definition hal_ops_common_rom.h:529