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
50 bool *ok;
51 zcbor_state_t *zse;
53 const char *version;
54 const uint8_t *hash;
55 const int flags;
56};
57
66
71 zcbor_state_t *zse;
72};
73
82
85
87 const struct flash_area *fa;
88
93 zcbor_state_t *zse;
94};
95
100#ifdef __cplusplus
101}
102#endif
103
104#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_SLOT_INFO_IMAGE notification callback: This callback f...
Definition img_mgmt_callbacks.h:63
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:65
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:71
Structure provided in the MGMT_EVT_OP_IMG_MGMT_SLOT_INFO_SLOT notification callback: This callback fu...
Definition img_mgmt_callbacks.h:79
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:93
const uint8_t slot
The slot that is currently being enumerated.
Definition img_mgmt_callbacks.h:84
const struct flash_area * fa
Flash area of the slot that is current being enumerated.
Definition img_mgmt_callbacks.h:87
const uint8_t image
The image that is currently being enumerated.
Definition img_mgmt_callbacks.h:81
Structure provided in the MGMT_EVT_OP_IMG_MGMT_IMAGE_SLOT_STATE notification callback: This callback ...
Definition img_mgmt_callbacks.h:49
const uint8_t * hash
Definition img_mgmt_callbacks.h:54
zcbor_state_t * zse
Definition img_mgmt_callbacks.h:51
bool * ok
Definition img_mgmt_callbacks.h:50
const int flags
Definition img_mgmt_callbacks.h:55
const char * version
Definition img_mgmt_callbacks.h:53
const uint32_t slot
Definition img_mgmt_callbacks.h:52
Describes what to do during processing of an upload request.
Definition img_mgmt.h:207
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:184