Zephyr Project API 4.2.99
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
45
55#ifdef CONFIG_MCUMGR_GRP_SETTINGS_BUFFER_TYPE_HEAP
56 const char *name;
57#else
58 char *name;
59#endif
60
62 const uint8_t *val;
63
65 const size_t *val_length;
66};
67
72#ifdef __cplusplus
73}
74#endif
75
76#endif
settings_mgmt_access_types
Definition settings_mgmt_callbacks.h:26
@ SETTINGS_ACCESS_DELETE
Setting is being deleted.
Definition settings_mgmt_callbacks.h:29
@ SETTINGS_ACCESS_COMMIT
Setting is being committed.
Definition settings_mgmt_callbacks.h:30
@ SETTINGS_ACCESS_SAVE
Setting is being saved.
Definition settings_mgmt_callbacks.h:32
@ SETTINGS_ACCESS_WRITE
Setting is being written.
Definition settings_mgmt_callbacks.h:28
@ SETTINGS_ACCESS_LOAD
Setting is being loaded.
Definition settings_mgmt_callbacks.h:31
@ SETTINGS_ACCESS_READ
Setting is being read.
Definition settings_mgmt_callbacks.h:27
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Structure provided in the MGMT_EVT_OP_SETTINGS_MGMT_ACCESS notification callback.
Definition settings_mgmt_callbacks.h:42
enum settings_mgmt_access_types access
Type of access.
Definition settings_mgmt_callbacks.h:44
const size_t * val_length
Length of data provided by the user (only set for SETTINGS_ACCESS_WRITE)
Definition settings_mgmt_callbacks.h:65
char * name
Key name for accesses (only set for SETTINGS_ACCESS_READ, SETTINGS_ACCESS_WRITE and SETTINGS_ACCESS_D...
Definition settings_mgmt_callbacks.h:58
const uint8_t * val
Data provided by the user (only set for SETTINGS_ACCESS_WRITE)
Definition settings_mgmt_callbacks.h:62