1use crate::{len::DISABLE_RESPONSE, message::MessageOps, MessageType};
2
3#[repr(C)]
7#[derive(Clone, Copy, Debug, Default, PartialEq)]
8pub struct DisableResponse {
9 buf: [u8; DISABLE_RESPONSE],
10}
11
12impl DisableResponse {
13 pub fn new() -> Self {
15 let mut msg = Self {
16 buf: [0u8; DISABLE_RESPONSE],
17 };
18
19 msg.init();
20
21 msg
22 }
23}
24
25impl_message_from_buf!(DisableResponse);
26impl_message_ops!(DisableResponse, MessageType::Disable);
27impl_response_ops!(DisableResponse);
28impl_response_display!(DisableResponse);