TI BLE5-Stack API Documentation  2.02.07.00
Macros
GAP Event IDs

Macros

#define GAP_ADV_REMOVE_SET_EVENT   0x13
 Sent when an advertising set needs to be removed. This is an internal event.
 
#define GAP_ADV_SET_PERIODIC_ADV_DATA_EVENT   0x1A
 Set periodic advertising data command complete event.
 
#define GAP_ADV_SET_PERIODIC_ADV_ENABLE_EVENT   0x1B
 Set periodic advertising enable command complete event.
 
#define GAP_ADV_SET_PERIODIC_ADV_PARAMS_EVENT   0x19
 Set periodic advertising parameters command complete event. More...
 
#define GAP_AUTHENTICATION_COMPLETE_EVENT   0x0A
 
#define GAP_AUTHENTICATION_FAILURE_EVT   0x10
 
#define GAP_BOND_COMPLETE_EVENT   0x0E
 
#define GAP_BOND_LOST_EVENT   0x17
 
#define GAP_CONNECTING_CANCELLED_EVENT   0x15
 
#define GAP_DEVICE_INIT_DONE_EVENT   0x00
 
#define GAP_LINK_ESTABLISHED_EVENT   0x05
 
#define GAP_LINK_PARAM_UPDATE_EVENT   0x07
 
#define GAP_LINK_PARAM_UPDATE_REJECT_EVENT   0x18
 
#define GAP_LINK_TERMINATED_EVENT   0x06
 
#define GAP_PAIRING_REQ_EVENT   0x0F
 
#define GAP_PASSKEY_NEEDED_EVENT   0x0B
 
#define GAP_SCAN_ADD_DEVICE_ADV_LIST_EVENT   0x20
 Add device to period advertisers list command complete event.
 
#define GAP_SCAN_CLEAR_ADV_LIST_EVENT   0x23
 Clear period advertisers list command complete event.
 
#define GAP_SCAN_CREATE_SYNC_EVENT   0x1C
 
#define GAP_SCAN_PERIODIC_ADV_REPORT_EVENT   0x26
 
#define GAP_SCAN_PERIODIC_ADV_SYNC_EST_EVENT   0x24
 
#define GAP_SCAN_PERIODIC_ADV_SYNC_LOST_EVENT   0x25
 
#define GAP_SCAN_PERIODIC_RECEIVE_EVENT   0x1F
 Periodic advertising receive enable command complete event.
 
#define GAP_SCAN_READ_ADV_LIST_SIZE_EVENT   0x22
 Read period advertisers list size command complete event.
 
#define GAP_SCAN_REMOVE_DEVICE_ADV_LIST_EVENT   0x21
 Remove device from period advertisers list create sync command complete event.
 
#define GAP_SCAN_SESSION_END_EVENT   0x12
 Sent when an advertising report session ends. This is an internal event.
 
#define GAP_SCAN_SYNC_CANCEL_EVENT   0x1D
 Periodic advertising create sync command complete event. More...
 
#define GAP_SCAN_TERMINATE_SYNC_EVENT   0x1E
 Periodic advertising terminate sync command complete event.
 
#define GAP_SIGNATURE_UPDATED_EVENT   0x09
 
#define GAP_SLAVE_REQUESTED_SECURITY_EVENT   0x0C
 
#define GAP_UPDATE_LINK_PARAM_REQ_EVENT   0x11
 

Detailed Description

These events are received as GAP_MSG_EVENT

Macro Definition Documentation

§ GAP_ADV_SET_PERIODIC_ADV_PARAMS_EVENT

#define GAP_ADV_SET_PERIODIC_ADV_PARAMS_EVENT   0x19

Set periodic advertising parameters command complete event.

Periodic Advertising Advertiser command complete events.

§ GAP_AUTHENTICATION_COMPLETE_EVENT

#define GAP_AUTHENTICATION_COMPLETE_EVENT   0x0A

Sent when the pairing process is complete as gapAuthCompleteEvent_t.

This event will be consumed by the gapbondmgr if it is present

§ GAP_AUTHENTICATION_FAILURE_EVT

#define GAP_AUTHENTICATION_FAILURE_EVT   0x10

Sent when pairing fails due a connection termination before the process completed. This event does not have any payload.

This event will be consumed by the gapbondmgr if it is present.

§ GAP_BOND_COMPLETE_EVENT

