43 #if !defined ( GAP_BONDINGS_MAX ) 44 #define GAP_BONDINGS_MAX 10 48 #if !defined ( GAP_CHAR_CFG_MAX ) 49 #define GAP_CHAR_CFG_MAX 4 72 #define GAPBOND_PAIRING_MODE 0x400 83 #define GAPBOND_MITM_PROTECTION 0x402 94 #define GAPBOND_IO_CAPABILITIES 0x403 105 #define GAPBOND_OOB_ENABLED 0x404 117 #define GAPBOND_OOB_DATA 0x405 128 #define GAPBOND_BONDING_ENABLED 0x406 142 #define GAPBOND_KEY_DIST_LIST 0x407 149 #define GAPBOND_ERASE_ALLBONDS 0x409 152 #define GAPBOND_AUTO_FAIL_PAIRING 0x40A 153 #define GAPBOND_AUTO_FAIL_REASON 0x40B 165 #define GAPBOND_KEYSIZE 0x40C 180 #define GAPBOND_AUTO_SYNC_WL 0x40D 189 #define GAPBOND_BOND_COUNT 0x40E 201 #define GAPBOND_BOND_FAIL_ACTION 0x40F 212 #define GAPBOND_ERASE_SINGLEBOND 0x410 227 #define GAPBOND_SECURE_CONNECTION 0x411 247 #define GAPBOND_ECCKEY_REGEN_POLICY 0x412 270 #define GAPBOND_ECC_KEYS 0x413 285 #define GAPBOND_LRU_BOND_REPLACEMENT 0x418 295 #define GAPBOND_ERASE_LOCAL_INFO 0x41A 307 #define GAPBOND_PAIRING_MODE_NO_PAIRING 0x00 309 #define GAPBOND_PAIRING_MODE_WAIT_FOR_REQ 0x01 311 #define GAPBOND_PAIRING_MODE_INITIATE 0x02 319 #define GAPBOND_IO_CAP_DISPLAY_ONLY 0x00 321 #define GAPBOND_IO_CAP_DISPLAY_YES_NO 0x01 323 #define GAPBOND_IO_CAP_KEYBOARD_ONLY 0x02 325 #define GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT 0x03 327 #define GAPBOND_IO_CAP_KEYBOARD_DISPLAY 0x04 335 #define GAPBOND_KEYDIST_SENCKEY 0x01 337 #define GAPBOND_KEYDIST_SIDKEY 0x02 339 #define GAPBOND_KEYDIST_SSIGN 0x04 341 #define GAPBOND_KEYDIST_SLINK 0x08 343 #define GAPBOND_KEYDIST_MENCKEY 0x10 345 #define GAPBOND_KEYDIST_MIDKEY 0x20 347 #define GAPBOND_KEYDIST_MSIGN 0x40 349 #define GAPBOND_KEYDIST_MLINK 0x80 370 #define GAPBOND_PAIRING_STATE_STARTED 0x00 391 #define GAPBOND_PAIRING_STATE_COMPLETE 0x01 410 #define GAPBOND_PAIRING_STATE_ENCRYPTED 0x02 411 #define GAPBOND_PAIRING_STATE_BOND_SAVED 0x03 413 #define GAPBOND_PAIRING_STATE_CAR_READ 0x04 415 #define GAPBOND_PAIRING_STATE_RPAO_READ 0x05 432 #define SMP_PAIRING_FAILED_PASSKEY_ENTRY_FAILED 0x01 433 #define SMP_PAIRING_FAILED_OOB_NOT_AVAIL 0x02 439 #define SMP_PAIRING_FAILED_AUTH_REQ 0x03 440 #define SMP_PAIRING_FAILED_CONFIRM_VALUE 0x04 442 #define SMP_PAIRING_FAILED_NOT_SUPPORTED 0x05 448 #define SMP_PAIRING_FAILED_ENC_KEY_SIZE 0x06 449 #define SMP_PAIRING_FAILED_CMD_NOT_SUPPORTED 0x07 451 #define SMP_PAIRING_FAILED_UNSPECIFIED 0x08 457 #define SMP_PAIRING_FAILED_REPEATED_ATTEMPTS 0x09 462 #define SMP_PAIRING_FAILED_INVALID_PARAMETERS 0x0A 467 #define SMP_PAIRING_FAILED_DHKEY_CHECK_FAILED 0x0B 472 #define SMP_PAIRING_FAILED_NUM_COMPARISON_FAILED 0x0C 479 #define GAPBOND_FAIL_NO_ACTION 0x00 481 #define GAPBOND_FAIL_INITIATE_PAIRING 0x01 483 #define GAPBOND_FAIL_TERMINATE_LINK 0x02 489 #define GAPBOND_FAIL_TERMINATE_ERASE_BONDS 0x03 496 #define GAPBOND_SECURE_CONNECTION_NONE 0x00 498 #define GAPBOND_SECURE_CONNECTION_ALLOW 0x01 500 #define GAPBOND_SECURE_CONNECTION_ONLY 0x02 512 #define GAPBOND_REGENERATE_ALWAYS 0x00 514 #define GAPBOND_REGENERATE_NEVER 0xFF 518 #define ECC_KEYLEN 32 553 uint16_t connectionHandle,
556 uint32_t numComparison
572 uint16_t connectionHandle,
703 uint8_t *pIdentityAddr);
735 uint8_t status, uint32_t passcode);
GAP_Peer_Addr_Types_t
Address types used for specifying peer address type.
Definition: gap.h:586
Public and Private ECC Keys.
Definition: gapbondmgr.h:597
bStatus_t GAPBondMgr_Pair(uint16_t connHandle)
bStatus_t GAPBondMgr_GetParameter(uint16_t param, void *pValue)
bStatus_t GAPBondMgr_PasscodeRsp(uint16_t connectionHandle, uint8_t status, uint32_t passcode)
void(* pfnPairStateCB_t)(uint16_t connectionHandle, uint8_t state, uint8_t status)
Definition: gapbondmgr.h:571
pfnPasscodeCB_t passcodeCB
Passcode callback.
Definition: gapbondmgr.h:585
bStatus_t GAPBondMgr_FindAddr(uint8_t *pDevAddr, GAP_Peer_Addr_Types_t addrType, uint8_t *pIdx, GAP_Peer_Addr_Types_t *pIdentityAddrType, uint8_t *pIdentityAddr)
Search for an address in the bonding table. If the address is a random private resolvable address...
void GAPBondMgr_Register(gapBondCBs_t *pCB)
Definition: gapbondmgr.h:583
void(* pfnPasscodeCB_t)(uint8_t *deviceAddr, uint16_t connectionHandle, uint8_t uiInputs, uint8_t uiOutputs, uint32_t numComparison)
Definition: gapbondmgr.h:551
bStatus_t GAPBondMgr_ServiceChangeInd(uint16_t connectionHandle, uint8_t setParam)
bStatus_t GAPBondMgr_SetParameter(uint16_t param, uint8_t len, void *pValue)
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:232
#define ECC_KEYLEN
ECC Key Length: 256 bit keys.
Definition: gapbondmgr.h:519
pfnPairStateCB_t pairStateCB
Pairing state callback.
Definition: gapbondmgr.h:586