Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
settings_mgmt_callbacks.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef H_MCUMGR_SETTINGS_MGMT_CALLBACKS_
8#define H_MCUMGR_SETTINGS_MGMT_CALLBACKS_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
29
39
49#ifdef CONFIG_MCUMGR_GRP_SETTINGS_BUFFER_TYPE_HEAP
50 const char *name;
51#else
52 char *name;
53#endif
54
56 const uint8_t *val;
57
59 const size_t *val_length;
60};
61
66#ifdef __cplusplus
67}
68#endif
69
70#endif
settings_mgmt_access_types
Definition settings_mgmt_callbacks.h:21
@ SETTINGS_ACCESS_DELETE
Definition settings_mgmt_callbacks.h:24
@ SETTINGS_ACCESS_COMMIT
Definition settings_mgmt_callbacks.h:25
@ SETTINGS_ACCESS_SAVE
Definition settings_mgmt_callbacks.h:27
@ SETTINGS_ACCESS_WRITE
Definition settings_mgmt_callbacks.h:23
@ SETTINGS_ACCESS_LOAD
Definition settings_mgmt_callbacks.h:26
@ SETTINGS_ACCESS_READ
Definition settings_mgmt_callbacks.h:22
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Structure provided in the MGMT_EVT_OP_SETTINGS_MGMT_ACCESS notification callback: This callback funct...
Definition settings_mgmt_callbacks.h:36
enum settings_mgmt_access_types access
Type of access.
Definition settings_mgmt_callbacks.h:38
const size_t * val_length
Length of data provided by the user (only set for SETTINGS_ACCESS_WRITE)
Definition settings_mgmt_callbacks.h:59
char * name
Key name for accesses (only set for SETTINGS_ACCESS_READ, SETTINGS_ACCESS_WRITE and SETTINGS_ACCESS_D...
Definition settings_mgmt_callbacks.h:52
const uint8_t * val
Data provided by the user (only set for SETTINGS_ACCESS_WRITE)
Definition settings_mgmt_callbacks.h:56