Go to the documentation of this file.
48 #ifndef __BLE_EVENT_H__
49 #define __BLE_EVENT_H__
63 #define BLE_COMMON_EVT_BASE 0x0100
64 #define BLE_GAPM_EVT_BASE 0x0200
65 #define BLE_GAPC_EVT_BASE 0x0300
66 #define BLE_GATTS_EVT_BASE 0x0400
67 #define BLE_GATTC_EVT_BASE 0x0500
68 #define BLE_GATT_COMMON_EVT_BASE 0x0600
69 #define BLE_SEC_EVT_BASE 0x0700
70 #define BLE_L2CAP_EVT_BASE 0x0800
@ BLE_GAPM_EVT_PRIVACY_MODE_SET
Privacy Mode for Peer Device Set complete event.
BLE_GAPM_EVTS
BLE GAP Managerment Events.
@ BLE_GAPM_EVT_SCAN_REQUEST
Scan Request event.
@ BLE_GATTC_EVT_READ_RSP
GATTC Read Response event.
@ BLE_GAPM_EVT_ADV_START
Advertising Start complete event.
#define BLE_GAPM_EVT_BASE
BLE GAP Management Event base.
@ BLE_GAPM_EVT_ADV_STOP
Advertising Stop complete event.
@ BLE_GATTS_EVT_PREP_WRITE_REQUEST
GATTS Prepare Write Request event .
@ BLE_GAPC_EVT_CONN_INFO_GOT
Connect Info Get event.
@ BLE_GATTC_EVT_WRITE_RSP
GATTC Write Response event.
@ BLE_GATT_COMMON_EVT_MAX
#define BLE_SEC_EVT_BASE
BLE Security Event base.
@ BLE_GAPM_EVT_ADV_REPORT
Advertising Report event.
@ BLE_GATTC_EVT_NTF_IND
GATTC Notify or Indicate Receive event.
ble_l2cap_evt_t l2cap_evt
BLE L2CAP Event.
@ BLE_GAPC_EVT_DISCONNECTED
Disconnected event.
@ BLE_GATT_COMMON_EVT_MTU_EXCHANGE
MTU Exchange event.
BLE_GATT_COMMON_EVTS
BLE GATT Common Events.
@ BLE_L2CAP_EVT_CONN_REQ
L2cap Connect Request event.
uint16_t evt_status
Event Status.
#define BLE_L2CAP_EVT_BASE
BLE L2CAP Event base.
ble_gatts_evt_t gatts_evt
BLE GATT Server Event.
BLE L2cap event structure.
@ BLE_GATTS_EVT_WRITE_REQUEST
GATTS Write Request event .
ble_sec_evt_t sec_evt
BLE Security Event.
@ BLE_GAPC_EVT_CONN_PARAM_UPDATED
Connect Parameter Updated event.
@ BLE_SEC_EVT_LINK_ENCRYPTED
Link Encrypted event.
@ BLE_GATTS_EVT_NTF_IND
GATTS Notify or Indicate Complete event .
@ BLE_GAPC_EVT_CONNECTED
Connected event.
@ BLE_L2CAP_EVT_ADD_CREDITS_CPLT
L2cap Credits Add Completed event.
BLE_L2CAP_EVTS
BLE L2CAP Events.
@ BLE_GAPM_EVT_SYNC_STOP
Periodic Advertising Synchronization Stop event.
@ BLE_GAPM_EVT_PER_ADV_LIST_SET
Periodic Advertising List Set complete event.
#define BLE_GATT_COMMON_EVT_BASE
BLE GATT Event base.
#define BLE_GAPC_EVT_BASE
BLE GAP Connection Control Event base.
@ BLE_GAPC_EVT_PEER_INFO_GOT
Peer Info Get event.
BLE GAPM event structure.
BLE_GATTC_EVTS
BLE GATTC Events.
@ BLE_GAPM_EVT_LEPSM_UNREGISTER
LEPSM Unregister complete event.
@ BLE_SEC_EVT_KEY_MISSING
Key Missing event.
@ BLE_L2CAP_EVT_SDU_RECV
L2cap SDU Receive event.
@ BLE_GATT_COMMON_EVT_PRF_REGISTER
Service Register event.
@ BLE_GATTS_EVT_CCCD_RECOVERY
GATTS CCCD Recovery event .
BLE_COMMON_EVTS
BLE Common Events.
@ BLE_GAPM_EVT_WHITELIST_SET
Whitelist Set complete event.
#define BLE_GATTS_EVT_BASE
BLE GATTS Event base.
@ BLE_GAPM_EVT_DEV_INFO_GOT
Device Info Get event.
@ BLE_COMMON_EVT_STACK_INIT
BLE Stack init complete event.
@ BLE_GAPM_EVT_SYNC_ESTABLISH
Periodic Advertising Synchronization Establish event.
BLE_GAPC_EVTS
BLE GAP Connection Control Events.
@ BLE_GATTC_EVT_CHAR_DESC_DISC
GATTC Characteristic Descriptor Discovery event .
@ BLE_GATTC_EVT_PRIMARY_SRVC_DISC
GATTC Primary Service Discovery event .
@ BLE_L2CAP_EVT_ADD_CREDITS_IND
L2cap Credits Add Indicate event.
BLE_SEC_EVTS
BLE SEC Events.
#define BLE_COMMON_EVT_BASE
BLE Common Event base.
ble_gapc_evt_t gapc_evt
BLE GAP Connection Control Event.
@ BLE_GAPC_EVT_CONN_PARAM_UPDATE_REQ
Connect Parameter Request event.
@ BLE_GAPM_EVT_ADV_DATA_UPDATE
Advertising Data update event.
@ BLE_L2CAP_EVT_SDU_SEND
L2cap SDU Send event.
BLE_GATTS_EVTS
BLE GATTS Events.
@ BLE_GAPM_EVT_SCAN_START
Scan Start complete event.
BLE GAPC event structure.
#define BLE_GATTC_EVT_BASE
BLE GATTC Event base.
@ BLE_GATTC_EVT_CHAR_DISC
GATTC Characteristic Discovery event .
BLE GATTS event structure.
@ BLE_SEC_EVT_KEY_PRESS_NTF
Key Press event.
@ BLE_GATTC_EVT_INCLUDE_SRVC_DISC
GATTC Include Service Discovery event .
@ BLE_SEC_EVT_LTK_REQ
LTK Request event.
@ BLE_GATTC_EVT_SRVC_BROWSE
GATTC Service Browse event .
@ BLE_L2CAP_EVT_CONN_IND
L2cap Connected Indicate event.
@ BLE_SEC_EVT_LINK_ENC_REQUEST
Link Encrypte Request event.
@ BLE_GAPC_EVT_PHY_UPDATED
PHY Update event.
void(* ble_evt_handler_t)(const ble_evt_t *p_evt)
The BLE event handler type.
@ BLE_GAPC_EVT_CONNECT_CANCLE
Connect Cancle event.
@ BLE_GAPC_EVT_AUTO_CONN_TIMEOUT
Auto Connect Timeout event.
@ BLE_GAPM_EVT_SCAN_STOP
Scan Stop complete event.
ble_gattc_evt_t gattc_evt
BLE GATT Client Event.
@ BLE_GATTS_EVT_READ_REQUEST
GATTS Read Request event .
ble_gapm_evt_t gapm_evt
BLE GAP Management Event.
@ BLE_GAPM_EVT_READ_RSLV_ADDR
Read Resolvable Address event.
@ BLE_GAPM_EVT_CH_MAP_SET
Channel Map Set complete event.
BLE Security event structure.
@ BLE_GAPC_EVT_PEER_NAME_GOT
peer Name Get event.
@ BLE_L2CAP_EVT_DISCONNECTED
L2cap Disconnected event.
@ BLE_GAPC_EVT_DATA_LENGTH_UPDATED
Data Length Updated event.
@ BLE_GAPM_EVT_LEPSM_REGISTER
LEPSM Register complete event.
@ BLE_GAPM_EVT_SYNC_LOST
Periodic Advertising Synchronization Lost event.
ble_gatt_common_evt_t gatt_common_evt
BLE GATT Common Event.
BLE GATTC event structure.