TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
Data Structures | Macros | Typedefs | Functions
central.h File Reference

Detailed Description

Central layer interface.

Go to the source code of this file.

Data Structures

struct  gapCentralRoleCB_t
 Central GAPRole Callback Structure. More...
 
union  gapCentralRoleEvent_t
 Central Event Structure. More...
 

Macros

#define GAPCENTRALROLE_BD_ADDR   0x403
 Device Address read from the controller (Read-only) More...
 
#define GAPCENTRALROLE_IRK   0x400
 Identity Resolving Key (Read/Write) More...
 
#define GAPCENTRALROLE_LINK_PARAM_UPDATE_REQ_REPLY   0x405
 Action taken when a parameter update fails (Read/Write) More...
 
#define GAPCENTRALROLE_MAX_SCAN_RES   0x404
 Maximmum number of scan reports to store from GAPCentralRole_StartDiscovery (Read/Write) More...
 
#define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_ACCEPT   0x01
 always accept what the remote peripheral is requesting.
 
#define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_REJECT   0x00
 always reject what the remote peripheral is requesting.
 
#define GAPCENTRALROLE_PARAM_UPDATE_REQ_SEND_TO_APP   0x02
 pass request onto application, requires a response before timeout.
 
#define GAPCENTRALROLE_SIGNCOUNTER   0x402
 Sign Counter (Read/Write) More...
 
#define GAPCENTRALROLE_SRK   0x401
 Signature Resolving Key (Read/Write) More...
 

Typedefs

typedef uint8_t(* pfnGapCentralRoleEventCB_t) (gapCentralRoleEvent_t *pEvent)
 Central Event Callback Function. More...
 

Functions

bStatus_t GAPCentralRole_CancelDiscovery (void)
 Cancel a device discovery scan. More...
 
bStatus_t GAPCentralRole_EstablishLink (uint8_t highDutyCycle, uint8_t whiteList, uint8_t addrTypePeer, uint8_t *peerAddr)
 Establish a link to a peer device. More...
 
bStatus_t GAPCentralRole_GetParameter (uint16_t param, void *pValue)
 Get a parameter in the Central Profile. More...
 
bStatus_t GAPCentralRole_SetParameter (uint16_t param, uint8_t len, void *pValue)
 Set a parameter in the Central Profile. More...
 
bStatus_t GAPCentralRole_StartDevice (gapCentralRoleCB_t *pAppCallbacks)
 Start the device in Central role. This function is typically called once during system startup. More...
 
bStatus_t GAPCentralRole_StartDiscovery (uint8_t mode, uint8_t activeScan, uint8_t whiteList)
 Start a device discovery scan. More...
 
bStatus_t GAPCentralRole_TerminateLink (uint16_t connHandle)
 Terminate a link. More...
 
bStatus_t GAPCentralRole_UpdateLink (uint16_t connHandle, uint16_t connIntervalMin, uint16_t connIntervalMax, uint16_t connLatency, uint16_t connTimeout)
 Update the link connection parameters. More...
 
Copyright 2017, Texas Instruments Incorporated