aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder/libs/nanopb/tests/message_sizes/messages1.proto
diff options
context:
space:
mode:
Diffstat (limited to 'CAN-binder/libs/nanopb/tests/message_sizes/messages1.proto')
-rw-r--r--CAN-binder/libs/nanopb/tests/message_sizes/messages1.proto29
1 files changed, 29 insertions, 0 deletions
diff --git a/CAN-binder/libs/nanopb/tests/message_sizes/messages1.proto b/CAN-binder/libs/nanopb/tests/message_sizes/messages1.proto
new file mode 100644
index 0000000..b66fad7
--- /dev/null
+++ b/CAN-binder/libs/nanopb/tests/message_sizes/messages1.proto
@@ -0,0 +1,29 @@
+syntax = "proto2";
+
+enum MessageStatus {
+ FAIL = 0;
+ OK = 1;
+};
+
+message MessageInfo {
+ required fixed32 msg_id = 1;
+ optional fixed32 interface_id = 2;
+}
+
+message MessageResponseInfo {
+ required fixed64 interface_id = 1;
+ required fixed32 seq = 2;
+ required fixed32 msg_id = 3;
+}
+
+message MessageHeader {
+ required MessageInfo info = 1;
+ optional MessageResponseInfo response_info = 2;
+ optional MessageResponse response = 3;
+}
+
+message MessageResponse {
+ required MessageStatus status = 1;
+ required fixed32 seq = 2;
+}
+