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: oam log printing interface 15 */ 16 17 #ifndef __WLAN_PHY_COMMON_ROM_H__ 18 #define __WLAN_PHY_COMMON_ROM_H__ 19 20 #include "td_type.h" 21 #include "osal_types.h" 22 23 #ifdef __cplusplus 24 #if __cplusplus 25 extern "C" { 26 #endif 27 #endif 28 29 /***************************************************************************** 30 7 STRUCT定义 31 *****************************************************************************/ 32 // 11ax 33 typedef enum { 34 WLAN_PHY_HE_GI_DOT8US = 0, 35 WLAN_PHY_HE_GI_1DOT6US = 1, 36 WLAN_PHY_HE_GI_3DOT2US = 2, 37 WLAN_PHY_HE_GI_BUTT 38 } wlan_phy_he_gi_type_enum; 39 typedef osal_u8 wlan_phy_he_gi_type_enum_uint8; 40 41 /* 重要:仅限描述符接口使用(表示发送该帧使用的pramble类型),0表示short preamble; 1表示long preamble */ 42 typedef enum { 43 WLAN_PHY_PREAMBLE_SHORT_HTMF = 0, 44 WLAN_PHY_PREAMBLE_LONG_HTGF = 1, 45 WLAN_PHY_PREAMBLE_BUTT 46 } wlan_phy_preamble_type; 47 typedef osal_u8 wlan_phy_preamble_type_uint8; 48 49 typedef enum { 50 WLAN_PHY_DCM_OFF = 0, 51 WLAN_PHY_DCM_ON = 1, 52 WLAN_PHY_DCM_BUTT 53 } wlan_phy_dcm_status; 54 typedef osal_u8 wlan_phy_dcm_status_uint8; 55 56 typedef enum { 57 WLAN_PHY_HE_LTF_1X = 0, 58 WLAN_PHY_HE_LTF_2X = 1, 59 WLAN_PHY_HE_LTF_4X = 2, 60 WLAN_PHY_HE_LTF_BUTT 61 } wlan_phy_he_ltf_type_enum; 62 typedef osal_u8 wlan_phy_he_ltf_type_enum_uint8; 63 64 typedef enum { 65 WLAN_PHY_CHAIN_SEL_BOTH_OFF = 0, 66 WLAN_PHY_CHAIN_SEL_TYPE_0 = 1, // 开启通道0 67 WLAN_PHY_CHAIN_SEL_TYPE_1 = 2, // 开启通道1 68 WLAN_PHY_CHAIN_SEL_BOTH_ON = 3, 69 WLAN_PHY_CHAIN_SEL_BUTT 70 } wlan_phy_chain_sel_enum; 71 typedef osal_u8 wlan_phy_chain_sel_enum_uint8; 72 73 typedef enum { 74 WLAN_PHY_MAX_PE_FLD_VALUE_0 = 0, 75 WLAN_PHY_MAX_PE_FLD_VALUE_8 = 1, 76 WLAN_PHY_MAX_PE_FLD_VALUE_16 = 2, 77 WLAN_PHY_MAX_PE_FLD_VALUE_BUTT 78 } wlan_phy_max_pe_fld_enum; 79 80 // 速率等级0的保护类型 81 typedef enum { 82 WLAN_PHY_RTS_CTS_PROTECT_TYPE_DISABLE = 0, // 不发保护帧 83 WLAN_PHY_RTS_CTS_PROTECT_TYPE_RTS = 1, // 发RTS帧 84 WLAN_PHY_RTS_CTS_PROTECT_TYPE_SELFCTS = 2, // 发self cts帧 85 WLAN_PHY_RTS_CTS_PROTECT_TYPE_ADJUST = 3, // 根据当前帧的帧长来决定是否发rts 86 WLAN_PHY_RTS_CTS_PROTECT_TYPE_BUTT 87 } wlan_phy_rts_cts_protect_mode_enum; 88 89 #ifdef __cplusplus 90 #if __cplusplus 91 } 92 #endif 93 #endif 94 95 #endif /* end of wlan_phy_common_rom.h */ 96