Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
emconinfo.h File Reference

This file provides definitions and function prototypes for accessing the embedded controller and connection information. More...

Data Structures

struct  EMCONINFO_DEVINFO
 

Macros

#define BD_ADDRESS_SIZE   6
 
#define EMCONINFO_FLAG_BONDED_DEVICE   0x1
 
#define EMCONINFO_FLAG_LINK_ENCRYPTED   0x2
 
#define ROLE_CENTRAL   0
 
#define ROLE_PERIPHERAL   1
 
#define HCIULP_RANDOM_DATA_SIZE   8
 
#define EMCONINFO_GET_RAND()   (&emConInfo_devInfo.rand[0])
 

Enumerations

enum  EMCONINFO_STATE {
  NOT_STARTED, STARTUP, STARTED, START_ADVERTISE,
  ADVERTISING, CONNECTION
}
 

Functions

EMCONINFO_DEVINFOemconinfo_getPtr (void)
 
int emconinfo_getDiscReason (void)
 
void emconinfo_init (void)
 Initialize. More...
 
INT32 emconinfo_getAppTimerId (void)
 Get Application Timer ID. More...
 
void emconinfo_setAppTimerId (INT32)
 
UINT32 emconinfo_getAdvDuration (void)
 
void emconinfo_setAdvDuration (UINT32 duration)
 
UINT8 emconinfo_getIdleConnTimeout (void)
 
void emconinfo_setIdleConnTimeout (UINT8 t)
 
UINT8 * emconinfo_getAddr (void)
 Get Local Bluetooth Device Address. More...
 
int emconinfo_getAddrType (void)
 Get Local Bluetooth Device Address Type. More...
 
EMCONINFO_STATE emconinfo_getState (void)
 
void emconinfo_setState (EMCONINFO_STATE)
 
INT32 emconinfo_getConnHandle (void)
 Get Connection Handle. More...
 
void emconinfo_setConnHandle (UINT16 connHandle)
 
INT32 emconninfo_getRole (void)
 Get Role. More...
 
void emconninfo_setRole (INT32 role)
 
void emconninfo_setPeerClkAccuracy (INT32 clk)
 
INT32 emconninfo_getPeerClkAccuracy (void)
 
UINT8 * emconninfo_getPeerAddr (void)
 
UINT8 * emconninfo_getPeerPubAddr (void)
 
void emconninfo_setPeerAddrType (INT32 type)
 
INT32 emconninfo_getPeerAddrType (void)
 
INT32 emconninfo_getConnInterval (void)
 
void emconninfo_setConnInterval (INT32 interval)
 
INT32 emconninfo_getPeripheralLatency (void)
 
void emconninfo_setPeripheralLatency (INT32 latency)
 
INT32 emconninfo_getSupervisionTimeout (void)
 
void emconninfo_setSupervisionTimeout (INT32 timeout)
 
INT32 emconninfo_deviceBonded (void)
 
void emconninfo_setDeviceBondedFlag (void)
 
void emconninfo_clearDeviceBondedFlag (void)
 
INT32 emconninfo_linkEncrypted (void)
 
void emconninfo_clearLinkEncryptedFlag (void)
 
void emconninfo_setLinkEncryptedFlag (void)
 

Variables

EMCONINFO_DEVINFO emConInfo_devInfo
 

Detailed Description

This file provides definitions and function prototypes for accessing the embedded controller and connection information.