TI BLE5-Stack API Documentation  1.01.12.00
Data Structures | Macros | Functions
linkdb.h File Reference

Detailed Description

LinkDB layer interface

Go to the source code of this file.

Data Structures

struct  linkDBInfo_t
 Information pertaining to the linklinkDB info. More...
 

Macros

#define CONNHANDLE_ALL   0xFFFD
 Terminates all links.
 
#define CONNHANDLE_INVALID   0xFFFF
 Invalid connection handle, used for no connection handle.
 
#define CONNHANDLE_LOOPBACK   0xFFFE
 Loopback connection handle, used to loopback a message.
 
#define LINBDB_ERR_INSUFFICIENT_KEYSIZE   0x0c
 Link is encrypted but the key size is too small.
 
#define LINK_AUTHENTICATED   0x02
 Link is authenticated.
 
#define LINK_BOUND   0x04
 Link is bonded.
 
#define LINK_CONNECTED   0x01
 Link is connected.
 
#define LINK_ENCRYPTED   0x10
 Link is encrypted.
 
#define LINK_IN_UPDATE   0x40
 Link is in update procedure.
 
#define LINK_NOT_CONNECTED   0x00
 Link isn't connected.
 
#define LINK_PAIR_TIMEOUT   0x80
 Pairing attempt has been timed out.
 
#define LINK_SECURE_CONNECTIONS   0x20
 Link uses Secure Connections.
 
#define linkDB_Authenticated(connectionHandle)   linkDB_State( (connectionHandle), LINK_AUTHENTICATED )
 
#define linkDB_Bonded(connectionHandle)   linkDB_State( (connectionHandle), LINK_BOUND )
 
#define linkDB_Encrypted(connectionHandle)   linkDB_State( (connectionHandle), LINK_ENCRYPTED )
 
#define LINKDB_ERR_INSUFFICIENT_AUTHEN   0x05
 Link isn't even encrypted.
 
#define LINKDB_ERR_INSUFFICIENT_ENCRYPTION   0x0f
 Link is encrypted but it's not authenticated.
 
#define linkDB_Up(connectionHandle)   linkDB_State( (connectionHandle), LINK_CONNECTED )
 

Functions

uint8 linkDB_GetInfo (uint16 connectionHandle, linkDBInfo_t *pInfo)
 
uint8 linkDB_NumActive (void)
 
uint8 linkDB_NumConns (void)
 
uint8 linkDB_State (uint16 connectionHandle, uint8 state)
 
© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale