www.ti.com
Commands
139
SWRU271H–October 2010–Revised 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