#define GAP_BOND_COMPLETE_EVENT   0x0E

Sent when the bonding process is complete as gapBondCompleteEvent_t.

This event will be consumed by the gapbondmgr if it is present

§ GAP_BOND_LOST_EVENT

#define GAP_BOND_LOST_EVENT   0x17

Sent as gapBondLostEvent_t when bond has been removed on peer

§ GAP_CONNECTING_CANCELLED_EVENT

#define GAP_CONNECTING_CANCELLED_EVENT   0x15

Sent as gapConnCancelledEvent_t when an a connecting attempt is canceled

§ GAP_DEVICE_INIT_DONE_EVENT

#define GAP_DEVICE_INIT_DONE_EVENT   0x00

Sent after a call to GAP_DeviceInit when the Device Initialization is complete as gapDeviceInitDoneEvent_t.

§ GAP_LINK_ESTABLISHED_EVENT

#define GAP_LINK_ESTABLISHED_EVENT   0x05

Sent after a link has been established as gapEstLinkReqEvent_t.

§ GAP_LINK_PARAM_UPDATE_EVENT

#define GAP_LINK_PARAM_UPDATE_EVENT   0x07

Sent after the completion of a parameter update gapLinkUpdateEvent_t.

This same event is received for both the LL and L2CAP procedures.

§ GAP_LINK_PARAM_UPDATE_REJECT_EVENT

#define GAP_LINK_PARAM_UPDATE_REJECT_EVENT   0x18

Sent after a recieved Connection Parameter Update Request was rejected by this device.

§ GAP_LINK_TERMINATED_EVENT

#define GAP_LINK_TERMINATED_EVENT   0x06

Sent when a connection was terminated as gapTerminateLinkEvent_t.

§ GAP_PAIRING_REQ_EVENT

#define GAP_PAIRING_REQ_EVENT   0x0F

Sent when an unexpected Pairing Request is received as gapPairingReqEvent_t.

This event will be consumed by the gapbondmgr if it is present

§ GAP_PASSKEY_NEEDED_EVENT

#define GAP_PASSKEY_NEEDED_EVENT   0x0B

Sent when a passkey is needed during pairing as gapPasskeyNeededEvent_t.

This event will be consumed by the gapbondmgr if it is present

§ GAP_SCAN_CREATE_SYNC_EVENT

#define GAP_SCAN_CREATE_SYNC_EVENT   0x1C

Periodic Advertising Scanner command status event.

§ GAP_SCAN_PERIODIC_ADV_REPORT_EVENT

#define GAP_SCAN_PERIODIC_ADV_REPORT_EVENT   0x26

Periodic Advertising Scanner report event.

§ GAP_SCAN_PERIODIC_ADV_SYNC_EST_EVENT

#define GAP_SCAN_PERIODIC_ADV_SYNC_EST_EVENT   0x24

Periodic Advertising Scanner establish event.

§ GAP_SCAN_PERIODIC_ADV_SYNC_LOST_EVENT

#define GAP_SCAN_PERIODIC_ADV_SYNC_LOST_EVENT   0x25

Periodic Advertising Scanner sync lost event.

§ GAP_SCAN_SYNC_CANCEL_EVENT

#define GAP_SCAN_SYNC_CANCEL_EVENT   0x1D

Periodic advertising create sync command complete event.

Periodic Advertising Scanner command complete events.

§ GAP_SIGNATURE_UPDATED_EVENT

#define GAP_SIGNATURE_UPDATED_EVENT   0x09

Sent when the peer device's signature counter is updated as gapSignUpdateEvent_t.

This event will be consumed by the gapbondmgr if it is present

§ GAP_SLAVE_REQUESTED_SECURITY_EVENT

#define GAP_SLAVE_REQUESTED_SECURITY_EVENT   0x0C

Sent when a Slave Security Request is received as gapSlaveSecurityReqEvent_t.

This event will be consumed by the gapbondmgr if it is present

§ GAP_UPDATE_LINK_PARAM_REQ_EVENT

#define GAP_UPDATE_LINK_PARAM_REQ_EVENT   0x11

Sent when a parameter update request is received. This event is only received when GAP_PARAM_LINK_UPDATE_DECISION is set to GAP_UPDATE_REQ_PASS_TO_APP. This event is sent as gapUpdateLinkParamReqEvent_t.

© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale