use crate::{
impl_command_display, impl_command_ops, impl_default, impl_message_from_buf, impl_message_ops,
len, CommandOps, MessageOps, MessageType,
};
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct PollWithAckCommand {
buf: [u8; len::POLL_WITH_ACK_COMMAND],
}
impl PollWithAckCommand {
pub fn new() -> Self {
let mut msg = Self {
buf: [0u8; len::POLL_WITH_ACK_COMMAND],
};
msg.init();
msg.set_command(MessageType::PollWithAck);
msg
}
}
impl_default!(PollWithAckCommand);
impl_command_display!(PollWithAckCommand);
impl_message_from_buf!(PollWithAckCommand);
impl_message_ops!(PollWithAckCommand);
impl_command_ops!(PollWithAckCommand);