TuyaOS
成员变量
TKL_BLE_GAP_SCAN_PARAMS_T结构体 参考

GAP scanning parameters. 更多...

#include <tkl_bluetooth_def.h>

成员变量

UCHAR_T active: 1
 
UCHAR_T extended
 
USHORT_T interval
 
UCHAR_T scan_channel_map
 
UCHAR_T scan_phys
 
USHORT_T timeout
 
USHORT_T window
 

详细描述

GAP scanning parameters.

结构体成员变量说明

◆ active

UCHAR_T TKL_BLE_GAP_SCAN_PARAMS_T::active

[Tuya Need]!!!! If 1, perform active scanning by sending scan requests. This parameter is ignored when used with tkl_ble_gap_connect.

◆ extended

UCHAR_T TKL_BLE_GAP_SCAN_PARAMS_T::extended

If 1, the scanner will accept extended advertising packets. If set to 0, the scanner will not receive advertising packets on secondary advertising channels, and will not be able to receive long advertising PDUs.

◆ interval

USHORT_T TKL_BLE_GAP_SCAN_PARAMS_T::interval

Scan interval in 625 us units.

◆ scan_channel_map

UCHAR_T TKL_BLE_GAP_SCAN_PARAMS_T::scan_channel_map

Scan Channel Index, refer to @TKL_BLE_GAP_ADV_PARAMS_T

◆ scan_phys

UCHAR_T TKL_BLE_GAP_SCAN_PARAMS_T::scan_phys

Refer to @TKL_BLE_GAP_PHY_1MBPS. TKL_BLE_GAP_PHY_2MBPS

◆ timeout

USHORT_T TKL_BLE_GAP_SCAN_PARAMS_T::timeout

Scan timeout in 10 ms units.

◆ window

USHORT_T TKL_BLE_GAP_SCAN_PARAMS_T::window

Scan window in 625 us units.


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