Home
last modified time | relevance | path

Searched refs:zse (Results 1 – 25 of 44) sorted by relevance

12

/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dsmp_test_util.c27 bool create_settings_mgmt_read_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_settings_mgmt_read_packet() argument
32 ok = zcbor_map_start_encode(zse, 2) && in create_settings_mgmt_read_packet()
33 zcbor_tstr_put_lit(zse, "name") && in create_settings_mgmt_read_packet()
34 zcbor_tstr_put_term(zse, name, CONFIG_ZCBOR_MAX_STR_LEN) && in create_settings_mgmt_read_packet()
35 (max_size == 0 || (zcbor_tstr_put_lit(zse, "max_size") && in create_settings_mgmt_read_packet()
36 zcbor_uint32_put(zse, max_size))) && in create_settings_mgmt_read_packet()
37 zcbor_map_end_encode(zse, 2); in create_settings_mgmt_read_packet()
39 *buffer_size = (zse->payload_mut - buffer); in create_settings_mgmt_read_packet()
48 bool create_settings_mgmt_write_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_settings_mgmt_write_packet() argument
54 ok = zcbor_map_start_encode(zse, 2) && in create_settings_mgmt_write_packet()
[all …]
Dsmp_test_util.h16 bool create_settings_mgmt_read_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
20 bool create_settings_mgmt_write_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
25 bool create_settings_mgmt_delete_packet(zcbor_state_t *zse, uint8_t *buffer,
29 bool create_settings_mgmt_commit_packet(zcbor_state_t *zse, uint8_t *buffer,
33 bool create_settings_mgmt_load_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
37 bool create_settings_mgmt_save_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dimg_gr_stub.c33 #define ZCBOR_ENCODE_FLAG(zse, label, value) \ argument
34 (zcbor_tstr_put_lit(zse, label) && zcbor_bool_put(zse, value))
44 zcbor_state_t zse[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2]; in img_upload_response() local
53 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data, net_buf_tailroom(nb), 0); in img_upload_response()
57 ok = zcbor_map_start_encode(zse, 4) && zcbor_tstr_put_lit(zse, "rc") && in img_upload_response()
58 zcbor_int32_put(zse, status) && zcbor_tstr_put_lit(zse, "off") && in img_upload_response()
59 zcbor_size_put(zse, offset) && zcbor_map_end_encode(zse, 4); in img_upload_response()
62 ok = zcbor_map_start_encode(zse, 2) && zcbor_tstr_put_lit(zse, "off") && in img_upload_response()
63 zcbor_size_put(zse, offset) && zcbor_map_end_encode(zse, 4); in img_upload_response()
70 nb->len = zse->payload - nb->data; in img_upload_response()
[all …]
Dos_gr_stub.c43 zcbor_state_t zse[3 + 2]; in os_echo_response() local
52 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data, net_buf_tailroom(nb), 0); in os_echo_response()
56 ok = zcbor_map_start_encode(zse, 2) && zcbor_tstr_put_lit(zse, "rc") && in os_echo_response()
57 zcbor_int32_put(zse, status) && zcbor_map_end_encode(zse, 2); in os_echo_response()
60 ok = zcbor_map_start_encode(zse, 2) && zcbor_tstr_put_lit(zse, "r") && in os_echo_response()
61 zcbor_tstr_encode_ptr(zse, echo_data->value, echo_data->len) && in os_echo_response()
62 zcbor_map_end_encode(zse, 2); in os_echo_response()
68 nb->len = zse->payload - nb->data; in os_echo_response()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/enum_mgmt/src/
Dsmp_test_util.c27 bool create_enum_mgmt_count_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_enum_mgmt_count_packet() argument
32 ok = zcbor_map_start_encode(zse, 2) && in create_enum_mgmt_count_packet()
33 zcbor_map_end_encode(zse, 2); in create_enum_mgmt_count_packet()
39 *buffer_size = (zse->payload_mut - buffer); in create_enum_mgmt_count_packet()
47 bool create_enum_mgmt_list_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_enum_mgmt_list_packet() argument
52 ok = zcbor_map_start_encode(zse, 2) && in create_enum_mgmt_list_packet()
53 zcbor_map_end_encode(zse, 2); in create_enum_mgmt_list_packet()
59 *buffer_size = (zse->payload_mut - buffer); in create_enum_mgmt_list_packet()
67 bool create_enum_mgmt_single_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_enum_mgmt_single_packet() argument
72 ok = zcbor_map_start_encode(zse, 2) && in create_enum_mgmt_single_packet()
[all …]
Dsmp_test_util.h16 bool create_enum_mgmt_count_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
20 bool create_enum_mgmt_list_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
24 bool create_enum_mgmt_single_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
28 bool create_enum_mgmt_details_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer,
/Zephyr-latest/subsys/mgmt/mcumgr/grp/stat_mgmt/src/
Dstat_mgmt.c28 typedef int stat_mgmt_foreach_entry_fn(zcbor_state_t *zse, struct stat_mgmt_entry *entry);
59 zcbor_state_t *zse; member
88 return walk_arg->cb(walk_arg->zse, &entry); in stat_mgmt_walk_cb()
92 stat_mgmt_foreach_entry(zcbor_state_t *zse, const char *group_name, stat_mgmt_foreach_entry_fn *cb) in stat_mgmt_foreach_entry() argument
104 .zse = zse in stat_mgmt_foreach_entry()
111 stat_mgmt_cb_encode(zcbor_state_t *zse, struct stat_mgmt_entry *entry) in stat_mgmt_cb_encode() argument
113 bool ok = zcbor_tstr_put_term(zse, entry->name, CONFIG_MCUMGR_GRP_STAT_MAX_NAME_LEN) && in stat_mgmt_cb_encode()
114 zcbor_uint32_put(zse, entry->value); in stat_mgmt_cb_encode()
125 zcbor_state_t *zse = ctxt->writer->zs; in stat_mgmt_show() local
148 ok = smp_add_cmd_err(zse, ZEPHYR_MGMT_GRP_BASIC, in stat_mgmt_show()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/enum_mgmt/src/
Denum_mgmt.c42 zcbor_state_t *zse; member
47 zcbor_state_t *zse; member
91 *data->ok = zcbor_uint32_put(data->zse, group->mg_group_id); in enum_mgmt_cb_list()
109 .zse = data->zse, in enum_mgmt_cb_details()
137 *data->ok = zcbor_map_start_encode(data->zse, CONFIG_MCUMGR_GRP_ENUM_DETAILS_STATES) && in enum_mgmt_cb_details()
138 zcbor_tstr_put_lit(data->zse, "group") && in enum_mgmt_cb_details()
139 zcbor_uint32_put(data->zse, group->mg_group_id) && in enum_mgmt_cb_details()
141 zcbor_tstr_put_lit(data->zse, "name") && in enum_mgmt_cb_details()
142 zcbor_tstr_encode_ptr(data->zse, group_name, group_name_size) && in enum_mgmt_cb_details()
145 zcbor_tstr_put_lit(data->zse, "handlers") && in enum_mgmt_cb_details()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt/src/
Dos_mgmt.c78 zcbor_state_t *zse; member
151 zcbor_state_t *zse = ctxt->writer->zs; in os_mgmt_echo() local
165 ok = zcbor_tstr_put_lit(zse, "r") && in os_mgmt_echo()
166 zcbor_tstr_encode(zse, &data); in os_mgmt_echo()
176 os_mgmt_taskstat_encode_thread_name(zcbor_state_t *zse, int idx, in os_mgmt_taskstat_encode_thread_name() argument
187 return zcbor_tstr_encode_ptr(zse, thread->name, name_len); in os_mgmt_taskstat_encode_thread_name()
192 os_mgmt_taskstat_encode_thread_name(zcbor_state_t *zse, int idx, in os_mgmt_taskstat_encode_thread_name() argument
208 return zcbor_tstr_put_term(zse, thread_name, sizeof(thread_name)); in os_mgmt_taskstat_encode_thread_name()
214 os_mgmt_taskstat_encode_stack_info(zcbor_state_t *zse, in os_mgmt_taskstat_encode_stack_info() argument
233 ok = zcbor_tstr_put_lit(zse, "stksiz") && in os_mgmt_taskstat_encode_stack_info()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/
Dsmp_test_util.c31 bool create_mcumgr_datetime_get_packet(zcbor_state_t *zse, bool version2, uint8_t *buffer, in create_mcumgr_datetime_get_packet() argument
36 ok = zcbor_map_start_encode(zse, 2) && in create_mcumgr_datetime_get_packet()
37 zcbor_map_end_encode(zse, 2); in create_mcumgr_datetime_get_packet()
39 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_datetime_get_packet()
48 bool create_mcumgr_datetime_set_packet_str(zcbor_state_t *zse, bool version2, const char *data, in create_mcumgr_datetime_set_packet_str() argument
52 bool ok = zcbor_map_start_encode(zse, 2) && in create_mcumgr_datetime_set_packet_str()
53 zcbor_tstr_put_lit(zse, "datetime") && in create_mcumgr_datetime_set_packet_str()
54 zcbor_tstr_put_term(zse, data, CONFIG_ZCBOR_MAX_STR_LEN) && in create_mcumgr_datetime_set_packet_str()
55 zcbor_map_end_encode(zse, 2); in create_mcumgr_datetime_set_packet_str()
57 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_datetime_set_packet_str()
[all …]
Dmain.c152 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
169 memset(zse, 0, sizeof(zse)); in ZTEST()
172 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
173 ok = create_mcumgr_datetime_get_packet(zse, false, buffer, buffer_out, &buffer_size); in ZTEST()
214 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
231 memset(zse, 0, sizeof(zse)); in ZTEST()
234 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
235 ok = create_mcumgr_datetime_get_packet(zse, true, buffer, buffer_out, &buffer_size); in ZTEST()
278 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
295 memset(zse, 0, sizeof(zse)); in ZTEST()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/
Dimg_mgmt_client.c256 zcbor_state_t zse[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2]; in upload_message_header_size() local
262 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), temp_buf, MCUMGR_UPLOAD_INIT_HEADER_BUF_SIZE, in upload_message_header_size()
271 ok = zcbor_map_start_encode(zse, map_count) && zcbor_tstr_put_lit(zse, "image") && in upload_message_header_size()
272 zcbor_uint32_put(zse, upload_state->image_num) && zcbor_tstr_put_lit(zse, "data") && in upload_message_header_size()
273 zcbor_bstr_encode_ptr(zse, &temp_data, 1) && zcbor_tstr_put_lit(zse, "len") && in upload_message_header_size()
274 zcbor_size_put(zse, upload_state->image_size) && zcbor_tstr_put_lit(zse, "off") && in upload_message_header_size()
275 zcbor_size_put(zse, upload_state->offset); in upload_message_header_size()
279 ok = zcbor_tstr_put_lit(zse, "sha") && in upload_message_header_size()
280 zcbor_bstr_encode_ptr(zse, upload_state->sha256, IMG_MGMT_DATA_SHA_LEN); in upload_message_header_size()
284 ok = zcbor_map_end_encode(zse, map_count); in upload_message_header_size()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/
Dfs_mgmt.c116 zcbor_state_t *zse; member
174 static bool fs_mgmt_file_rsp(zcbor_state_t *zse, int rc, uint64_t off) in fs_mgmt_file_rsp() argument
179 ok = zcbor_tstr_put_lit(zse, "rc") && in fs_mgmt_file_rsp()
180 zcbor_int32_put(zse, rc); in fs_mgmt_file_rsp()
183 return ok && zcbor_tstr_put_lit(zse, "off") && in fs_mgmt_file_rsp()
184 zcbor_uint64_put(zse, off); in fs_mgmt_file_rsp()
211 zcbor_state_t *zse = ctxt->writer->zs; in fs_mgmt_file_download() local
262 ok = smp_add_cmd_err(zse, err_group, (uint16_t)err_rc); in fs_mgmt_file_download()
275 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_FS, rc); in fs_mgmt_file_download()
292 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_FS, rc); in fs_mgmt_file_download()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/cb_notifications/src/
Dsmp_test_util.c25 bool create_mcumgr_format_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_mcumgr_format_packet() argument
30 ok = zcbor_map_start_encode(zse, 2) && in create_mcumgr_format_packet()
31 zcbor_tstr_put_lit(zse, "d") && in create_mcumgr_format_packet()
32 zcbor_tstr_put_lit(zse, "some test data") && in create_mcumgr_format_packet()
33 zcbor_map_end_encode(zse, 2); in create_mcumgr_format_packet()
35 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_format_packet()
Dmain.c103 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
110 memset(zse, 0, sizeof(zse)); in ZTEST()
113 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
115 ok = create_mcumgr_format_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
149 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
156 memset(zse, 0, sizeof(zse)); in ZTEST()
159 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
161 ok = create_mcumgr_format_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
195 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
202 memset(zse, 0, sizeof(zse)); in ZTEST()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/
Dimg_mgmt.c130 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_reset_zse() local
135 zcbor_new_encode_state(zse, ARRAY_SIZE(ctxt->writer->zs), in img_mgmt_reset_zse()
139 return zcbor_map_start_encode(zse, CONFIG_MCUMGR_SMP_CBOR_MAX_MAIN_MAP_ENTRIES); in img_mgmt_reset_zse()
144 static bool img_mgmt_slot_max_size(size_t *area_sizes, zcbor_state_t *zse) in img_mgmt_slot_max_size() argument
154 ok = zcbor_tstr_put_lit(zse, "max_image_size") && in img_mgmt_slot_max_size()
155 zcbor_uint32_put(zse, (uint32_t)(area_sizes[0] - in img_mgmt_slot_max_size()
162 static bool img_mgmt_slot_max_size(size_t *area_sizes, zcbor_state_t *zse) in img_mgmt_slot_max_size() argument
175 ok = zcbor_tstr_put_lit(zse, "max_image_size") && in img_mgmt_slot_max_size()
176 zcbor_uint32_put(zse, (uint32_t)max_app_size); in img_mgmt_slot_max_size()
413 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_erase() local
[all …]
Dimg_mgmt_state.c38 #define ZCBOR_ENCODE_FLAG(zse, label, value) \ argument
39 (zcbor_tstr_put_lit(zse, label) && zcbor_bool_put(zse, value))
43 #define ZCBOR_ENCODE_FLAG(zse, label, value) \ argument
45 (zcbor_tstr_put_lit(zse, label) && zcbor_bool_put(zse, (value))))
415 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_state_encode_slot() local
429 .zse = zse, in img_mgmt_state_encode_slot()
442 ok = zcbor_map_start_encode(zse, CONFIG_MCUMGR_GRP_IMG_IMAGE_SLOT_STATE_STATES) && in img_mgmt_state_encode_slot()
444 (zcbor_tstr_put_lit(zse, "image") && in img_mgmt_state_encode_slot()
445 zcbor_uint32_put(zse, slot >> 1))) && in img_mgmt_state_encode_slot()
446 zcbor_tstr_put_lit(zse, "slot") && in img_mgmt_state_encode_slot()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dsmp_test_util.c27 bool create_mcumgr_format_packet(zcbor_state_t *zse, const uint8_t *format, uint8_t *buffer, in create_mcumgr_format_packet() argument
32 ok = zcbor_map_start_encode(zse, 2) && in create_mcumgr_format_packet()
33 zcbor_tstr_put_lit(zse, "format") && in create_mcumgr_format_packet()
34 zcbor_tstr_put_term(zse, format, CONFIG_ZCBOR_MAX_STR_LEN) && in create_mcumgr_format_packet()
35 zcbor_map_end_encode(zse, 2); in create_mcumgr_format_packet()
37 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_format_packet()
Dmain.c230 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
259 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
261 ok = create_mcumgr_format_packet(zse, "s", buffer, buffer_out, &buffer_size); in ZTEST()
301 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
314 memset(zse, 0, sizeof(zse)); in ZTEST()
317 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
319 ok = create_mcumgr_format_packet(zse, query_kernel_name, buffer, buffer_out, &buffer_size); in ZTEST()
362 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
375 memset(zse, 0, sizeof(zse)); in ZTEST()
378 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
[all …]
Dlimited.c44 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
57 memset(zse, 0, sizeof(zse)); in ZTEST()
60 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
62 ok = create_mcumgr_format_packet(zse, query_kernel_name, buffer, buffer_out, &buffer_size); in ZTEST()
105 zcbor_state_t zse[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local
123 memset(zse, 0, sizeof(zse)); in ZTEST()
126 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST()
128 ok = create_mcumgr_format_packet(zse, query_all, buffer, buffer_out, &buffer_size); in ZTEST()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/
Dsmp_test_util.c28 bool create_mcumgr_format_packet(zcbor_state_t *zse, const uint8_t *format, uint8_t *buffer, in create_mcumgr_format_packet() argument
33 ok = zcbor_map_start_encode(zse, 2) && in create_mcumgr_format_packet()
34 zcbor_tstr_put_lit(zse, "format") && in create_mcumgr_format_packet()
35 zcbor_tstr_put_term(zse, format, CONFIG_ZCBOR_MAX_STR_LEN) && in create_mcumgr_format_packet()
36 zcbor_map_end_encode(zse, 2); in create_mcumgr_format_packet()
38 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_format_packet()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/settings_mgmt/src/
Dsettings_mgmt.c35 zcbor_state_t *zse = ctxt->writer->zs; in settings_mgmt_read() local
67 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_SETTINGS, in settings_mgmt_read()
113 ok = smp_add_cmd_err(zse, ret_group, (uint16_t)ret_rc); in settings_mgmt_read()
132 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_SETTINGS, (uint16_t)rc); in settings_mgmt_read()
136 ok = zcbor_tstr_put_lit(zse, "val") && in settings_mgmt_read()
137 zcbor_bstr_encode_ptr(zse, data, rc); in settings_mgmt_read()
140 ok = zcbor_tstr_put_lit(zse, "max_size") && in settings_mgmt_read()
141 zcbor_uint32_put(zse, CONFIG_MCUMGR_GRP_SETTINGS_VALUE_LEN); in settings_mgmt_read()
159 zcbor_state_t *zse = ctxt->writer->zs; in settings_mgmt_write() local
188 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_SETTINGS, in settings_mgmt_write()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/shell_mgmt/src/
Dshell_mgmt.c53 zcbor_state_t *zse = ctxt->writer->zs; in shell_mgmt_exec() local
87 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_SHELL, in shell_mgmt_exec()
107 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_SHELL, SHELL_MGMT_ERR_EMPTY_COMMAND); in shell_mgmt_exec()
116 ok = zcbor_tstr_put_lit(zse, "o") && in shell_mgmt_exec()
117 zcbor_tstr_encode(zse, &cmd_out) && in shell_mgmt_exec()
119 zcbor_tstr_put_lit(zse, "rc") && in shell_mgmt_exec()
121 zcbor_tstr_put_lit(zse, "ret") && in shell_mgmt_exec()
123 zcbor_int32_put(zse, rc); in shell_mgmt_exec()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/handler_demo/example_as_module/src/
Dexample_mgmt.c35 zcbor_state_t *zse = ctxt->writer->zs; in example_mgmt_test() local
59 ok = smp_add_cmd_err(zse, MGMT_GROUP_ID_EXAMPLE, EXAMPLE_MGMT_ERR_NOT_WANTED); in example_mgmt_test()
64 ok = zcbor_tstr_put_lit(zse, "return_int") && in example_mgmt_test()
65 zcbor_int32_put(zse, 4691); in example_mgmt_test()
78 zcbor_state_t *zse = ctxt->writer->zs; in example_mgmt_other() local
119 ok = smp_add_cmd_err(zse, err_group, (uint16_t)err_rc); in example_mgmt_other()
124 ok = zcbor_tstr_put_lit(zse, "return_string") && in example_mgmt_other()
125 zcbor_tstr_put_lit(zse, "some dummy data!"); in example_mgmt_other()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/img_mgmt_slot_info/src/
Dsmp_test_util.c27 bool create_img_mgmt_slot_info_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_img_mgmt_slot_info_packet() argument
32 ok = zcbor_map_start_encode(zse, 2) && in create_img_mgmt_slot_info_packet()
33 zcbor_map_end_encode(zse, 2); in create_img_mgmt_slot_info_packet()
39 *buffer_size = (zse->payload_mut - buffer); in create_img_mgmt_slot_info_packet()

12