Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
os_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_OS_MGMT_CALLBACKS_
8#define H_MCUMGR_OS_MGMT_CALLBACKS_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
21
50
58 bool force;
59
60#if defined(CONFIG_MCUMGR_GRP_OS_RESET_BOOT_MODE) || defined(__DOXYGEN__)
63#endif
64};
65
75 zcbor_state_t *zse;
76
78 const size_t *decoded;
79
81 struct zcbor_string *query;
82
88};
89
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
os_mgmt_group_events
MGMT event opcodes for operating system management group.
Definition os_mgmt_callbacks.h:25
@ MGMT_EVT_OP_OS_MGMT_DATETIME_GET
Callback when a datetime get command has been received.
Definition os_mgmt_callbacks.h:36
@ MGMT_EVT_OP_OS_MGMT_DATETIME_SET
Callback when a datetime set command has been received, data is rtc_time.
Definition os_mgmt_callbacks.h:39
@ MGMT_EVT_OP_OS_MGMT_INFO_CHECK
Callback when an info command is processed, data is os_mgmt_info_check.
Definition os_mgmt_callbacks.h:30
@ MGMT_EVT_OP_OS_MGMT_BOOTLOADER_INFO
Callback when a bootloader info command has been received, data is os_mgmt_bootloader_info_data().
Definition os_mgmt_callbacks.h:45
@ MGMT_EVT_OP_OS_MGMT_RESET
Callback when a reset command has been received, data is os_mgmt_reset_data.
Definition os_mgmt_callbacks.h:27
@ MGMT_EVT_OP_OS_MGMT_INFO_APPEND
Callback when an info command needs to output data, data is os_mgmt_info_append.
Definition os_mgmt_callbacks.h:33
@ MGMT_EVT_OP_OS_MGMT_ALL
Used to enable all os_mgmt_group events.
Definition os_mgmt_callbacks.h:48
@ MGMT_EVT_GRP_OS
Definition callback_defines.h:61
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Structure provided in the MGMT_EVT_OP_OS_MGMT_BOOTLOADER_INFO notification callback: This callback fu...
Definition os_mgmt_callbacks.h:70
zcbor_state_t * zse
The zcbor encoder which is currently being used to output group information, additional fields to the...
Definition os_mgmt_callbacks.h:75
const size_t * decoded
Contains the number of decoded parameters.
Definition os_mgmt_callbacks.h:78
bool * has_output
Must be set to true to indicate a response has been added, otherwise will return the OS_MGMT_ERR_QUER...
Definition os_mgmt_callbacks.h:87
struct zcbor_string * query
Contains the value of the query parameter.
Definition os_mgmt_callbacks.h:81
Structure provided in the MGMT_EVT_OP_OS_MGMT_RESET notification callback: This callback function is ...
Definition os_mgmt_callbacks.h:56
bool force
Contains the value of the force parameter.
Definition os_mgmt_callbacks.h:58
uint8_t boot_mode
Contains the value of the boot_mode parameter.
Definition os_mgmt_callbacks.h:62