Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
img_mgmt_callbacks.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Laird Connectivity
3 * Copyright (c) 2022 Nordic Semiconductor ASA
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef H_MCUMGR_IMG_MGMT_CALLBACKS_
9#define H_MCUMGR_IMG_MGMT_CALLBACKS_
10
11#include <stdbool.h>
12#include <stdint.h>
13#include <zcbor_common.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/* Dummy definitions, include zephyr/mgmt/mcumgr/grp/img_mgmt/img_mgmt.h for actual definitions */
22
44
54
61 bool *ok;
62 zcbor_state_t *zse;
64 const char *version;
65 const uint8_t *hash;
66 const int flags;
67};
68
77
82 zcbor_state_t *zse;
83};
84
93
96
98 const struct flash_area *fa;
99
104 zcbor_state_t *zse;
105};
106
111#ifdef __cplusplus
112}
113#endif
114
115#endif
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Flash partition.
Definition flash_map.h:54
Structure provided in the MGMT_EVT_OP_IMG_MGMT_DFU_CONFIRMED notification callback: This callback fun...
Definition img_mgmt_callbacks.h:50
const uint8_t image
Image number which has been confirmed.
Definition img_mgmt_callbacks.h:52
Structure provided in the MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_IMAGE notification callback: This callback f...
Definition img_mgmt_callbacks.h:74
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:76
zcbor_state_t * zse
The zcbor encoder which is currently being used to output information, additional fields can be added...
Definition img_mgmt_callbacks.h:82
Structure provided in the MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_SLOT notification callback: This callback fu...
Definition img_mgmt_callbacks.h:90
zcbor_state_t * zse
The zcbor encoder which is currently being used to output information, additional fields can be added...
Definition img_mgmt_callbacks.h:104
const uint8_t slot
The slot that is currently being enumerated.
Definition img_mgmt_callbacks.h:95
const struct flash_area * fa
Flash area of the slot that is current being enumerated.
Definition img_mgmt_callbacks.h:98
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:92
Structure provided in the MGMT_EVT_OP_IMG_MGMT_IMAGE_SLOT_STATE notification callback: This callback ...
Definition img_mgmt_callbacks.h:60
const uint8_t * hash
Definition img_mgmt_callbacks.h:65
zcbor_state_t * zse
Definition img_mgmt_callbacks.h:62
bool * ok
Definition img_mgmt_callbacks.h:61
const int flags
Definition img_mgmt_callbacks.h:66
const char * version
Definition img_mgmt_callbacks.h:64
const uint32_t slot
Definition img_mgmt_callbacks.h:63
Describes what to do during processing of an upload request.
Definition img_mgmt.h:220
Structure provided in the MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK notification callback: This callback functio...
Definition img_mgmt_callbacks.h:37
struct img_mgmt_upload_req * req
Upload request information.
Definition img_mgmt_callbacks.h:42
struct img_mgmt_upload_action * action
Action to take.
Definition img_mgmt_callbacks.h:39
Represents an individual upload request.
Definition img_mgmt.h:197