Classes | Macros | Typedefs | Enumerations
ble_event.h File Reference

BLE event header files. More...

`#include "ble_gapm.h"`
`#include "ble_gapc.h"`
`#include "ble_gatts.h"`
`#include "ble_gattc.h"`
`#include "ble_sec.h"`
`#include "ble_l2cap.h"`
Include dependency graph for ble_event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
struct | ble_evt_t
| BLE Event Information. More...

## Macros
#define | BLE_COMMON_EVT_BASE 0x0100
| BLE Common Event base. More...
#define | BLE_GAPM_EVT_BASE 0x0200
| BLE GAP Management Event base. More...
#define | BLE_GAPC_EVT_BASE 0x0300
| BLE GAP Connection Control Event base. More...
#define | BLE_GATTS_EVT_BASE 0x0400
| BLE GATTS Event base. More...
#define | BLE_GATTC_EVT_BASE 0x0500
| BLE GATTC Event base. More...
#define | BLE_GATT_COMMON_EVT_BASE 0x0600
| BLE GATT Event base. More...
#define | BLE_SEC_EVT_BASE 0x0700
| BLE Security Event base. More...
#define | BLE_L2CAP_EVT_BASE 0x0800
| BLE L2CAP Event base. More...

## Typedefs
typedef void(* | ble_evt_handler_t) (const ble_evt_t *p_evt)
| The BLE event handler type. More...

## Enumerations
enum | BLE_COMMON_EVTS { BLE_COMMON_EVT_STACK_INIT = BLE_COMMON_EVT_BASE, BLE_COMMON_EVT_MAX }
| BLE Common Events. More...
enum | BLE_GAPM_EVTS { BLE_GAPM_EVT_CH_MAP_SET = BLE_GAPM_EVT_BASE, BLE_GAPM_EVT_WHITELIST_SET, BLE_GAPM_EVT_PER_ADV_LIST_SET, BLE_GAPM_EVT_PRIVACY_MODE_SET, BLE_GAPM_EVT_LEPSM_REGISTER, BLE_GAPM_EVT_LEPSM_UNREGISTER, BLE_GAPM_EVT_DEV_INFO_GOT, BLE_GAPM_EVT_ADV_START, BLE_GAPM_EVT_ADV_STOP, BLE_GAPM_EVT_SCAN_REQUEST, BLE_GAPM_EVT_ADV_DATA_UPDATE, BLE_GAPM_EVT_SCAN_START, BLE_GAPM_EVT_SCAN_STOP, BLE_GAPM_EVT_ADV_REPORT, BLE_GAPM_EVT_SYNC_ESTABLISH, BLE_GAPM_EVT_SYNC_STOP, BLE_GAPM_EVT_SYNC_LOST, BLE_GAPM_EVT_READ_RSLV_ADDR, BLE_GAPM_EVT_RSLV_ADDR_REPORT, BLE_GAPM_EVT_MAX }
| BLE GAP Managerment Events. More...
enum | BLE_GAPC_EVTS { BLE_GAPC_EVT_PHY_UPDATED = BLE_GAPC_EVT_BASE, BLE_GAPC_EVT_CONNECTED, BLE_GAPC_EVT_DISCONNECTED, BLE_GAPC_EVT_CONNECT_CANCLE, BLE_GAPC_EVT_AUTO_CONN_TIMEOUT, BLE_GAPC_EVT_CONN_PARAM_UPDATED, BLE_GAPC_EVT_CONN_PARAM_UPDATE_REQ, BLE_GAPC_EVT_PEER_NAME_GOT, BLE_GAPC_EVT_CONN_INFO_GOT, BLE_GAPC_EVT_PEER_INFO_GOT, BLE_GAPC_EVT_DATA_LENGTH_UPDATED, BLE_GAPC_EVT_MAX }
| BLE GAP Connection Control Events. More...
enum | BLE_GATT_COMMON_EVTS { BLE_GATT_COMMON_EVT_MTU_EXCHANGE = BLE_GATT_COMMON_EVT_BASE, BLE_GATT_COMMON_EVT_PRF_REGISTER, BLE_GATT_COMMON_EVT_MAX }
| BLE GATT Common Events. More...
enum | BLE_GATTS_EVTS { BLE_GATTS_EVT_READ_REQUEST = BLE_GATTS_EVT_BASE, BLE_GATTS_EVT_WRITE_REQUEST, BLE_GATTS_EVT_PREP_WRITE_REQUEST, BLE_GATTS_EVT_NTF_IND, BLE_GATTS_EVT_CCCD_RECOVERY, BLE_GATTS_EVT_DATABASE_INITED_IND, BLE_GATTS_EVT_MAX }
| BLE GATTS Events. More...
enum | BLE_GATTC_EVTS { BLE_GATTC_EVT_SRVC_BROWSE = BLE_GATTC_EVT_BASE, BLE_GATTC_EVT_PRIMARY_SRVC_DISC, BLE_GATTC_EVT_INCLUDE_SRVC_DISC, BLE_GATTC_EVT_CHAR_DISC, BLE_GATTC_EVT_CHAR_DESC_DISC, BLE_GATTC_EVT_READ_RSP, BLE_GATTC_EVT_WRITE_RSP, BLE_GATTC_EVT_NTF_IND, BLE_GATTC_EVT_MAX }
| BLE GATTC Events. More...
enum | BLE_SEC_EVTS { BLE_SEC_EVT_LINK_ENC_REQUEST = BLE_SEC_EVT_BASE, BLE_SEC_EVT_LINK_ENCRYPTED, BLE_SEC_EVT_LTK_REQ, BLE_SEC_EVT_KEY_PRESS_NTF, BLE_SEC_EVT_KEY_MISSING, BLE_SEC_EVT_MAX }
| BLE SEC Events. More...
enum | BLE_L2CAP_EVTS { BLE_L2CAP_EVT_CONN_REQ = BLE_L2CAP_EVT_BASE, BLE_L2CAP_EVT_CONN_IND, BLE_L2CAP_EVT_ADD_CREDITS_IND, BLE_L2CAP_EVT_DISCONNECTED, BLE_L2CAP_EVT_SDU_RECV, BLE_L2CAP_EVT_SDU_SEND, BLE_L2CAP_EVT_ADD_CREDITS_CPLT, BLE_L2CAP_EVT_MAX }
| BLE L2CAP Events. More...

## Detailed Description

BLE event header files.

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file ble_event.h.