Hci Extension Api; Overview; Commands; G.1 Overview - Texas Instruments CC2540 Software Developers Manual

Bluetooth low energy
Hide thumbs Also See for CC2540:
Table of Contents

Advertisement

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
taskID– task ID of the user
Parameters
taskEvent – task event of the user (must be a single bit value)
SUCCESS: event configured correctly
Returns
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
SWRU271H – October 2010 – Revised April 2019
Submit Documentation Feedback
NOTE: This command fails to return any events but has a meaningful return
status.
simpleBLEPeripheral_init())
Copyright © 2010–2019, Texas Instruments Incorporated
SWRU271H – October 2010 – Revised April 2019

HCI Extension API

HCI Extension API
Appendix G
143

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cc2541

Table of Contents