1 /*
2  * Copyright (c) 2023-2024 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 /* Function for creating an enum_mgmt count command */
16 bool create_enum_mgmt_count_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
17 				   uint16_t *buffer_size);
18 
19 /* Function for creating an enum_mgmt list command */
20 bool create_enum_mgmt_list_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
21 				  uint16_t *buffer_size);
22 
23 /* Function for creating an enum_mgmt single command */
24 bool create_enum_mgmt_single_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
25 				    uint16_t *buffer_size, uint32_t index);
26 
27 /* Function for creating an enum_mgmt details command */
28 bool create_enum_mgmt_details_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
29 				     uint16_t *buffer_size, uint16_t *groups, uint8_t groups_size);
30 
31 #endif
32