SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
The peripheral GAPRole task is defined in peripheral.c and peripheral.h. For descriptions of the full API including commands, configurable parameters, events, and callbacks, see Section B.
The general steps to use this module are the following:
NOTE
The return value from the Bluetooth Low Energy protocol stack only indicates whether the attempt to terminate the connection was initiated successfully. The termination of connection event sent to the application asynchronously and is described in the following example. The API in Section B.3 lists the return parameters for each command and associated callback function events.