Goby3 3.3.0
2025.07.10
Loading...
Searching...
No Matches
serial_config.proto
Go to the documentation of this file.
1syntax = "proto2";
2import "goby/protobuf/option_extensions.proto";
3import "dccl/option_extensions.proto";
4
5package goby.middleware.protobuf;
6
7message SerialConfig
8{
9 option (dccl.msg) = {
10 unit_system: "si"
11 };
12
13 required string port = 1 [(goby.field) = {
14 example: "/dev/ttyUSB0"
15 description: "Serial port path"
16 }];
17 required uint32 baud = 2
18 [(goby.field) = {example: "57600" description: "Serial baud"}];
19 optional string end_of_line = 3 [
20 default = "\n",
21 (goby.field) = {
22 description: "End of line string. Can also be a std::regex"
23 }
24 ];
25
26 enum FlowControl
27 {
28 NONE = 0;
29 SOFTWARE = 1;
30 HARDWARE = 2;
31 }
32 optional FlowControl flow_control = 4 [
33 default = NONE,
34 (goby.field).description =
35 "Flow control: NONE, SOFTWARE (aka XON/XOFF), HARDWARE (aka "
36 "RTS/CTS)"
37 ];
38}