Zephyr Project API 4.0.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
43
53
60 bool *ok;
61 zcbor_state_t *zse;
63 const char *version;
64 const uint8_t *hash;
65 const int flags;
66};
67
76
81 zcbor_state_t *zse;
82};
83
92
95
97 const struct flash_area *fa;
98
103 zcbor_state_t *zse;
104};
105
110#ifdef __cplusplus
111}
112#endif
113
114#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:49
const uint8_t image
Image number which has been confirmed.
Definition img_mgmt_callbacks.h:51
Structure provided in the MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_IMAGE notification callback: This callback f...
Definition img_mgmt_callbacks.h:73
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:75
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:81
Structure provided in the MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_SLOT notification callback: This callback fu...
Definition img_mgmt_callbacks.h:89
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:103
const uint8_t slot
The slot that is currently being enumerated.
Definition img_mgmt_callbacks.h:94
const struct flash_area * fa
Flash area of the slot that is current being enumerated.
Definition img_mgmt_callbacks.h:97
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:91
Structure provided in the MGMT_EVT_OP_IMG_MGMT_IMAGE_SLOT_STATE notification callback: This callback ...
Definition img_mgmt_callbacks.h:59
const uint8_t * hash
Definition img_mgmt_callbacks.h:64
zcbor_state_t * zse
Definition img_mgmt_callbacks.h:61
bool * ok
Definition img_mgmt_callbacks.h:60
const int flags
Definition img_mgmt_callbacks.h:65
const char * version
Definition img_mgmt_callbacks.h:63
const uint32_t slot
Definition img_mgmt_callbacks.h:62
Describes what to do during processing of an upload request.
Definition img_mgmt.h:210
Structure provided in the MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK notification callback: This callback functio...
Definition img_mgmt_callbacks.h:36
struct img_mgmt_upload_req * req
Upload request information.
Definition img_mgmt_callbacks.h:41
struct img_mgmt_upload_action * action
Action to take.
Definition img_mgmt_callbacks.h:38
Represents an individual upload request.
Definition img_mgmt.h:187