EasyManuals Logo
Home>Texas Instruments>Microcontrollers>CC2540DK-MINI

Texas Instruments CC2540DK-MINI Software Developers Guide

Texas Instruments CC2540DK-MINI
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 #139 background imageLoading...
Page #139 background image
www.ti.com
Commands
139
SWRU271HOctober 2010Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GAPBondMgr API
void GAPBondMgr_Register(gapBondCBs_t *pCB)
Register callback functions with the bond manager.
Parameters pCB pointer to callback function structure (see Section F.4)
bStatus_t GAPBondMgr_PasscodeRsp(uint16 connectionHandle, uint8 status, uint32 passcode)
Respond to a passcode request and update the passcode if possible.
Parameters connectionHandle connection handle of the connected device or 0xFFFF for all
devices in database.
status SUCCESS if passcode is available, otherwise, see
SMP_PAIRING_FAILED_DEFINES in gapbondmgr.h
passcode integer value containing the passcode
Returns SUCCESS: connection found and passcode was changed
bleIncorrectMode: connectionHandle connection not found or pairing has not started
INVALIDPARAMETER: passcode is out of range
bleMemAllocError: heap is out of memory
uint8 GAPBondMgr_ProcessGAPMsg(gapEventHdr_t *pMsg)
This is a bypass mechanism to let the bond manager process GAP messages.
Note
NOTE: This bypass mechanism is an advanced feature and should not be called
unless the normal GAP Bond Manager task ID registration is overridden.
Parameters pMsg GAP event message
Returns TRUE: safe to deallocate incoming GAP message
FALSE: not safe to deallocate an incoming gap message
uint8 GAPBondMgr_CheckNVLen(uint8 id, uint8 len )
This function will check the length of a Bond Manager NV Item.
Parameters id NV ID
len lengths in bytes of item.
Returns SUCCESS: NV item is the correct length
FAILURE: NV item is an incorrect length

Table of Contents

Other manuals for Texas Instruments CC2540DK-MINI

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments CC2540DK-MINI Specifications

General IconGeneral
BrandTexas Instruments
ModelCC2540DK-MINI
CategoryMicrocontrollers
LanguageEnglish

Related product manuals