ezsp 6.0.1

Ember ZNet Serial Protocol
Documentation
//! Parameters for the [`Bootloader::aes_encrypt()`](crate::Bootloader::aes_encrypt) command.

crate::frame::parameters::frame!(
    0x0094,
    { plaintext: [u8; 16], key: [u8; 16] },
    impl {
        impl Command {
            /// Creates command parameters.
            #[must_use]
            pub const fn new(plaintext: [u8; 16], key: [u8; 16]) -> Self {
                Self { plaintext, key }
            }
        }
    },
    { ciphertext: [u8; 16] } => Bootloader(bootloader)::AesEncrypt,
    impl {
        impl Response {
            /// Returns the ciphertext.
            #[must_use]
            pub const fn ciphertext(&self) -> [u8; 16] {
                self.ciphertext
            }
        }
    }
);