Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1
65
Ver.1.0.0
{
spp_send_data(HCI_FLAG_EVENT_TLK_MODULE, pEvt);
}
break
;
}
}
}
blc_hci_registerControllerEventHandler(controller_event_handler);
bls_hci_mod_setEventMask_cmd(0xfffff);
In the following sub-sections, all events, event trigger conditions and parameters of
corresponding callback functions for Controller will be introduced in details. Events
“BLT_EV_FLAG_PAIRING_BEGIN” and “BLT_EV_FLAG_PAIRING_END”, which do not
belong to Controller, will be introduced in Host SMP.
3.2.7.1 BLT_EV_FLAG_ADV
This event is not used in current SDK.
3.2.7.2 BLT_EV_FLAG_ADV_DURATION_TIMEOUT
Event
trigger condition: If the API “bls_ll_setAdvDuration” is called to set advertising
duration, a timer will be started in BLE stack bottom layer. When the timer reaches the
specified duration, advertising is stopped, and this event is triggered. In the callback
function of this event, users can implement operations such as modifying adv event type,
re-enabling advertising, re-configuring advertising duration and etc.
Pointer
“p”: null pointer.
Data length “n”: 0.
Note: This event won’t be triggered in “advertising in ConnSlaveRole” which is an
extended state of Link Layer.
3.2.7.3 BLT_EV_FLAG_SCAN_RSP
Event trigger condition: When Slave is in advertising state, this event will be triggered if
Slave responds with scan response to the scan request from Master.
Pointer
“p”: null pointer.
Data length “n”: 0.
3.2.7.4 BLT_EV_FLAG_CONNECT
Event trigger condition: When Link Layer is in advertising state, this event will be
triggered if it responds to connect request from Master and enters Conn state Slave role.