Goby3  3.1.5a
2024.05.23
serial_config.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 import "goby/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
4 
5 package goby.middleware.protobuf;
6 
7 message 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 }