nRF Connect SDK API 2.8.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
194 struct app_event_header header;
195
197 bool active;
198};
199
207 struct app_event_header header;
208};
209
210#ifdef __cplusplus
211}
212#endif
213
218#ifdef __cplusplus
219extern "C" {
220#endif
221
227
228#ifdef __cplusplus
229}
230#endif
231
232#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:207
Bluetooth LE advertising data update event.
Definition ble_common_event.h:205
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
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:194
bool active
Definition ble_common_event.h:197
Bluetooth LE peer search event.
Definition ble_common_event.h:192