• 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_SLP_ROM_H
18 #define MSG_SLP_ROM_H
19 
20 #include "oal_mem_pool.h"
21 #include "oal_netbuf_common_rom.h"
22 
23 typedef struct {
24     /* host slp报文结构:CB(48byte) + MAC(36byte) + PLAYLOAD(依据实际情况而定)
25      * 报文通过frw消息发送至device侧,再申请netbuf空间进行依次拷贝操作
26      */
27     osal_u8 slp_cts_data[OAL_MAX_CB_LEN + OAL_MAX_MAC_HDR_LEN];
28     osal_u8 slp_rm_request_data[OAL_MAX_CB_LEN + OAL_MAX_MAC_HDR_LEN + WLAN_SMGMT_NETBUF_SIZE];
29     osal_u8 slp_gpio_data[OAL_MAX_CB_LEN + OAL_MAX_MAC_HDR_LEN];
30     osal_u16 slp_timer_val;
31     osal_u8 rm_type : 1; /* 0:广播测距 1:单播测距 */
32     osal_u8 resv : 7; /* 保留7bit对齐 */
33     osal_u8 resv1;
34 } mac_slp_rm_stru;
35 
36 #endif