TI BLE-Stack for Bluetooth 4.2 API Documentation
3.01.00.07
|
Data Structures | |
struct | gapCentralRoleCB_t |
Central GAPRole Callback Structure. More... | |
Typedefs | |
typedef uint8_t(* | pfnGapCentralRoleEventCB_t) (gapCentralRoleEvent_t *pEvent) |
Central Event Callback Function. More... | |
These are functions whose pointers are passed from the application to the GAPRole so that the GAPRole can send events to the application
typedef uint8_t(* pfnGapCentralRoleEventCB_t) (gapCentralRoleEvent_t *pEvent) |
Central Event Callback Function.
This callback is used by the Central GAPRole to forward GAP_Events to the application that it receives from the stack.
If the message is successfully queued to the application for later processing, FALSE is returned because the application deallocates it later. Consider the following state change event from simple_central as an example of this:
If the message is not successfully queued to the application, TRUE is returned so that the GAPRole can deallocate the message. If the heap has enough room, the message must always be successfully enqueued.
pEvent | Pointer to event structure. |