TI BLE5-Stack API Documentation  1.01.12.00
Data Structures | Typedefs
GAP Bond Manager Callbacks

Data Structures

struct  gapBondCBs_t
 

Typedefs

typedef void(* pfnPairStateCB_t) (uint16_t connectionHandle, uint8_t state, uint8_t status)
 
typedef void(* pfnPasscodeCB_t) (uint8_t *deviceAddr, uint16_t connectionHandle, uint8_t uiInputs, uint8_t uiOutputs, uint32_t numComparison)
 

Detailed Description

These are functions whose pointers are passed from the application to the GAPBondMgr so that the GAPBondMgr can send events to the application

Typedef Documentation

§ pfnPairStateCB_t

typedef void(* pfnPairStateCB_t) (uint16_t connectionHandle, uint8_t state, uint8_t status)

Pairing State Callback Function

This callback returns the current pairing state to the application whenever the state changes and the current status of the pairing or bonding process associated with the current state.

Parameters
connectionHandleconnection handle of current pairing process
stateGAP Bond Manager Pairing State Events
statuspairing status

§ pfnPasscodeCB_t

typedef void(* pfnPasscodeCB_t) (uint8_t *deviceAddr, uint16_t connectionHandle, uint8_t uiInputs, uint8_t uiOutputs, uint32_t numComparison)

Passcode and Numeric Comparison Callback Function

This callback returns to the application the peer device information when a passcode is requested during the paring process or when numeric comparison is used

Parameters
deviceAddrPointer to 6-byte device address which the current pairing process relates to
connectionHandleConnection handle of the current pairing process
uiInputsif TRUE, the local device should accept a passcode input.
uiOutputsif TRUE, the local device should display the passcode.
numComparisonIf this is a nonzero value, then it is the code that should be displayed for numeric comparison pairing. If this is zero, then passkey entry pairing is occurring.
© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale