TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
Typedefs
GAP Bond Manager Callbacks

Typedefs

typedef void(* pfnPairStateCB_t) (uint16 connectionHandle, uint8 state, uint8 status)
 Pairing State Callback Function. More...
 
typedef void(* pfnPasscodeCB_t) (uint8 *deviceAddr, uint16 connectionHandle, uint8 uiInputs, uint8 uiOutputs, uint32 numComparison)
 Passcode and Numeric Comparison Callback Function. More...
 

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 connectionHandle, uint8 state, uint8 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 States
statuspairing status

§ pfnPasscodeCB_t

typedef void(* pfnPasscodeCB_t) (uint8 *deviceAddr, uint16 connectionHandle, uint8 uiInputs, uint8 uiOutputs, uint32 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 passcode pairing is occurring.
Copyright 2017, Texas Instruments Incorporated