XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_ble_gap_adv_struct_t结构体 参考

BLE GAP 广播数据单元 ( AD structure ) 更多...

#include <xf_ble_gap_types.h>

xf_ble_gap_adv_struct_t 的协作图:
Collaboration graph

成员变量

uint8_t ad_data_len
 
xf_ble_gap_adv_struct_type_t ad_type
 
xf_ble_gap_adv_struct_data_t ad_data
 

详细描述

BLE GAP 广播数据单元 ( AD structure )

警告
这里的内存空间结构及成员并非严格按蓝牙标准定义的广播数据单元结构进行定义

以下为蓝牙标准定义的广播数据结构及广播数据单元 ( AD structure )所在的位置

| AdvData |
| AD Structure 1 | AD Structure 2 | ... |(无效数据 000...000b) |
| Length | Data | Length | Data | ...... |
| Length(type + data) | AD type | AD Data | Length | AD type | AD Data | ...... |
| ^ |
示例
examples/wireless/ble/sample_gatt_server/main/xf_main.c.

在文件 xf_ble_gap_types.h181 行定义.

结构体成员变量说明

◆ ad_data_len

uint8_t ad_data_len

注意,这并不是蓝牙标准中广播数据结构 AD structure 长度( Length ), 仅是 AD data 字段的长度(不包含 AD type 字段的长度 )

在文件 xf_ble_gap_types.h182 行定义.

◆ ad_type

◆ ad_data

广播数据单元的数据,见 xf_ble_gap_adv_struct_data_t

在文件 xf_ble_gap_types.h185 行定义.


该结构体的文档由以下文件生成: