CC2541建立链接问题
BLE-stack指定的连接参数为
gapEstLinkReq_t Struct Reference
[BLE GAP Constants and Structures]
#include <gap.h>
Data Fields |
|
uint8 | taskID |
Requesting App/Profile's Task ID. | |
uint8 | highDutyCycle |
TRUE to high duty cycle scan, FALSE if not. | |
uint8 | whiteList |
Determines use of the white list: GAP White List Options. | |
uint8 | addrTypePeer |
Address type of the advertiser: GAP Address Types. | |
uint8 | peerAddr [B_ADDR_LEN] |
Advertiser's address. |
蓝牙协议规范指定的连接参数为
LE_Scan_Interval,
LE_Scan_Window,
Initiator_Filter_Policy,
Peer_Address_Type,
Peer_Address,
Own_Address_Type,
Conn_Interval_Min,
Conn_Interval_Max,
Conn_Latency,
Supervision_Timeout,
Minimum_CE_Length,
Maximum_CE_Length
请问怎么指定LE_Scan_Interval和LE_Scan_Window。以及ble-stack中的highDutyCycle参数用来做什么用的?
咋回事啊?都这么多天了。居然就没人帮忙解答一下。
是不是 用 GAP_SetParamValue(,)这个API?
最后查到了。。。
// Setup GAP
GAP_SetParamValue( TGAP_GEN_DISC_SCAN, DEFAULT_SCAN_DURATION );
GAP_SetParamValue( TGAP_LIM_DISC_SCAN, DEFAULT_SCAN_DURATION );
GAP_SetParamValue( TGAP_GEN_DISC_SCAN_INT, DEFAULT_SCAN_DURATION );
GAP_SetParamValue( TGAP_GEN_DISC_SCAN_WIND, DEFAULT_SCAN_DURATION );
GAP_SetParamValue( TGAP_LIM_DISC_SCAN_INT, DEFAULT_SCAN_DURATION );
GAP_SetParamValue( TGAP_LIM_DISC_SCAN_WIND, DEFAULT_SCAN_DURATION );