Classes | Macros | Typedefs | Enumerations | Functions | Variables
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"`

Go to the source code of this file.

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

## Macros
#define | BLE_COMMON_EVT_BASE 0x0100
#define | BLE_GAPM_EVT_BASE 0x0200
#define | BLE_GAPC_EVT_BASE 0x0300
#define | BLE_GATTS_EVT_BASE 0x0400
#define | BLE_GATTC_EVT_BASE 0x0500
#define | BLE_GATT_COMMON_EVT_BASE 0x0600
#define | BLE_SEC_EVT_BASE 0x0700
#define | BLE_L2CAP_EVT_BASE 0x0800
#define | BLE_SEC_ERR_OFFSET 0x60
#define | BLE_EVT_INIT(ble_evt, evt, status)

## 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_ADV_MONI_EVT_REPORT, BLE_GAPM_EVT_SCAN_MONI_EVT_REPORT, BLE_GAPM_EVT_IDEN_ADDR_REPORT, BLE_GAPM_EVT_DTM_TEST_END_REPORT, BLE_GAPM_EVT_RSLV_RESULT_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_DEV_INFO_SET, BLE_GAPC_EVT_CONNECT_IQ_REPORT, BLE_GAPC_EVT_CONNECTLESS_IQ_REPORT, BLE_GAPC_EVT_LOCAL_TX_POWER_READ, BLE_GAPC_EVT_REMOTE_TX_POWER_READ, BLE_GAPC_EVT_TX_POWER_CHANGE_REPORT, BLE_GAPC_EVT_PATH_LOSS_THRESHOLD_REPORT, BLE_GAPC_EVT_LE_EVT_NOTI_REPORT, BLE_GAPC_EVT_MAX }
| BLE GAP Connection Control Events. More...
enum | { BLE_GATT_COMMON_EVT_MTU_EXCHANGE = BLE_GATT_COMMON_EVT_BASE, BLE_GATT_COMMON_EVT_PRF_REGISTER, BLE_GATT_COMMON_EVT_MAX, AMS_PLAYER_ATTR_ID_NAME, AMS_PLAYER_ATTR_ID_PLAYBACK_INFO, AMS_PLAYER_ATTR_ID_VOLUME, IAS_ALERT_NONE, IAS_ALERT_MILD, IAS_ALERT_HIGH, EXFLASH_CONFIG_CACHE_MODE = 0x00, EXFLASH_CONFIG_READ_CMD = 0x01, EXFLASH_CONFIG_BAUD_RATE = 0x02, EXFLASH_CONFIG_CLOCK_MODE = 0x03, EXFLASH_CONFIG_CACHE_FLUSH = 0x04, EXFLASH_CONFIG_PAGE_TYPE = 0x05, LL_PWM_FLICKER_MODE = 0x00, LL_PWM_BREATH_MODE, LL_PWM_CODING_MODE, DFU_CACHE_TYPE_CALL_STACK = 0x00, DFU_CACHE_TYPE_REG, TRC_PWR_WFE_MODE = 0, TRC_PWR_DSLEEP_MODE, TRC_PWR_ACTIVE_MODE, TRC_PWR_BLE_RET_DSLEEP, TRC_PWR_APP_TIMER_REFUSE, TRC_PWR_APP_TIMER_PASS, TRC_PWR_BLE_TIMER_REFUSE, TRC_PWR_BLE_TIMER_PASS, TRC_PWR_RTC_TIMER_REFUSE, TRC_PWR_RTC_TIMER_PASS, TRC_PWR_RTC1_TIMER_REFUSE, TRC_PWR_RTC1_TIMER_PASS, TRC_PWR_WDT_TIMER_REFUSE, TRC_PWR_WDT_TIMER_PASS }
| 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_MULT_NTF, 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 }
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 }
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 }

## Functions
bool | ble_event_handle (const ble_evt_t *p_evt)

## Variables
ble_evt_handler_t | g_ble_evt_handler

## Detailed Description

BLE event header files.

Attention
  #####Copyright (c) 2019-2024 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.