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

Detailed Description

GAP layer interface.

Go to the source code of this file.

Data Structures

struct  gapAdvDataToken_t
 GAP Advertisement/Scan Response Data Token. More...
 
struct  gapAdvDataUpdateEvent_t
 GAP_ADV_DATA_UPDATE_DONE_EVENT message format. More...
 
struct  gapAdvertisingParams_t
 Advertising Parameters. More...
 
struct  gapAuthCompleteEvent_t
 GAP_AUTHENTICATION_COMPLETE_EVENT message format. More...
 
struct  gapAuthParams_t
 Authentication Parameters. More...
 
struct  gapBondCompleteEvent_t
 GAP_BOND_COMPLETE_EVENT message format. More...
 
struct  gapBondMgrCBs_t
 Callback Registration Structure. More...
 
struct  gapDevDiscEvent_t
 GAP_DEVICE_DISCOVERY_EVENT message format. More...
 
struct  gapDevDiscReq_t
 Type of device discovery (Scan) to perform. More...
 
struct  gapDeviceInfoEvent_t
 GAP_DEVICE_INFO_EVENT message format. More...
 
struct  gapDeviceInitDoneEvent_t
 GAP_DEVICE_INIT_DONE_EVENT message format. More...
 
struct  gapDevRec_t
 Type of device discovery (Scan) to perform. More...
 
struct  gapEndDiscoverableRspEvent_t
 GAP_END_DISCOVERABLE_DONE_EVENT message format. More...
 
struct  gapEstLinkReq_t
 Establish Link Request parameters. More...
 
struct  gapEstLinkReqEvent_t
 GAP_LINK_ESTABLISHED_EVENT message format. More...
 
struct  gapEventHdr_t
 GAP event header format. More...
 
struct  gapLinkUpdateEvent_t
 GAP_LINK_PARAM_UPDATE_EVENT message format. More...
 
struct  gapMakeDiscoverableRspEvent_t
 GAP_MAKE_DISCOVERABLE_DONE_EVENT message format. More...
 
struct  gapPairingReq_t
 Pairing Request fields - the parsed fields of the SMP Pairing Request command. More...
 
struct  gapPairingReqEvent_t
 GAP_PAIRING_REQ_EVENT message format. More...
 
struct  gapPasskeyNeededEvent_t
 GAP_PASSKEY_NEEDED_EVENT message format. More...
 
struct  gapPeriConnectParams_t
 Connection parameters for the peripheral device. More...
 
struct  gapRandomAddrEvent_t
 GAP_RANDOM_ADDR_CHANGED_EVENT message format. More...
 
struct  gapSignUpdateEvent_t
 GAP_SIGNATURE_UPDATED_EVENT message format. More...
 
struct  gapSlaveSecurityReqEvent_t
 GAP_SLAVE_REQUESTED_SECURITY_EVENT message format. More...
 
struct  gapTerminateLinkEvent_t
 GAP_LINK_TERMINATED_EVENT message format. More...
 
struct  gapUpdateLinkParamReq_t
 Update Link Parameters Request parameters. More...
 
struct  gapUpdateLinkParamReqEvent_t
 GAP_UPDATE_LINK_PARAM_REQ_EVENT message format. More...
 
struct  gapUpdateLinkParamReqReply_t
 Update Link Parameters Request Reply parameters. More...
 

Macros

#define ADDRMODE_PRIVATE_NONRESOLVE   0x02
 Generate and Use Non-Resolvable Private Address.
 
#define ADDRMODE_PRIVATE_RESOLVE   0x03
 Generate and Use Resolvable Private Address.
 
#define ADDRMODE_PUBLIC   0x00
 Use the BD_ADDR.
 
#define ADDRMODE_STATIC   0x01
 Use provided Static Address.
 
#define ADDRTYPE_PUBLIC   0x00
 Public Device Address.
 
