Files
fluxengine/lib/usb/usb.proto
2024-10-19 16:58:44 +02:00

33 lines
885 B
Protocol Buffer

syntax = "proto2";
import "lib/config/common.proto";
message GreaseweazleProto {
enum BusType { /* note that these must match CMD_SET_BUS codes */
BUSTYPE_INVALID = 0;
IBMPC = 1;
SHUGART = 2;
APPLE2 = 3;
};
optional string port = 1
[(help) = "Greaseweazle serial port to use"];
optional BusType bus_type = 2
[(help) = "which FDD bus type is in use", default = IBMPC];
}
message ApplesauceProto {
optional string port = 1
[(help) = "Applesauce serial port to use"];
optional bool verbose = 2
[(help) = "Enable verbose protocol logging", default = false];
}
message UsbProto {
optional string serial = 1
[(help) = "serial number of FluxEngine or Greaseweazle device to use"];
optional GreaseweazleProto greaseweazle = 2 [(help) = "Greaseweazle-specific options"];
optional ApplesauceProto applesauce = 3 [(help) = "Applesauce-specific options"];
}