2023-01-08 17:22:22 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-01-17 11:06:03 +00:00
|
|
|
package meshtastic;
|
|
|
|
|
2023-01-21 15:26:47 +00:00
|
|
|
option java_package = "com.geeksville.mesh";
|
2023-01-08 17:22:22 +00:00
|
|
|
option java_outer_classname = "XmodemProtos";
|
2023-01-21 15:26:47 +00:00
|
|
|
option go_package = "github.com/meshtastic/go/generated";
|
2023-01-08 17:22:22 +00:00
|
|
|
option csharp_namespace = "Meshtastic.Protobufs";
|
2023-01-21 15:26:47 +00:00
|
|
|
option swift_prefix = "";
|
2023-01-08 17:22:22 +00:00
|
|
|
|
|
|
|
message XModem {
|
|
|
|
enum Control {
|
|
|
|
NUL = 0;
|
|
|
|
SOH = 1;
|
|
|
|
STX = 2;
|
|
|
|
EOT = 4;
|
|
|
|
ACK = 6;
|
|
|
|
NAK = 21;
|
|
|
|
CAN = 24;
|
|
|
|
CTRLZ = 26;
|
|
|
|
}
|
|
|
|
|
|
|
|
Control control = 1;
|
|
|
|
uint32 seq = 2;
|
|
|
|
uint32 crc16 = 3;
|
|
|
|
bytes buffer = 4;
|
|
|
|
}
|