143
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
HCI Extension API
Appendix G
SWRU271H–October 2010–Revised April 2019
HCI Extension API
G.1 Overview
This section describes the vendor specific HCI Extension API. These proprietary commands are specific to
the CC254x device. Where more detail is required, an example is provided.
NOTE: Unless stated otherwise, the return values for these commands is SUCCESS. This value
does not indicate successful completion of the command. These commands result in
corresponding events that you should check by the calling application
G.2 Commands
hciStatus_t HCI_EXT_AdvEventNoticeCmd ( uint8 taskID, uint16 taskEvent )
This command configures the device to set an event in the user task after each
advertisement event completes. A non-zero taskEvent value is enable, while a zero
valued taskEvent is disable.
Note
NOTE: This command fails to return any events but has a meaningful return
status.
Parameters taskID– task ID of the user
taskEvent – task event of the user (must be a single bit value)
Returns SUCCESS: event configured correctly
LL_STATUS_ERROR_BAD_PARAMETER: more than one bit is set.
Example (code additions to SimpleBLEPeripheral.c):
1. Define the event in the application.
2. Configure the Bluetooth Low Energy protocol stack to return the event (in
simpleBLEPeripheral_init())