
Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1
83
Ver.1.0.0
process, and corresponding interfaces to obtain the info are available in SMP part.
“local_irk” is not processed in current SDK, and it can be set as “NULL”.
ble_sts_t
ll_resolvingList_delete
(
u8
peerIdAddrType,
u8
*peerIdAddr);
This API is used to delete a RPA device from Resolvinglist.
For usage of address filter based on Whitelist/Resolvinglist, please refer to
“feature_whitelist demo” in 5316 feature test. (In order to enable this demo set
“FEATURE_TEST_MODE” to TEST_WHITELIST in “appconfig.h”)
3.2.9 2M PHY Supported
2M PHY is new Link layer feature available from BLE Core 5.0. Please refer to BLE Spec
Core_v5.0
(Vol 6/Part B/ Link Layer Specification) for details.
2M PHY interacts between the master controller and slave controller via three PDUs
(LL_PHY_REQ/LL_PHY_RSP/LL_PHY_UPDATE_IND) so as to set the transmission
rate of RF receiver finally. 2M PHY is only available after the connection is established, it
can not be used in disconnection. Both master and slave can start this process. If it is
started by master, master will send “LL_PHY_REQ PDU” and slave will send
“LL_PHY_RSP PDU” to respond master. During this process master and slave actually
exchange the PHYs they each support and prefer, then master will send
“LL_PHY_UPDATE_IND” and after “instance” reaches, master and slave will use their
new PHYs to transmit and receive data. If it is started by slave, slave will send
LL_PHY_REQ PDU, master will directly send “LL_PHY_UPDATE_IND to respond slave”
and after “instance” reaches, master and slave will use their new PHYs to transmit and
receive data after.
5316 BLE SDK supports 2M PHY. This function is enabled by default. APIs are provided
by 5316 BLE SDK for using 2M PHY. The following provides detailed descriptions of
each API. Please note that 5316 SDK only supports symmetric PHY which means the
settings of Rx PHY and Tx PHY must be the same.
To use 2M PHY, users must initialize 2M PHY feature. The initialization function must be
called to initialize 2M PHY. The prototype of the function is:
void
blc_ll_init2MPhy_feature
(
void
)
This function initializes all the parameters for 2M PHY operation.
If it is master to start PHY Update, users only need to call the initialization function above
and BLE stack will do other work. If it is slave to start PHY Update, users need to call the
PHY set function to set PHY. The prototype of the PHY set function is:
ble_sts_t
blc_ll_setPhy
(
u16
connHandle,
le_phy_prefer_mask_t
all_phys,
le_phy_prefer_type_t
tx_phys,
le_phy_prefer_type_t
rx_phys)
Descriptions of function parameters are as below:
Parameter
Description