117
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GAPRole Central Role API
Appendix C
SWRU271H–October 2010–Revised April 2019
GAPRole Central Role API
C.1 Commands
bStatus_t GAPCentralRole_StartDevice(gapCentralRoleCB_t *pAppCallbacks)
Start the device in Central role. This function is typically called once during
system startup.
Parameters pAppCallbacks – pointer to application callbacks
Returns SUCCESS
bleAlreadyInRequestedMode: Device already started.
bStatus_t GAPCentralRole_SetParameter(uint16 param, uint8 len, void *pValue)
Set a GAP Role parameter.
Parameters param – Profile parameter ID (see Section C.2)
len – length of data to write
pValue – pointer to value to set parameter. This is dependent on the parameter ID and is
cast to the appropriate data type.
Returns SUCCESS
INVALIDPARAMETER: param was not valid
bleInvalidRange: len is invalid for the given param
bStatus_t GAPCentralRole_GetParameter (uint16 param, void *pValue)
Set a GAP Role parameter.
Parameters param – Profile parameter ID (see Section C.2)
pValue – pointer to buffer to contain the read data
Returns SUCCESS
INVALIDPARAMETER: param was not valid