use core::fmt::Debug;
use crate::ezsp::StackVersion;
crate::frame::parameters::frame!(
0x0000,
{ desired_protocol_version: u8 },
impl {
impl Command {
#[must_use]
pub const fn new(desired_protocol_version: u8) -> Self {
Self {
desired_protocol_version,
}
}
}
},
{ protocol_version: u8, stack_type: u8, stack_version: u16 } => Configuration(configuration)::Version,
impl {
impl Response {
#[must_use]
pub const fn protocol_version(&self) -> u8 {
self.protocol_version
}
#[must_use]
pub const fn stack_type(&self) -> u8 {
self.stack_type
}
#[must_use]
pub const fn stack_version(&self) -> StackVersion {
StackVersion(self.stack_version)
}
}
}
);