48 #if !defined ( GAP_BONDINGS_MAX ) 49 #define GAP_BONDINGS_MAX 10 53 #if !defined ( GAP_CHAR_CFG_MAX ) 54 #define GAP_CHAR_CFG_MAX 4 78 #define GAPBOND_PAIRING_MODE 0x400 89 #define GAPBOND_MITM_PROTECTION 0x402 100 #define GAPBOND_IO_CAPABILITIES 0x403 111 #define GAPBOND_OOB_ENABLED 0x404 123 #define GAPBOND_OOB_DATA 0x405 134 #define GAPBOND_BONDING_ENABLED 0x406 148 #define GAPBOND_KEY_DIST_LIST 0x407 155 #define GAPBOND_ERASE_ALLBONDS 0x409 158 #define GAPBOND_AUTO_FAIL_PAIRING 0x40A 159 #define GAPBOND_AUTO_FAIL_REASON 0x40B 171 #define GAPBOND_KEYSIZE 0x40C 186 #define GAPBOND_AUTO_SYNC_WL 0x40D 195 #define GAPBOND_BOND_COUNT 0x40E 207 #define GAPBOND_BOND_FAIL_ACTION 0x40F 221 #define GAPBOND_ERASE_SINGLEBOND 0x410 236 #define GAPBOND_SECURE_CONNECTION 0x411 256 #define GAPBOND_ECCKEY_REGEN_POLICY 0x412 279 #define GAPBOND_ECC_KEYS 0x413 290 #define GAPBOND_SC_HOST_DEBUG 0x414 308 #define GAPBOND_ERASE_BOND_IN_CONN 0x415 327 #define GAPBOND_ALLOW_DEBUG_KEYS 0x416 342 #define GAPBOND_LRU_BOND_REPLACEMENT 0x418 352 #define GAPBOND_ERASE_LOCAL_INFO 0x41A 363 #define GAPBOND_AUTHEN_PAIRING_ONLY 0x41B 376 #define GAPBOND_PAIRING_MODE_NO_PAIRING 0x00 378 #define GAPBOND_PAIRING_MODE_WAIT_FOR_REQ 0x01 380 #define GAPBOND_PAIRING_MODE_INITIATE 0x02 388 #define GAPBOND_IO_CAP_DISPLAY_ONLY 0x00 390 #define GAPBOND_IO_CAP_DISPLAY_YES_NO 0x01 392 #define GAPBOND_IO_CAP_KEYBOARD_ONLY 0x02 394 #define GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT 0x03 396 #define GAPBOND_IO_CAP_KEYBOARD_DISPLAY 0x04 404 #define GAPBOND_KEYDIST_SENCKEY 0x01 406 #define GAPBOND_KEYDIST_SIDKEY 0x02 408 #define GAPBOND_KEYDIST_SSIGN 0x04 410 #define GAPBOND_KEYDIST_SLINK 0x08 412 #define GAPBOND_KEYDIST_MENCKEY 0x10 414 #define GAPBOND_KEYDIST_MIDKEY 0x20 416 #define GAPBOND_KEYDIST_MSIGN 0x40 418 #define GAPBOND_KEYDIST_MLINK 0x80 456 #define GAP_BOND_REC_ID_OFFSET 0 457 #define GAP_BOND_LOCAL_LTK_OFFSET 1 458 #define GAP_BOND_DEV_LTK_OFFSET 2 459 #define GAP_BOND_DEV_IRK_OFFSET 3 460 #define GAP_BOND_DEV_CSRK_OFFSET 4 461 #define GAP_BOND_DEV_SIGN_COUNTER_OFFSET 5 462 #define GAP_BOND_REC_IDS 6 465 #define GAP_BONDED_STATE_AUTHENTICATED 0x01 466 #define GAP_BONDED_STATE_SERVICE_CHANGED 0x02 467 #define GAP_BONDED_STATE_CAR 0x04 468 #define GAP_BONDED_STATE_SECURECONNECTION 0x08 469 #define GAP_BONDED_STATE_RPA_ONLY 0x10 488 #define GAPBOND_PAIRING_STATE_STARTED 0x00 509 #define GAPBOND_PAIRING_STATE_COMPLETE 0x01 528 #define GAPBOND_PAIRING_STATE_ENCRYPTED 0x02 529 #define GAPBOND_PAIRING_STATE_BOND_SAVED 0x03 531 #define GAPBOND_PAIRING_STATE_CAR_READ 0x04 533 #define GAPBOND_PAIRING_STATE_RPAO_READ 0x05 535 #define GAPBOND_GENERATE_ECC_DONE 0x06 552 #define SMP_PAIRING_FAILED_PASSKEY_ENTRY_FAILED 0x01 553 #define SMP_PAIRING_FAILED_OOB_NOT_AVAIL 0x02 559 #define SMP_PAIRING_FAILED_AUTH_REQ 0x03 560 #define SMP_PAIRING_FAILED_CONFIRM_VALUE 0x04 562 #define SMP_PAIRING_FAILED_NOT_SUPPORTED 0x05 568 #define SMP_PAIRING_FAILED_ENC_KEY_SIZE 0x06 569 #define SMP_PAIRING_FAILED_CMD_NOT_SUPPORTED 0x07 571 #define SMP_PAIRING_FAILED_UNSPECIFIED 0x08 577 #define SMP_PAIRING_FAILED_REPEATED_ATTEMPTS 0x09 582 #define SMP_PAIRING_FAILED_INVALID_PARAMETERS 0x0A 587 #define SMP_PAIRING_FAILED_DHKEY_CHECK_FAILED 0x0B 592 #define SMP_PAIRING_FAILED_NUM_COMPARISON_FAILED 0x0C 599 #define GAPBOND_FAIL_NO_ACTION 0x00 601 #define GAPBOND_FAIL_INITIATE_PAIRING 0x01 603 #define GAPBOND_FAIL_TERMINATE_LINK 0x02 609 #define GAPBOND_FAIL_TERMINATE_ERASE_BONDS 0x03 616 #define GAPBOND_SECURE_CONNECTION_NONE 0x00 618 #define GAPBOND_SECURE_CONNECTION_ALLOW 0x01 620 #define GAPBOND_SECURE_CONNECTION_ONLY 0x02 632 #define GAPBOND_REGENERATE_ALWAYS 0x00 634 #define GAPBOND_REGENERATE_NEVER 0xFF 638 #define ECC_KEYLEN 32 673 uint16_t connectionHandle,
676 uint32_t numComparison
692 uint16_t connectionHandle,
725 typedef struct gapBondOOBData
868 uint8_t *pIdentityAddr);
900 uint8_t status, uint32_t passcode);
GAP_Peer_Addr_Types_t
Address types used for specifying peer address type.
Definition: gap.h:727
Public and Private ECC Keys.
Definition: gapbondmgr.h:717
bStatus_t GAPBondMgr_Pair(uint16_t connHandle)
#define B_RANDOM_NUM_SIZE
BLE Random Number Size.
Definition: bcomdef.h:133
Structure of NV data for the connected device's encryption information.
Definition: gapbondmgr.h:732
bStatus_t GAPBondMgr_GenerateEccKeys(void)
Generates ECC keys.
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:691
bStatus_t GAPBondMgr_SCGetLocalOOBParameters(gapBondOOBData_t *localOobData)
Get local Random number and confirm value for secure connection.
Structure of NV data for the connected device's address information.
Definition: gapbondmgr.h:741
pfnPasscodeCB_t passcodeCB
Passcode callback.
Definition: gapbondmgr.h:705
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:703
void(* pfnPasscodeCB_t)(uint8_t *deviceAddr, uint16_t connectionHandle, uint8_t uiInputs, uint8_t uiOutputs, uint32_t numComparison)
Definition: gapbondmgr.h:671
uint8_t gapBondMgrImportBond(gapBondRec_t *pBondRec, gapBondLTK_t *pLocalLtk, gapBondLTK_t *pDevLtk, uint8_t *pIRK, uint8_t *pSRK, uint32_t signCount, gapBondCharCfg_t *charCfg)
Import bond record to NV.
uint8_t gapBondMgrReadBondRec(GAP_Peer_Addr_Types_t addrType, uint8_t *pDevAddr, gapBondRec_t *pBondRec, gapBondLTK_t *pLocalLtk, gapBondLTK_t *pDevLtk, uint8_t *pIRK, uint8_t *pSRK, uint32_t signCount, gapBondCharCfg_t *charCfg)
Read bond record from NV.
uint8_t stateFlags
Definition: gapbondmgr.h:759
bStatus_t GAPBondMgr_ServiceChangeInd(uint16_t connectionHandle, uint8_t setParam)
GAP_Peer_Addr_Types_t addrType
Definition: gapbondmgr.h:753
#define B_ADDR_LEN
Default Public and Random Address Length.
Definition: bcomdef.h:108
bStatus_t GAPBondMgr_SetParameter(uint16_t param, uint8_t len, void *pValue)
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:251
#define ECC_KEYLEN
ECC Key Length: 256 bit keys.
Definition: gapbondmgr.h:639
bStatus_t GAPBondMgr_SCSetRemoteOOBParameters(gapBondOOBData_t *remoteOobData, uint8 OOBDataFlag)
Set remote's OOB parameters for secure connection.
#define KEYLEN
Default key length.
Definition: bcomdef.h:111
pfnPairStateCB_t pairStateCB
Pairing state callback.
Definition: gapbondmgr.h:706
Structure of NV data for the connected device's characteristic configuration.
Definition: gapbondmgr.h:763