EasyManuals Logo

Texas Instruments CC2541 Software Developers Guide

Texas Instruments CC2541
162 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #148 background imageLoading...
Page #148 background image
Commands
www.ti.com
148
SWRU271HOctober 2010Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
HCI Extension API
hciStatus_t HCI_EXT_GetConnInfoCmd (uint8 *numAllocConns, uint8 *numActiveConns,
hciConnInfo_t *activeConnInfo)
This command gets the number of allocated connections and the number of active
connections. For each active connection, this command gets the connection
handle, the connection role, the peer device address, and peer device address
type. The number of allocated connections is based on a default build value that
can be changed in the project using MAX_NUM_BLE_CONNS. The number of
active connections refers to active Bluetooth Low Energy connections. The
information per connection is based on the structure hciConnInfo_t provided in
hci.h. This command applies only to central devices for the CC254x as peripheral
devices can only have one simultaneous connection. If all parameters are NULL,
the call to this command is a network processor call through a transport layer and
the results are provided by the host through a vendor specific command complete
event. If any parameter is not NULL, the call to this command is a direct function
call and the valid pointers store the result. Ensure sufficient memory is allocated.
Obtain partial results by selective using pointers. If you want to know the number
of active connections, do the following:
Parameters numAllocConns pointer to number of build time connections allowed
numActiveConns - pointer to number of active Bluetooth Low Energy connections
activeConnInfo - pointer for the connection information for each active connection which
consists of the following: Connection ID, Connection Role, Peer Device Address, and
Peer Address Type, which requires (the number of active connections × 9 bytes) of
memory:
Corresponding Events: HCI_VendorSpecifcCommandCompleteEvent

Table of Contents

Other manuals for Texas Instruments CC2541

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments CC2541 and is the answer not in the manual?

Texas Instruments CC2541 Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2541
CategoryMicrocontrollers
LanguageEnglish

Related product manuals