www.ti.com
GAPRole Task
35
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
The Bluetooth Low Energy Protocol Stack
5.3.2 Central Role
The central GAPRole task is defined in central.c and central.h. For the full API including commands,
configurable parameters, events, and callbacks, see Appendix C.
To use this module, do the following:
1. Initialize the GAPRole parameters. Section B.2 defines these parameters. Define the parameters in the
application initialization function (that is, SimpleBLECentral_init()).
2. Initialize the GAPRole task. Do this initialization when processing START DEVICE EVT. This
initialization involves passing function pointers to application callback functions. Section C.3 defines
these callbacks.
3. Send GAPRole commands from the application. The following is an example of the application using
GAPCentralRole_StartDiscovery().
NOTE: The return value from the Bluetooth Low Energy protocol stack only indicates whether the
attempt to perform device discovery was initiated or not. The termination of connection event
is returned asynchronously and is described in the following step. For the list of return
parameter associated with each API, see Appendix A through Appendix G.