#define ADDRTYPE_PUBLIC_ID   0x02
 Public Identity Address (corresponds to peer's RPA)
 
#define ADDRTYPE_RANDOM   0x01
 Random Device Address.
 
#define ADDRTYPE_RANDOM_ID   0x03
 Random (static) Identity Address (corresponds to peer's RPA)
 
#define ADV_CHANMAP_SIZE   5
 Advertiser Channel Map.
 
#define DEVDISC_MODE_ALL   0x03
 Not filtered.
 
#define DEVDISC_MODE_GENERAL   0x01
 General Discoverable devices.
 
#define DEVDISC_MODE_LIMITED   0x02
 Limited Discoverable devices.
 
#define DEVDISC_MODE_NONDISCOVERABLE   0x00
 No discoverable setting.
 
#define GAP_ADRPT_ADV_DIRECT_IND   0x01
 Connectable directed advertisement.
 
#define GAP_ADRPT_ADV_IND   0x00
 Connectable undirected advertisement.
 
#define GAP_ADRPT_ADV_NONCONN_IND   0x03
 Non-Connectable undirected advertisement.
 
#define GAP_ADRPT_ADV_SCAN_IND   0x02
 Scannable undirected advertisement.
 
#define GAP_ADRPT_SCAN_RSP   0x04
 Scan Response.
 
#define GAP_ADTYPE_128BIT_COMPLETE   0x07
 Service: Complete list of 128-bit UUIDs.
 
#define GAP_ADTYPE_128BIT_MORE   0x06
 Service: More 128-bit UUIDs available.
 
#define GAP_ADTYPE_16BIT_COMPLETE   0x03
 Service: Complete list of 16-bit UUIDs.
 
#define GAP_ADTYPE_16BIT_MORE   0x02
 Service: More 16-bit UUIDs available.
 
#define GAP_ADTYPE_32BIT_COMPLETE   0x05
 Service: Complete list of 32-bit UUIDs.
 
#define GAP_ADTYPE_32BIT_MORE   0x04
 Service: More 32-bit UUIDs available.
 
#define GAP_ADTYPE_3D_INFO_DATA   0x3D
 3D Information Data
 
#define GAP_ADTYPE_ADV_HDC_DIRECT_IND   0x01
 Connectable high duty cycle directed advertisement.
 
#define GAP_ADTYPE_ADV_IND   0x00
 Connectable undirected advertisement.
 
#define GAP_ADTYPE_ADV_INTERVAL   0x1A
 Advertising Interval.
 
#define GAP_ADTYPE_ADV_LDC_DIRECT_IND   0x04
 Connectable low duty cycle directed advertisement.
 
#define GAP_ADTYPE_ADV_NONCONN_IND   0x03
 Non-Connectable undirected advertisement.
 
#define GAP_ADTYPE_ADV_SCAN_IND   0x02
 Scannable undirected advertisement.
 
#define GAP_ADTYPE_APPEARANCE   0x19
 Appearance.
 
#define GAP_ADTYPE_FLAGS   0x01
 GAP Device Discovery Modes
 
#define GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED   0x04
 Discovery Mode: BR/EDR Not Supported.
 
#define GAP_ADTYPE_FLAGS_GENERAL   0x02
 Discovery Mode: LE General Discoverable Mode.
 
#define GAP_ADTYPE_FLAGS_LIMITED   0x01
 Discovery Mode: LE Limited Discoverable Mode.
 
#define GAP_ADTYPE_LE_BD_ADDR   0x1B
 LE Bluetooth Device Address.
 
#define GAP_ADTYPE_LE_ROLE   0x1C
 LE Role.
 
#define GAP_ADTYPE_LOCAL_NAME_COMPLETE   0x09
 Complete local name.
 
#define GAP_ADTYPE_LOCAL_NAME_SHORT   0x08
 Shortened local name.
 
#define GAP_ADTYPE_MANUFACTURER_SPECIFIC   0xFF
 Manufacturer Specific Data: first 2 octets contain the Company Identifier Code followed by the additional manufacturer specific data.
 
#define GAP_ADTYPE_OOB_CLASS_OF_DEVICE   0x0D
 Simple Pairing OOB Tag: Class of device (3 octets)
 
#define GAP_ADTYPE_OOB_SIMPLE_PAIRING_HASHC   0x0E
 Simple Pairing OOB Tag: Simple Pairing Hash C (16 octets)
 
#define GAP_ADTYPE_OOB_SIMPLE_PAIRING_RANDR   0x0F
 Simple Pairing OOB Tag: Simple Pairing Randomizer R (16 octets)
 
#define GAP_ADTYPE_POWER_LEVEL   0x0A
 TX Power Level: 0xXX: -127 to +127 dBm.
 
#define GAP_ADTYPE_PUBLIC_TARGET_ADDR   0x17
 Public Target Address.
 
#define GAP_ADTYPE_RANDOM_TARGET_ADDR   0x18
 Random Target Address.
 
#define GAP_ADTYPE_SERVICE_DATA   0x16
 Service Data - 16-bit UUID.
 
#define GAP_ADTYPE_SERVICE_DATA_128BIT   0x21
 Service Data - 128-bit UUID.
 
#define GAP_ADTYPE_SERVICE_DATA_32BIT   0x20
 Service Data - 32-bit UUID.
 
#define GAP_ADTYPE_SERVICES_LIST_128BIT   0x15
 Service Solicitation: list of 128-bit Service UUIDs.
 
#define GAP_ADTYPE_SERVICES_LIST_16BIT   0x14
 Service Solicitation: list of 16-bit Service UUIDs.
 
#define GAP_ADTYPE_SIGNED_DATA   0x13
 Signed Data field.
 
#define GAP_ADTYPE_SIMPLE_PAIRING_HASHC_256   0x1D
 Simple Pairing Hash C-256.
 
#define GAP_ADTYPE_SIMPLE_PAIRING_RANDR_256   0x1E
 Simple Pairing Randomizer R-256.
 
#define GAP_ADTYPE_SLAVE_CONN_INTERVAL_RANGE   0x12
 Min and Max values of the connection interval (2 octets Min, 2 octets Max) (0xFFFF indicates no conn interval min or max)
 
#define GAP_ADTYPE_SM_OOB_FLAG   0x11
 Security Manager OOB Flags.
 
#define GAP_ADTYPE_SM_TK   0x10
 Security Manager TK Value.
 
#define GAP_ADV_DATA_UPDATE_DONE_EVENT   0x02
 
#define GAP_ADVCHAN_37   0x01
 Advertisement Channel 37.
 
#define GAP_ADVCHAN_38   0x02
 Advertisement Channel 38.
 
#define GAP_ADVCHAN_39   0x04
 Advertisement Channel 39.
 
#define GAP_ADVCHAN_ALL   (GAP_ADVCHAN_37 | GAP_ADVCHAN_38 | GAP_ADVCHAN_39)
 All Advertisement Channels Enabled.
 
#define GAP_APPEARE_GENERIC_BARCODE_SCANNER   0x02C0
 Generic Barcode Scanner.
 
#define GAP_APPEARE_GENERIC_BLOOD_PRESSURE   0x0380
 Generic Blood Pressure.
 
#define GAP_APPEARE_GENERIC_BP_ARM   0x0381
 Blood Pressure: Arm.
 
#define GAP_APPEARE_GENERIC_BP_WRIST   0x0382
 Blood Pressure: Wrist.
 
#define GAP_APPEARE_GENERIC_CLOCK   0x0100
 Generic Clock.
 
#define GAP_APPEARE_GENERIC_COMPUTER   0x0080
 Generic Computer.
 
#define GAP_APPEARE_GENERIC_DISPLAY   0x0140
 Generic Display.
 
#define GAP_APPEARE_GENERIC_EYE_GALSSES   0x01C0
 Generic Eye-glasses.
 
#define GAP_APPEARE_GENERIC_HID   0x03C0
 Generic Human Interface Device (HID)
 
#define GAP_APPEARE_GENERIC_HR_SENSOR   0x0340
 Generic Heart rate Sensor.
 
#define GAP_APPEARE_GENERIC_HRS_BELT   0x0341
 Heart Rate Sensor: Heart Rate Belt.
 
#define GAP_APPEARE_GENERIC_KEYRING   0x0240
 Generic Keyring.
 
#define GAP_APPEARE_GENERIC_MEDIA_PLAYER   0x0280
 Generic Media Player.
 
#define GAP_APPEARE_GENERIC_PHONE   0x0040
 Generic Phone.
 
#define GAP_APPEARE_GENERIC_RC   0x0180
 Generic Remote Control.
 
#define GAP_APPEARE_GENERIC_TAG   0x0200
 Generic Tag.
 
#define GAP_APPEARE_GENERIC_THERMO_EAR   0x0301
 Thermometer: Ear.
 
#define GAP_APPEARE_GENERIC_THERMOMETER   0x0300
 Generic Thermometer.
 
#define GAP_APPEARE_GENERIC_WATCH   0x00C0
 Generic Watch.
 
#define GAP_APPEARE_HID_BARCODE_SCANNER   0x03C8
 HID Barcode Scanner.
 
#define GAP_APPEARE_HID_DIGITAL_CARDREADER   0x03C6
 HID Card Reader.
 
#define GAP_APPEARE_HID_DIGITAL_PEN   0x03C7
 HID Digital Pen.
 
#define GAP_APPEARE_HID_DIGITIZER_TYABLET   0x03C5
 HID Digitizer Tablet.
 
#define GAP_APPEARE_HID_GAMEPAD   0x03C4
 HID Gamepad.
 
#define GAP_APPEARE_HID_JOYSTIC   0x03C3
 HID Joystick.
 
#define GAP_APPEARE_HID_KEYBOARD   0x03C1
 HID Keyboard.
 
#define GAP_APPEARE_HID_MOUSE   0x03C2
 HID Mouse.
 
#define GAP_APPEARE_UNKNOWN   0x0000
 Unknown.
 
#define GAP_APPEARE_WATCH_SPORTS   0x00C1
 Watch: Sports Watch.
 
#define GAP_AUTHENTICATION_COMPLETE_EVENT   0x0A
 
#define GAP_AUTHENTICATION_FAILURE_EVT   0x10
 
#define GAP_BOND_COMPLETE_EVENT   0x0E
 
#define GAP_CONNHANDLE_ALL   0xFFFF
 terminates all links for the matching task ID.
 
#define GAP_CONNHANDLE_INIT   0xFFFE
 terminates a link create
 
#define GAP_DEVICE_DISCOVERY_EVENT   0x01
 
#define GAP_DEVICE_INFO_EVENT   0x0D
 
#define GAP_DEVICE_INIT_DONE_EVENT   0x00
 
#define GAP_DISC_FILTER_POLICY_ALL   0x00
 Accept all Adv Packets except.
 
#define GAP_DISC_FILTER_POLICY_ALL_DIRECT   0x02
 Accept all Adv Packets and Direct Adv Packets where InitA is an RPA.
 
#define GAP_DISC_FILTER_POLICY_WHITE   0x01
 Accept only undirected Adv Packets from devices where AdvA is in WL.
 
#define GAP_DISC_FILTER_POLICY_WHITE_DIRECT   0x03
 Accept only undirected Adv Packets from devices where AdvA is in WL and Direct Adv Packets where InitA is an RPA.
 
#define GAP_END_DISCOVERABLE_DONE_EVENT   0x04
 
#define GAP_FILTER_POLICY_ALL   0x00
 Allow Scan Request from Any, Allow Connect Request from Any (default).
 
#define GAP_FILTER_POLICY_WHITE   0x03
 Allow Scan Request and Connect from White List Only.
 
#define GAP_FILTER_POLICY_WHITE_CON   0x02
 Allow Scan Request from Any, Connect from White List Only.
 
#define GAP_FILTER_POLICY_WHITE_SCAN   0x01
 Allow Scan Request from White List Only, Allow Connect from Any.
 
#define GAP_INIT_SIGN_COUNTER   0xFFFFFFFF
 Sign Counter Initialized. More...
 
#define GAP_LINK_ESTABLISHED_EVENT   0x05
 
#define GAP_LINK_PARAM_UPDATE_EVENT   0x07
 
#define GAP_LINK_TERMINATED_EVENT   0x06
 
#define GAP_MAKE_DISCOVERABLE_DONE_EVENT   0x03
 
#define GAP_PAIRING_REQ_EVENT   0x0F
 
#define GAP_PASSCODE_MAX   999999
 Maximum Pairing Passcode/Passkey value. Range of a passkey can be 0 - 999,999.
 
#define GAP_PASSKEY_NEEDED_EVENT   0x0B
 
#define GAP_PROFILE_BROADCASTER   0x01
 A device that sends advertising events only.
 
#define GAP_PROFILE_CENTRAL   0x08
 A device that supports the Central role initiates the establishment of a physical connection.
 
#define GAP_PROFILE_OBSERVER   0x02
 A device that receives advertising events only.
 
#define GAP_PROFILE_PERIPHERAL   0x04
 A device that accepts the establishment of an LE physical link using the connection establishment procedure.
 
#define GAP_RANDOM_ADDR_CHANGED_EVENT   0x08
 
#define GAP_SIGNATURE_UPDATED_EVENT   0x09
 
#define GAP_SLAVE_REQUESTED_SECURITY_EVENT   0x0C
 
#define GAP_STATE_ADV   0x01
 Device is advertising.
 
#define GAP_STATE_IDLE   0x00
 Device is idle.
 
#define GAP_STATE_INIT   0x04
 Device is establishing a connection.
 
#define GAP_STATE_SCAN   0x02
 Device is scanning.
 
#define GAP_UPDATE_LINK_PARAM_REQ_EVENT   0x11
 
#define MASK_ADDRTYPE_ID   0x01
 AND with addrtype to remove ID from type.
 
#define PRIVATE_NON_RESOLVE_ADDR_HDR   0x80
 Random Private Non-Resolvable Address (b10)
 
#define PRIVATE_RESOLVE_ADDR_HDR   0x40
 Random Private Resolvable Address (b01)
 
#define RANDOM_ADDR_HDR_MASK   0xC0
 Get top 2 bits of address.
 
#define RANDOM_ADDR_SUBTYPE_NRPA   0x02
 Non-Resolvable Private Address.
 
#define RANDOM_ADDR_SUBTYPE_RPA   0x01
 Resolvable Private Address.
 
#define RANDOM_ADDR_SUBTYPE_STATIC   0x00
 Random Static Address.
 
#define SET_ADDRTYPE_ID   0x02
 OR with addrtype to change addr type to ID.
 
#define STATIC_ADDR_HDR   0xC0
 Random Static Address (b11)
 
#define TGAP_CONN_ADV_INT_MAX   11
 Maximum advertising interval, when in Connectable mode (n * 0.625 mSec) More...
 
#define TGAP_CONN_ADV_INT_MIN   10
 Minimum advertising interval, when in Connectable mode (n * 0.625 mSec) More...
 
#define TGAP_CONN_EST_ADV_TIMEOUT   4
 Advertising timeout when performing connection establishment (ms) More...
 
#define TGAP_CONN_EST_INT_MAX   22
 Maximum connection interval for connection establishment (n * 1.25 mSec) More...
 
#define TGAP_CONN_EST_INT_MIN   21
 Minimum connection interval for connection establishment (n * 1.25 mSec) More...
 
#define TGAP_CONN_EST_LATENCY   26
 Slave latency for connection establishment (in number of connection events) More...
 
#define TGAP_CONN_EST_MAX_CE_LEN   28
 Local informational parameter about max len of connection needed, when using Connection Establishment proc (n * 0.625 mSec) More...
 
#define TGAP_CONN_EST_MIN_CE_LEN   27
 Local informational parameter about min len of connection needed, when using Connection Establishment proc (n * 0.625 mSec) More...
 
#define TGAP_CONN_EST_SCAN_INT   23
 Scan interval used during during connection establishment (n * 0.625 mSec) More...
 
#define TGAP_CONN_EST_SCAN_WIND   24
 Scan window used during during connection establishment (n * 0.625 mSec) More...
 
#define TGAP_CONN_EST_SUPERV_TIMEOUT   25
 Connection supervision timeout for connection establishment (n * 10 mSec) More...
 
#define TGAP_CONN_HIGH_SCAN_INT   14
 Scan interval used during connection establishment, high duty scan cycle scan parameters (n * 0.625 mSec) More...
 
#define TGAP_CONN_HIGH_SCAN_WIND   15
 Scan window used during connection establishment, high duty scan cycle scan parameters (n * 0.625 mSec) More...
 
#define TGAP_CONN_PARAM_TIMEOUT   5
 Timeout for link layer to wait to receive connection parameter update response before giving up (ms) More...
 
#define TGAP_CONN_PAUSE_CENTRAL   30
 Central idle timer (seconds) More...
 
#define TGAP_CONN_PAUSE_PERIPHERAL   31
 Minimum time upon connection establishment before the peripheral starts a connection update procedure (seconds) More...
 
#define TGAP_CONN_SCAN_INT   12
 Scan interval used during connection establishment (n * 0.625 mSec) More...
 
#define TGAP_CONN_SCAN_WIND   13
 Scan window used during connection establishment (n * 0.625 mSec) More...
 
#define TGAP_FILTER_ADV_REPORTS   35
 Filter duplicate advertising reports. More...
 
#define TGAP_GEN_DISC_ADV_INT_MAX   9
 Maximum advertising interval in general discovery mode (n × 0.625 ms) More...
 
#define TGAP_GEN_DISC_ADV_INT_MIN   8
 Minimum advertising interval in general discovery mode (n × 0.625 ms) More...
 
#define TGAP_GEN_DISC_ADV_MIN   0
 Minimum time to remain advertising, when in general discoverable mode (ms) More...
 
#define TGAP_GEN_DISC_SCAN   2
 Time to perform scanning for general discovery (ms) More...
 
#define TGAP_GEN_DISC_SCAN_INT   16
 Scan interval used when in General Discovery proc (n * 0.625 mSec) More...
 
#define TGAP_GEN_DISC_SCAN_WIND   17
 Scan window used when in General Discovery proc (n * 0.625 mSec) More...
 
#define TGAP_LIM_ADV_TIMEOUT   1
 Time to remain advertising in limited discovery mode (sec) More...
 
#define TGAP_LIM_DISC_ADV_INT_MAX   7
 Maximum advertising interval in limited discovery mode (n × 0.625 ms) More...
 
#define TGAP_LIM_DISC_ADV_INT_MIN   6
 Minimum advertising interval in limited discovery mode (n × 0.625 ms) More...
 
#define TGAP_LIM_DISC_SCAN   3
 Time to perform scanning for limited discovery (ms) More...
 
#define TGAP_LIM_DISC_SCAN_INT   18
 Scan interval used when in Limited Discovery proc (n * 0.625 mSec) More...
 
#define TGAP_LIM_DISC_SCAN_WIND   19
 Scan window used when in Limited Discovery proc (n * 0.625 mSec) More...
 
#define TGAP_PRIVATE_ADDR_INT   29
 Minimum Time Interval between private (resolvable) address changes (minutes) More...
 
#define TGAP_REJECT_CONN_PARAMS   37
 Whether or not to reject Connection Parameter Update Request received on Central device. More...
 
#define TGAP_SCAN_RSP_RSSI_MIN   36
 Minimum RSSI required for scan responses to be reported to the app (dBm) More...
 
#define TGAP_SM_MAX_KEY_LEN   34
 SM Maximum Key Length supported. More...
 
#define TGAP_SM_MIN_KEY_LEN   33
 SM Minimum Key Length supported. More...
 
#define TGAP_SM_TIMEOUT   32
 Time to wait for security manager response before returning bleTimeout (ms) More...
 
#define WL_NOTUSED   0x00
 White list not used but the advertiser's address in this command is used.
 
#define WL_USED   0x01
 White list is used and the advertiser's address in this command is not used.
 

Typedefs

typedef uint16 gapParamIDs_t
 GAP Parameters IDs. More...
 
typedef void(* pfnGapIdleCB_t) ()
 GAP Idle Callback Function.
 
typedef uint8(* pfnSuppEnhPrivCB_t) (uint8 *deviceAddr)
 Enhanced Privacy Check Callback Function.
 

Functions

bStatus_t GAP_Authenticate (gapAuthParams_t *pParams, gapPairingReq_t *pPairReq)
 Start Authentication. More...
 
bStatus_t GAP_Bond (uint16 connectionHandle, uint8 authenticated, uint8 secureConnections, smSecurityInfo_t *pParams, uint8 startEncryption)
 Set up the connection's bound paramaters. More...
 
bStatus_t GAP_ConfigDeviceAddr (uint8 addrMode, uint8 *pStaticAddr)
 Configure Device Address. More...
 
bStatus_t GAP_DeviceDiscoveryCancel (uint8 taskID)
 Cancel an existing device discovery request. More...
 
bStatus_t GAP_DeviceDiscoveryRequest (gapDevDiscReq_t *pParams)
 Start a device discovery scan. More...
 
bStatus_t GAP_DeviceInit (uint8 taskID, uint8 profileRole, uint8 maxScanResponses, uint8 *pIRK, uint8 *pSRK, uint32 *pSignCounter)
 GAP Device Initialiation. More...
 
bStatus_t GAP_EndDiscoverable (uint8 taskID)
 Stops advertising. More...
 
bStatus_t GAP_EstablishLinkReq (gapEstLinkReq_t *pParams)
 Establish a link to a slave device. More...
 
gapAdvDataToken_tGAP_GetAdvToken (uint8 adType)
 Get Advertising Token. More...
 
uint16 GAP_GetParamValue (gapParamIDs_t paramID)
 Get a GAP Parameter value. More...
 
uint8 GAP_isPairing (void)
 Check if GAP is currently pairing. More...
 
bStatus_t GAP_MakeDiscoverable (uint8 taskID, gapAdvertisingParams_t *pParams)
 Setup or change advertising. Also starts advertising. More...
 
uint8 GAP_NumActiveConnections (void)
 Returns the number of active connections. More...
 
bStatus_t GAP_PasscodeUpdate (uint32 passcode, uint16 connectionHandle)
 Update the passkey in a numeric value (not string). More...
 
bStatus_t GAP_PasskeyUpdate (uint8 *pPasskey, uint16 connectionHandle)
 Update the passkey in string format. More...
 
void GAP_RegisterBondMgrCBs (gapBondMgrCBs_t *pCBs)
 Register bond manager call backs. More...
 
void GAP_RegisterForMsgs (uint8 taskID)
 Register for GAP Messages. More...
 
gapAdvDataToken_tGAP_RemoveAdvToken (uint8 adType)
 Remove Advertising Token. More...
 
bStatus_t GAP_ResolvePrivateAddr (uint8 *pIRK, uint8 *pAddr)
 Resolves a private address against an IRK. More...
 
bStatus_t GAP_SendSlaveSecurityRequest (uint16 connectionHandle, uint8 authReq)
 Generate a Slave Requested Security message to the master. More...
 
bStatus_t GAP_SetAdvToken (gapAdvDataToken_t *pToken)
 Set Advertising Token. More...
 
bStatus_t GAP_SetParamValue (gapParamIDs_t paramID, uint16 paramValue)
 Set a GAP Parameter value. More...
 
bStatus_t GAP_Signable (uint16 connectionHandle, uint8 authenticated, smSigningInfo_t *pParams)
 Set up the connection to accept signed data. More...
 
bStatus_t GAP_TerminateAuth (uint16 connectionHandle, uint8 reason)
 Terminate Authnetication. More...
 
bStatus_t GAP_TerminateLinkReq (uint8 taskID, uint16 connectionHandle, uint8 reason)
 Terminate a link connection. More...
 
bStatus_t GAP_UpdateAdvertisingData (uint8 taskID, uint8 adType, uint8 dataLen, uint8 *pAdvertData)
 Setup or change advertising and scan response data. More...
 
bStatus_t GAP_UpdateAdvTokens (void)
 Update Advertising Token. More...
 
bStatus_t GAP_UpdateLinkParamReq (gapUpdateLinkParamReq_t *pParams)
 Update the link parameters to a Master or Slave device. More...
 
bStatus_t GAP_UpdateLinkParamReqReply (gapUpdateLinkParamReqReply_t *pParams)
 Reply to a Connection Parameter Update Request sent from a peer device. More...
 
void GAP_UpdateResolvingList (uint8 *pIRK)
 Update the resolving list. More...
 
Copyright 2017, Texas Instruments Incorporated