Callbacks
www.ti.com
122
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GAPRole Central Role API
C.3.2 Central Event Callback (eventCB)
This callback is used to pass GAP state change events to the application. This callback is the following
type:
NOTE: TRUE should be returned from this function if the GAPRole is to deallocate the event
message. FALSE should be returned if the application deallocates. By default, TRUE is
always returned. If the event message is to be processed by the application at a later time
(not just in the callback context), FALSE should be returned
The possible GAPRole central states are in the following list. For more information on these events, see
Section A.3:
• GAP_DEVICE_INIT_DONE_EVENT
• GAP_DEVICE_DISCOVERY_EVENT
• GAP_LINK_ESTABLISHED_EVENT
• GAP_LINK_TERMINATED_EVENT
• GAP_LINK_PARAM_UPDATE_EVENT
• GAP_DEVICE_INFO_EVENT