• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15  */
16 
17 #ifndef MSG_BTCOEX_ROM_H
18 #define MSG_BTCOEX_ROM_H
19 
20 #include "hal_common_ops_device_rom.h"
21 
22 typedef struct {
23     osal_u8 dis_abort : 1;  /* ps期间是否disable abort */
24     osal_u8 reply_cts : 1;  /* ps期间是否回复CTS */
25     osal_u8 rsp_frame_ps : 1; /* ps期间响应帧是否设置ps bit */
26     osal_u8 one_pkt_en : 1;   /* 是否发送one pkt节能帧 */
27     osal_u8 custom_option : 1;    /* 自定义开关选项 */
28     osal_u8 close_rts : 1;        /* 关闭rts功能 */
29     osal_u8 resv_bits : 2;
30     osal_u8 resv_bytes[3];
31 } mac_btcoex_ps_flag_info_stru;
32 
33 typedef struct {
34     /* 字段参考hal_one_packet_cfg_stru 部分字段需要在device侧自行获取 */
35     hal_fcs_protect_type_enum_uint8   protect_type;
36     hal_fcs_protect_cnt_enum_uint8    protect_cnt;
37     osal_u16                          protect_coex_pri : 2;     /* btcoex下使用,one pkt发送优先级 */
38     osal_u16                          cfg_one_pkt_tx_vap_index : 4;
39     osal_u16                          cfg_one_pkt_tx_peer_index : 5;
40     osal_u16                          bit_rsv : 5;
41     osal_u32                          tx_mode;
42     osal_u32                          tx_data_rate;
43     osal_u16                          duration;        /* 单位 us */
44     osal_u16                          timeout;         /* 硬件超时时间 */
45     osal_u16                          wait_timeout;    /* 软件定时器超时时间 */
46 
47     osal_u8                           is_valid  : 1;
48     osal_u8                           is_vap_param : 1;   /* vap参数标志 */
49     osal_u8                           is_dev_param : 1;   /* dev参数标志 */
50     osal_u8                           bit_rsv2 : 5;      /* 字节对齐 */
51     osal_u8                           rsv[1];      /* 字节对齐 */
52 } mac_btcoex_ps_frame_info_stru;
53 
54 #endif