kopia lustrzana https://github.com/meshtastic/protobufs
28 wiersze
547 B
Protocol Buffer
28 wiersze
547 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package meshtastic;
|
|
|
|
option optimize_for = LITE_RUNTIME;
|
|
option java_package = "com.geeksville.mesh";
|
|
option java_outer_classname = "XmodemProtos";
|
|
option go_package = "github.com/meshtastic/go/generated";
|
|
option csharp_namespace = "Meshtastic.Protobufs";
|
|
option swift_prefix = "";
|
|
|
|
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;
|
|
} |