SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
The GAP layer functionality is defined mostly in library code. You can find the function headers in gap.h. Most of these functions are used by the GAPRole task and do not need to be called directly. Section A defines the GAP API. You may want to modify several parameters before starting the GAPRole task. These parameters can be set or retrieved through the GAP_SetParamValue() and GAP_GetParamValue() functions. These parameters include advertising and scanning intervals, windows, and so forth (see B and C [GAPRole xxx API). A configuration of the GAP layer in SimpleBLEPeripheral_init() folows.