Zephyr Project API 4.4.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
12
13#ifndef H_MCUMGR_OS_MGMT_CALLBACKS_
14#define H_MCUMGR_OS_MGMT_CALLBACKS_
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
27
56
64 bool force;
65
66#if defined(CONFIG_MCUMGR_GRP_OS_RESET_BOOT_MODE) || defined(__DOXYGEN__)
69#endif
70};
71
81 zcbor_state_t *zse;
82
84 const size_t *decoded;
85
87 struct zcbor_string *query;
88
94};
95
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
os_mgmt_group_events
MGMT event opcodes for operating system management group.
Definition os_mgmt_callbacks.h:31
@ MGMT_EVT_OP_OS_MGMT_DATETIME_GET
Callback when a datetime get command has been received.
Definition os_mgmt_callbacks.h:42
@ 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:45
@ 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:36
@ 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:51
@ 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:33
@ 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:39
@ MGMT_EVT_OP_OS_MGMT_ALL
Used to enable all os_mgmt_group events.
Definition os_mgmt_callbacks.h:54
@ 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:76
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:81
const size_t * decoded
Contains the number of decoded parameters.
Definition os_mgmt_callbacks.h:84
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:93
struct zcbor_string * query
Contains the value of the query parameter.
Definition os_mgmt_callbacks.h:87
Structure provided in the MGMT_EVT_OP_OS_MGMT_RESET notification callback: This callback function is ...
Definition os_mgmt_callbacks.h:62
bool force
Contains the value of the force parameter.
Definition os_mgmt_callbacks.h:64
uint8_t boot_mode
Contains the value of the boot_mode parameter.
Definition os_mgmt_callbacks.h:68