Lines Matching full:md
309 struct bt_mesh_dfu_metadata md; in cmd_dfu_metadata_encode() local
319 md.fw_ver.major = shell_strtoul(argv[1], 0, &err); in cmd_dfu_metadata_encode()
320 md.fw_ver.minor = shell_strtoul(argv[2], 0, &err); in cmd_dfu_metadata_encode()
321 md.fw_ver.revision = shell_strtoul(argv[3], 0, &err); in cmd_dfu_metadata_encode()
322 md.fw_ver.build_num = shell_strtoul(argv[4], 0, &err); in cmd_dfu_metadata_encode()
323 md.fw_size = shell_strtoul(argv[5], 0, &err); in cmd_dfu_metadata_encode()
324 md.fw_core_type = shell_strtoul(argv[6], 0, &err); in cmd_dfu_metadata_encode()
325 md.comp_hash = shell_strtoul(argv[7], 0, &err); in cmd_dfu_metadata_encode()
326 md.elems = shell_strtoul(argv[8], 0, &err); in cmd_dfu_metadata_encode()
339 md.user_data_len = hex2bin(argv[9], strlen(argv[9]), user_data, sizeof(user_data)); in cmd_dfu_metadata_encode()
340 md.user_data = user_data; in cmd_dfu_metadata_encode()
342 md.user_data_len = 0; in cmd_dfu_metadata_encode()
346 shell_print(sh, "\tVersion: %u.%u.%u+%u", md.fw_ver.major, md.fw_ver.minor, in cmd_dfu_metadata_encode()
347 md.fw_ver.revision, md.fw_ver.build_num); in cmd_dfu_metadata_encode()
348 shell_print(sh, "\tSize: %u", md.fw_size); in cmd_dfu_metadata_encode()
349 shell_print(sh, "\tCore Type: 0x%x", md.fw_core_type); in cmd_dfu_metadata_encode()
350 shell_print(sh, "\tComposition data hash: 0x%x", md.comp_hash); in cmd_dfu_metadata_encode()
351 shell_print(sh, "\tElements: %u", md.elems); in cmd_dfu_metadata_encode()
357 shell_print(sh, "\tUser data length: %u", md.user_data_len); in cmd_dfu_metadata_encode()
359 err = bt_mesh_dfu_metadata_encode(&md, &buf); in cmd_dfu_metadata_encode()