Zephyr API Documentation 4.3.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
30
74
88
98
105 bool *ok;
106 zcbor_state_t *zse;
108 const char *version;
109 const uint8_t *hash;
110 const int flags;
111};
112
121
126 zcbor_state_t *zse;
127};
128
137
140
142 const struct flash_area *fa;
143
148 zcbor_state_t *zse;
149};
150
154
155#ifdef __cplusplus
156}
157#endif
158
159#endif
img_mgmt_group_events
MGMT event opcodes for image management group.
Definition img_mgmt_callbacks.h:34
@ MGMT_EVT_OP_IMG_MGMT_ALL
Used to enable all img_mgmt_group events.
Definition img_mgmt_callbacks.h:72
@ MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK
Callback when a client sends a file upload chunk, data is img_mgmt_upload_check.
Definition img_mgmt_callbacks.h:36
@ MGMT_EVT_OP_IMG_MGMT_DFU_PENDING
Callback when a DFU operation has finished being transferred.
Definition img_mgmt_callbacks.h:45
@ MGMT_EVT_OP_IMG_MGMT_DFU_CONFIRMED
Callback when an image has been confirmed.
Definition img_mgmt_callbacks.h:48
@ MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK_WRITE_COMPLETE
Callback when an image write command has finished writing to flash.
Definition img_mgmt_callbacks.h:51
@ MGMT_EVT_OP_IMG_MGMT_IMAGE_SLOT_STATE
Callback when an image slot's state is encoded for a response, data is img_mgmt_state_slot_encode.
Definition img_mgmt_callbacks.h:57
@ MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_SLOT
Callback when a slot list command outputs fields for a slot of an image, data is img_mgmt_slot_info_s...
Definition img_mgmt_callbacks.h:69
@ MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_IMAGE
Callback when a slot list command outputs fields for an image, data is img_mgmt_slot_info_image.
Definition img_mgmt_callbacks.h:63
@ MGMT_EVT_OP_IMG_MGMT_DFU_STOPPED
Callback when a DFU operation is stopped.
Definition img_mgmt_callbacks.h:39
@ MGMT_EVT_OP_IMG_MGMT_DFU_STARTED
Callback when a DFU operation is started.
Definition img_mgmt_callbacks.h:42
@ MGMT_EVT_GRP_IMG
Definition callback_defines.h:62
__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:94
const uint8_t image
Image number which has been confirmed.
Definition img_mgmt_callbacks.h:96
Structure provided in the MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_IMAGE notification callback: This callback f...
Definition img_mgmt_callbacks.h:118
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:120
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:126
Structure provided in the MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_SLOT notification callback: This callback fu...
Definition img_mgmt_callbacks.h:134
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:148
const uint8_t slot
The slot that is currently being enumerated.
Definition img_mgmt_callbacks.h:139
const struct flash_area * fa
Flash area of the slot that is current being enumerated.
Definition img_mgmt_callbacks.h:142
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:136
Structure provided in the MGMT_EVT_OP_IMG_MGMT_IMAGE_SLOT_STATE notification callback: This callback ...
Definition img_mgmt_callbacks.h:104
const uint8_t * hash
Definition img_mgmt_callbacks.h:109
zcbor_state_t * zse
Definition img_mgmt_callbacks.h:106
bool * ok
Definition img_mgmt_callbacks.h:105
const int flags
Definition img_mgmt_callbacks.h:110
const char * version
Definition img_mgmt_callbacks.h:108
const uint32_t slot
Definition img_mgmt_callbacks.h:107
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:81
struct img_mgmt_upload_req * req
Upload request information.
Definition img_mgmt_callbacks.h:86
struct img_mgmt_upload_action * action
Action to take.
Definition img_mgmt_callbacks.h:83
Represents an individual upload request.
Definition img_mgmt.h:197