nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
peer_conn_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _PEER_CONN_EVENT_H_
8#define _PEER_CONN_EVENT_H_
9
16#include <string.h>
17#include <zephyr/toolchain.h>
18
19#include <app_event_manager.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27#define PEER_ID_LIST \
28 X(USB) \
29 X(BLE)
30
32enum peer_id {
33#define X(name) _CONCAT(PEER_ID_, name),
35#undef X
36
38};
39
43};
44
47 struct app_event_header header;
48
50 uint8_t dev_idx;
52 uint32_t baudrate;
53};
54
56
57#ifdef __cplusplus
58}
59#endif
60
65#endif /* _PEER_CONN_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_conn_state
Definition: peer_conn_event.h:40
@ PEER_STATE_CONNECTED
Definition: peer_conn_event.h:41
@ PEER_STATE_DISCONNECTED
Definition: peer_conn_event.h:42
peer_id
Definition: peer_conn_event.h:32
@ PEER_ID_COUNT
Definition: peer_conn_event.h:37
#define PEER_ID_LIST
Definition: peer_conn_event.h:27
enum peer_id peer_id
Definition: peer_conn_event.h:49
enum peer_conn_state conn_state
Definition: peer_conn_event.h:51
uint8_t dev_idx
Definition: peer_conn_event.h:50
struct app_event_header header
Definition: peer_conn_event.h:47
uint32_t baudrate
Definition: peer_conn_event.h:52
Definition: peer_conn_event.h:46