137
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GAPBondMgr API
Appendix F
SWRU271H–October 2010–Revised April 2019
GAPBondMgr API
F.1 Overview
This section details the API of the GAPBondMgr in gapbondmgr.c.
NOTE: Many commands do not need to be called from the application because they are called by
the GAPRole or the Bluetooth Low Energy Stack.
F.2 Commands
bStatus_t GAPBondMgr_SetParameter(uint16 param, void *pValue)
Set a GAP Bond Manager parameter.
Parameters param – Profile parameter ID (see Section F.3)
len – length of data to write
pValue – pointer to value to set parameter. This depends on the parameter ID and is
cast to the appropriate data type
Returns SUCCESS: parameter was set
INVALIDPARAMETER: param was not valid
bleInvalidRange: len is not valid for the given param
bStatus_t GAPBondMgr_GetParameter(uint16 param, void *pValue)
Get a GAP Bond Manager parameter.
Parameters param – Profile parameter ID (see Section F.3
pValue – pointer to a location to get the value. This pointer depends on the param ID
and is cast to the appropriate data type.
Returns SUCCESS: param was successfully placed in pValue
INVALIDPARAMETER: param was not valid
bStatus_t GAPBondMgr_LinkEst(uint8 addrType, uint8 *pDevAddr, uint16 connHandle, uint8
role)
Notify the Bond Manager that a connection has been made.
Parameters addrType – address type of the peer device:
peerAddr – peer device address
connHandle – connection handle
role – master or slave role
Returns SUCCESS: GAPBondMgr was notified of link establishment