TI BLE5-Stack API Documentation  2.02.07.00
Data Structures | Typedefs
GAP Callbacks

Data Structures

struct  gapBondMgrCBs_t
 Callback Registration Structure. More...
 

Typedefs

typedef void(* pfnGapCB_t) (uint32_t event, void *pBuf, uintptr_t arg)
 
typedef void(* pfnGapConnEvtCB_t) (Gap_ConnEventRpt_t *pReport)
 
typedef uint8_t(* pfnGapDevPrivModeCB_t) (GAP_Peer_Addr_Types_t addrType, uint8_t *pAddr)
 GAP Device Privacy Mode Callback Function.
 
typedef void(* pfnGapIdleCB_t) ()
 GAP Idle Callback Function.
 
typedef uint8_t(* pfnSuppCentAddrRes_t) (uint8_t *deviceAddr, GAP_Peer_Addr_Types_t addrType)
 Central Address Resolution (CAR) Support Callback Function.
 

Detailed Description

Typedef Documentation

§ pfnGapCB_t

typedef void(* pfnGapCB_t) (uint32_t event, void *pBuf, uintptr_t arg)

GAP Callback function pointer type for the advertising and scan modules.

This callback will return GapAdv Event IDs from the advertising module, some of which can be masked with GapAdv_eventMaskFlags_t. See the respective event in GapAdv Event IDs for the type that pBuf should be cast to.

This callback will also return GapAdv Event IDs from the advertising module. See the respective event in GapAdv Event IDs for the type that pBuf should be cast to.

§ pfnGapConnEvtCB_t

typedef void(* pfnGapConnEvtCB_t) ( Gap_ConnEventRpt_t *pReport)

GAP Callback function pointer type for Connection Event notifications.

When registered via Gap_RegisterConnEventCb, this callback will return a pointer to a Gap_ConnEventRpt_t from the controller after each connection event

Warning
The application owns the memory pointed to by pReport. That is, it is responsible for freeing this memory.
This is called from the stack task context. Therefore, processing in this callback should be minimized. Any excessive processing should be done by posting an event to the application task context.
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale