nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches
ble_mcumgr.h
1
14#ifndef BLE_MCUMGR_H__
15#define BLE_MCUMGR_H__
16
17#include <stdint.h>
18#include <stdbool.h>
19#include <ble.h>
20#include <bm/bluetooth/ble_common.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27#define BLE_MCUMGR_SERVICE_UUID { 0x84, 0xAA, 0x60, 0x74, 0x52, 0x8A, 0x8B, 0x86, \
28 0xD3, 0x4C, 0xB7, 0x1D, 0x1D, 0xDC, 0x53, 0x8D }
29
30#define BLE_MCUMGR_CHARACTERISTIC_UUID { 0x48, 0x7C, 0x99, 0x74, 0x11, 0x26, 0x9E, 0xAE, \
31 0x01, 0x4E, 0xCE, 0xFB, 0x28, 0x78, 0x2E, 0xDA }
32
34#define BLE_MCUMGR_SERVICE_UUID_SUB 0xdc1d
35#define BLE_MCUMGR_CHARACTERISTIC_UUID_SUB 0x7828
36
38#define BLE_MCUMGR_CONFIG_SEC_MODE_DEFAULT \
39 { \
40 .mcumgr_char = { \
41 .read = BLE_GAP_CONN_SEC_MODE_OPEN, \
42 .write = BLE_GAP_CONN_SEC_MODE_OPEN, \
43 .cccd_write = BLE_GAP_CONN_SEC_MODE_OPEN, \
44 }, \
45 }
46
52 struct {
54 struct {
56 ble_gap_conn_sec_mode_t read;
58 ble_gap_conn_sec_mode_t write;
60 ble_gap_conn_sec_mode_t cccd_write;
63};
64
71uint32_t ble_mcumgr_init(const struct ble_mcumgr_config *cfg);
72
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif /* BLE_MCUMGR_H__ */
85
uint8_t ble_mcumgr_service_uuid_type(void)
Function for getting the MCUmgr Bluetooth service UUID type.
uint32_t ble_mcumgr_init(const struct ble_mcumgr_config *cfg)
Function for initializing the MCUmgr Bluetooth service.
ble_gap_conn_sec_mode_t cccd_write
Definition ble_mcumgr.h:60
ble_gap_conn_sec_mode_t write
Definition ble_mcumgr.h:58
ble_gap_conn_sec_mode_t read
Definition ble_mcumgr.h:56
struct ble_mcumgr_config::@109 sec_mode
struct ble_mcumgr_config::@109::@110 mcumgr_char
MCUmgr service configuration.
Definition ble_mcumgr.h:50