nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
ble_common_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _BLE_COMMON_EVENT_H_
8#define _BLE_COMMON_EVENT_H_
9
17#include <zephyr/bluetooth/bluetooth.h>
18#include <zephyr/bluetooth/conn.h>
19
20#include <app_event_manager.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
58
105
113 struct app_event_header header;
114
117
123 uint8_t reason;
124
126 void *id;
127};
128
140 struct app_event_header header;
141
144
146 uint8_t bt_app_id;
147
149 uint8_t bt_stack_id;
150};
151
164 struct app_event_header header;
165
167 void *id;
168
170 uint16_t interval_min;
171
173 uint16_t interval_max;
174
176 uint16_t latency;
177
179 uint16_t timeout;
180
185};
186
196 struct app_event_header header;
197
199 void *id;
200
202 uint8_t status;
203
205 struct bt_conn_le_conn_rate_changed params;
206};
207
217 struct app_event_header header;
218
220 void *id;
221
223 struct bt_conn_le_frame_space_updated params;
224};
225
233 struct app_event_header header;
234
236 void *id;
237
239 struct bt_conn_le_phy_info params;
240};
241
249 struct app_event_header header;
250
252 bool active;
253};
254
262 struct app_event_header header;
263};
264
265#ifdef __cplusplus
266}
267#endif
268
273#ifdef __cplusplus
274extern "C" {
275#endif
276
285
286#ifdef __cplusplus
287}
288#endif
289
290#endif /* _BLE_COMMON_EVENT_H_ */
Application Event Manager header.
Application Event Manager profiler tracer header.
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition app_event_manager.h:143
peer_operation
Peer operations.
Definition ble_common_event.h:61
@ PEER_OPERATION_ERASE_ADV
Definition ble_common_event.h:84
@ PEER_OPERATION_ERASE
Definition ble_common_event.h:81
@ PEER_OPERATION_SELECT
Definition ble_common_event.h:66
@ PEER_OPERATION_CANCEL
Definition ble_common_event.h:97
@ APP_EM_ENFORCE_ENUM_SIZE
Definition ble_common_event.h:56
@ PEER_OPERATION_SELECTED
Definition ble_common_event.h:72
@ PEER_OPERATION_SCAN_REQUEST
Definition ble_common_event.h:75
@ PEER_OPERATION_ERASED
Definition ble_common_event.h:92
@ PEER_OPERATION_COUNT
Definition ble_common_event.h:100
@ PEER_OPERATION_ERASE_ADV_CANCEL
Definition ble_common_event.h:87
peer_state
Peer states.
Definition ble_common_event.h:31
@ PEER_STATE_COUNT
Definition ble_common_event.h:53
@ PEER_STATE_DISCONNECTING
Definition ble_common_event.h:39
@ PEER_STATE_SECURED
Definition ble_common_event.h:47
@ PEER_STATE_CONN_FAILED
Definition ble_common_event.h:50
@ PEER_STATE_CONNECTED
Definition ble_common_event.h:42
@ PEER_STATE_DISCONNECTED
Definition ble_common_event.h:33
struct app_event_header header
Definition ble_common_event.h:262
Bluetooth LE advertising data update event.
Definition ble_common_event.h:260
uint16_t interval_max
Definition ble_common_event.h:173
bool updated
Definition ble_common_event.h:184
uint16_t interval_min
Definition ble_common_event.h:170
void * id
Definition ble_common_event.h:167
uint16_t latency
Definition ble_common_event.h:176
uint16_t timeout
Definition ble_common_event.h:179
struct app_event_header header
Definition ble_common_event.h:164
Bluetooth LE connection parameters event.
Definition ble_common_event.h:162
uint8_t reason
Definition ble_common_event.h:123
void * id
Definition ble_common_event.h:126
enum peer_state state
Definition ble_common_event.h:116
struct app_event_header header
Definition ble_common_event.h:113
Bluetooth LE peer event.
Definition ble_common_event.h:111
struct app_event_header header
Definition ble_common_event.h:217
struct bt_conn_le_frame_space_updated params
Definition ble_common_event.h:223
void * id
Definition ble_common_event.h:220
Bluetooth LE peer frame space updated event.
Definition ble_common_event.h:215
uint8_t bt_stack_id
Definition ble_common_event.h:149
enum peer_operation op
Definition ble_common_event.h:143
struct app_event_header header
Definition ble_common_event.h:140
uint8_t bt_app_id
Definition ble_common_event.h:146
Bluetooth LE peer operation event.
Definition ble_common_event.h:138
struct app_event_header header
Definition ble_common_event.h:233
void * id
Definition ble_common_event.h:236
struct bt_conn_le_phy_info params
Definition ble_common_event.h:239
Bluetooth LE peer PHY updated event.
Definition ble_common_event.h:231
struct app_event_header header
Definition ble_common_event.h:196
uint8_t status
Definition ble_common_event.h:202
void * id
Definition ble_common_event.h:199
struct bt_conn_le_conn_rate_changed params
Definition ble_common_event.h:205
Bluetooth LE peer SCI connection rate event.
Definition ble_common_event.h:194
struct app_event_header header
Definition ble_common_event.h:249
bool active
Definition ble_common_event.h:252
Bluetooth LE peer search event.
Definition ble_common_event.h:247