open_protocol/messages/
user_interface.rs1use open_protocol_codec_proc_macro::{OpenProtocolDecode, OpenProtocolEncode, OpenProtocolMessage};
2
3#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode)]
4pub enum RemovalCondition {
5 #[default]
6 #[open_protocol_value(number = 0)]
7 AcknowledgeOrWait,
8 #[open_protocol_value(number = 1)]
9 Acknowledge
10}
11
12#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
15#[open_protocol_message(MID = 110, revision = 1)]
16pub struct MID0110rev1 {
17 #[open_protocol_field(length = 4)]
20 pub user_text: String,
21}
22
23#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
26#[open_protocol_message(MID = 111, revision = 1)]
27pub struct MID0111rev1 {
28 #[open_protocol_field(length = 4)]
31 pub display_duration: u16,
32
33 #[open_protocol_field(length = 1)]
35 pub removal_condition: RemovalCondition,
36
37 #[open_protocol_field(list, length = 25, amount = 4)]
39 pub lines: Vec<String>,
40}
41
42#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
45#[open_protocol_message(MID = 113, revision = 1)]
46pub struct MID0113rev1 {
47 }