TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
Macros
GAP Event IDs

Macros

#define GAP_ADV_DATA_UPDATE_DONE_EVENT   0x02
 
#define GAP_AUTHENTICATION_COMPLETE_EVENT   0x0A
 
#define GAP_AUTHENTICATION_FAILURE_EVT   0x10
 
#define GAP_BOND_COMPLETE_EVENT   0x0E
 
#define GAP_DEVICE_DISCOVERY_EVENT   0x01
 
#define GAP_DEVICE_INFO_EVENT   0x0D
 
#define GAP_DEVICE_INIT_DONE_EVENT   0x00
 
#define GAP_END_DISCOVERABLE_DONE_EVENT   0x04
 
#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_PASSKEY_NEEDED_EVENT   0x0B
 
#define GAP_RANDOM_ADDR_CHANGED_EVENT   0x08
 
#define GAP_SIGNATURE_UPDATED_EVENT   0x09
 
#define GAP_SLAVE_REQUESTED_SECURITY_EVENT   0x0C
 
#define GAP_UPDATE_LINK_PARAM_REQ_EVENT   0x11
 

Detailed Description

Macro Definition Documentation

§ GAP_ADV_DATA_UPDATE_DONE_EVENT

#define GAP_ADV_DATA_UPDATE_DONE_EVENT   0x02

Sent when the Advertising Data or SCAN_RSP Data has been updated. This event is sent as an OSAL message defined as gapAdvDataUpdateEvent_t.

§ GAP_AUTHENTICATION_COMPLETE_EVENT

#define GAP_AUTHENTICATION_COMPLETE_EVENT   0x0A

Sent when the Authentication (pairing) process is complete. This event is sent as an OSAL message defined as gapAuthCompleteEvent_t.

§ GAP_AUTHENTICATION_FAILURE_EVT

#define GAP_AUTHENTICATION_FAILURE_EVT   0x10

Sent when pairing fails, no GAP_AUTHENTICATION_COMPLETE_EVENT is sent and GBM_QUEUE_PAIRINGS is defined in the stack project. This event is sent as an OSAL message defined as osal_event_hdr_t.

§ GAP_BOND_COMPLETE_EVENT

#define GAP_BOND_COMPLETE_EVENT   0x0E

Sent when the bonding(bound) process is complete. This event is sent as an OSAL message defined as gapBondCompleteEvent_t.

§ GAP_DEVICE_DISCOVERY_EVENT

#define GAP_DEVICE_DISCOVERY_EVENT   0x01

Sent when the Device Discovery Process is complete. This event is sent as an OSAL message defined as gapDevDiscEvent_t.

§ GAP_DEVICE_INFO_EVENT

#define GAP_DEVICE_INFO_EVENT   0x0D

Sent during the Device Discovery Process when a device is discovered. This event is sent as an OSAL message defined as gapDeviceInfoEvent_t.

§ GAP_DEVICE_INIT_DONE_EVENT

#define GAP_DEVICE_INIT_DONE_EVENT   0x00

Sent resulting from GAP_DeviceInit when the Device Initialization is complete. This event is sent as an OSAL message defined as gapDeviceInitDoneEvent_t.

§ GAP_END_DISCOVERABLE_DONE_EVENT

#define GAP_END_DISCOVERABLE_DONE_EVENT   0x04

Sent when the Advertising has ended. This event is sent as an OSAL message defined as gapEndDiscoverableRspEvent_t.

§ GAP_LINK_ESTABLISHED_EVENT

#define GAP_LINK_ESTABLISHED_EVENT   0x05

Sent when the Establish Link Request is complete. This event is sent as an OSAL message defined as gapEstLinkReqEvent_t.

§ GAP_LINK_PARAM_UPDATE_EVENT

#define GAP_LINK_PARAM_UPDATE_EVENT   0x07

Sent when a Parameter Update Event is received. This event is sent as an OSAL message defined as gapLinkUpdateEvent_t.

§ GAP_LINK_TERMINATED_EVENT

#define GAP_LINK_TERMINATED_EVENT   0x06

Sent when a connection was terminated. This event is sent as an OSAL message defined as gapTerminateLinkEvent_t.

§ GAP_MAKE_DISCOVERABLE_DONE_EVENT

#define GAP_MAKE_DISCOVERABLE_DONE_EVENT   0x03

Sent when the Make Discoverable Request is complete. This event is sent as an OSAL message defined as gapMakeDiscoverableRspEvent_t.

§ GAP_PAIRING_REQ_EVENT

#define GAP_PAIRING_REQ_EVENT   0x0F

Sent when an unexpected Pairing Request is received. This event is sent as an OSAL message defined as gapPairingReqEvent_t.

§ GAP_PASSKEY_NEEDED_EVENT

#define GAP_PASSKEY_NEEDED_EVENT   0x0B

Sent when a Passkey is needed. This is part of the pairing process. This event is sent as an OSAL message defined as gapPasskeyNeededEvent_t.

§ GAP_RANDOM_ADDR_CHANGED_EVENT

#define GAP_RANDOM_ADDR_CHANGED_EVENT   0x08

Sent when a random address was changed. This event is sent as an OSAL message defined as gapRandomAddrEvent_t.

§ GAP_SIGNATURE_UPDATED_EVENT

#define GAP_SIGNATURE_UPDATED_EVENT   0x09

Sent when the device's signature counter is updated. This event is sent as an OSAL message defined as gapSignUpdateEvent_t.

§ GAP_SLAVE_REQUESTED_SECURITY_EVENT

#define GAP_SLAVE_REQUESTED_SECURITY_EVENT   0x0C

Sent when a Slave Security Request is received. This event is sent as an OSAL message defined as gapSlaveSecurityReqEvent_t.

§ GAP_UPDATE_LINK_PARAM_REQ_EVENT

#define GAP_UPDATE_LINK_PARAM_REQ_EVENT   0x11

Sent when a Connection Parameter Update Request is received. This event is sent as an OSAL message defined as gapUpdateLinkParamReqEvent_t. The application should respond with GAP_UpdateLinkParamReqReply

Copyright 2017, Texas Instruments Incorporated