1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright 2025 NXP
//
// SPDX-License-Identifier: BSD-3-Clause
//! McuBoot Ping Packet Implementation
//!
//! This module provides structures and functionality for handling McuBoot ping packets.
//! Ping packets are used to verify communication with the target device and retrieve
//! basic information about the bootloader version and capabilities.
//!
//! The ping mechanism is a simple request-response protocol where the host sends
//! a ping packet and the target responds with version and options information.
//! This is the first communication performed when establishing a
//! connection with a McuBoot-enabled device.
use crate::;
use ;
/// McuBoot ping response packet structure
///
/// Represents the response received from a McuBoot device after sending a ping packet.
/// McuBoot ping packet structure
///
/// Represents a ping packet that can be sent to a McuBoot device to
/// verify communication and request basic information. The ping packet has
/// no payload data - it's simply a request for the target to respond with
/// its version and capabilities.
///
/// # Usage
/// Ping packets are sent as the first communication when establishing
/// a connection with a target device. They serve as both a connectivity test
/// and a way to retrieve basic device information.
;