1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef H_SMP_TEST_UTIL_
8 #define H_SMP_TEST_UTIL_
9 
10 #include <zephyr/ztest.h>
11 #include <zephyr/mgmt/mcumgr/mgmt/mgmt.h>
12 #include <zcbor_common.h>
13 #include <smp_internal.h>
14 
15 /* SMP header function for generating os_mgmt info command header with sequence number set to 1 */
16 void smp_make_hdr(struct smp_hdr *rsp_hdr, size_t len);
17 
18 /* Function for creating an os_mgmt info command */
19 bool create_mcumgr_format_packet(zcbor_state_t *zse, const uint8_t *format, uint8_t *buffer,
20 				 uint8_t *output_buffer, uint16_t *buffer_size);
21 
22 
23 #endif
24