EasyManuals Logo

Texas Instruments CC2540 Software Developers Guide

Texas Instruments CC2540
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 #119 background imageLoading...
Page #119 background image
www.ti.com
Commands
119
SWRU271HOctober 2010Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GAPRole Central Role API
bStatus_t GAPCentralRole_UpdateLink(uint16 connHandle, uint16 connIntervalMin, uint16
connIntervalMax, uint16 connLatency, uint16 connTimeout)
Update the link connection parameters.
Parameters connHandle - connection handle
connIntervalMin - minimum connection interval in 1.25 ms units
connIntervalMax - maximum connection interval in 1.25 ms units
connLatency - number of LL latency connection events
connTimeout - connection timeout in 10 ms units
Returns SUCCESS: parameter update has started
bleNotConnected: No connection to update.
INVALIDPARAMETER: connection parameters are invalid
LL_STATUS_ERROR_ILLEGAL_PARAM_COMBINATION: connection parameters do
not meet Bluetooth Low Energy spec requirements: STO > (1 + Slave Latency) ×
(Connection Interval × 2)
LL_STATUS_ERROR_INACTIVE_CONNECTION: connHandle is not active
LL_STATUS_ERROR_CTRL_PROC_ALREADY_ACTIVE: there is already a param
update in process
LL_STATUS_ERROR_UNACCEPTABLE_CONN_INTERVAL: connection interval wont
work because it is not a multiple or divisor of other simultaneous connection’s intervals,
or the connection’s interval is not less than the allowed maximum connection interval as
determined by the maximum number of connections times the number of slots per
connection
bStatus_t GAPCentralRole_StartDiscovery(uint8 mode, uint8 activeScan, uint8 whiteList)
Start a device discovery scan.
Parameters mode - discovery mode
activeScan - TRUE to perform active scan
whiteList - TRUE to only scan for devices in the white list
Returns SUCCESS: device discovery has started
bleAlreadyInRequestedMode: Device discovery already started.
bleMemAllocError: not enough memory to allocate device discovery structure.
LL_STATUS_ERROR_BAD_PARAMETER: bad parameter
LL_STATUS_ERROR_COMMAND_DISALLOWED

Table of Contents

Other manuals for Texas Instruments CC2540

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments CC2540 Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2540
CategoryMicrocontrollers
LanguageEnglish

Related product manuals