nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
mds.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef MDS_H_
8#define MDS_H_
9
10#include <zephyr/bluetooth/conn.h>
11#include <zephyr/bluetooth/uuid.h>
12
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24#define BT_UUID_MDS_VAL \
25 BT_UUID_128_ENCODE(0x54220000, 0xf6a5, 0x4007, 0xa371, 0x722f4ebd8436)
26
28#define BT_UUID_MDS_SUPPORTED_FEATURES_VAL \
29 BT_UUID_128_ENCODE(0x54220001, 0xf6a5, 0x4007, 0xa371, 0x722f4ebd8436)
30
32#define BT_UUID_MDS_DEVICE_IDENTIFIER_VAL \
33 BT_UUID_128_ENCODE(0x54220002, 0xf6a5, 0x4007, 0xa371, 0x722f4ebd8436)
34
36#define BT_UUID_MDS_DATA_URI_VAL \
37 BT_UUID_128_ENCODE(0x54220003, 0xf6a5, 0x4007, 0xa371, 0x722f4ebd8436)
38
40#define BT_UUID_MDS_AUTHORIZATION_VAL \
41 BT_UUID_128_ENCODE(0x54220004, 0xf6a5, 0x4007, 0xa371, 0x722f4ebd8436)
42
44#define BT_UUID_MDS_DATA_EXPORT_VAL \
45 BT_UUID_128_ENCODE(0x54220005, 0xf6a5, 0x4007, 0xa371, 0x722f4ebd8436)
46
47#define BT_UUID_MEMFAULT_DIAG BT_UUID_DECLARE_128(BT_UUID_MDS_VAL)
48#define BT_UUID_MDS_SUPPORTED_FEATURES BT_UUID_DECLARE_128(BT_UUID_MDS_SUPPORTED_FEATURES_VAL)
49#define BT_UUID_MDS_DEVICE_IDENTIFIER BT_UUID_DECLARE_128(BT_UUID_MDS_DEVICE_IDENTIFIER_VAL)
50#define BT_UUID_MDS_DATA_URI BT_UUID_DECLARE_128(BT_UUID_MDS_DATA_URI_VAL)
51#define BT_UUID_MDS_AUTHORIZATION BT_UUID_DECLARE_128(BT_UUID_MDS_AUTHORIZATION_VAL)
52#define BT_UUID_MDS_DATA_EXPORT BT_UUID_DECLARE_128(BT_UUID_MDS_DATA_EXPORT_VAL)
53
56struct bt_mds_cb {
71 bool (*access_enable)(struct bt_conn *conn);
72};
73
85int bt_mds_cb_register(const struct bt_mds_cb *cb);
86
87#ifdef __cplusplus
88}
89#endif
90
95#endif /* MDS_H_ */
int bt_mds_cb_register(const struct bt_mds_cb *cb)
Register the Memfault Diagnostic service callback.
bool(* access_enable)(struct bt_conn *conn)
A callback for enabling Memfault access.
Definition: mds.h:71
Memfault Diagnostic Service callback structure.
Definition: mds.h:56