Goby3  3.1.5a
2024.05.23
can_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 CanConfig
8 {
9  option (dccl.msg) = {
10  unit_system: "si"
11  };
12 
13  required string interface = 1
14  [(goby.field) = {example: "can0" description: "Can interface"}];
15 
16  message CanFilter
17  {
18  enum CanMask
19  {
20  StandardFrameFormat = 0x000007FF;
21  ExtendedFrameFormat = 0x1FFFFFFF;
22  PGNOnly = 0x01FFFF00;
23  };
24  required uint32 can_id = 1;
25  oneof mask
26  {
27  CanMask can_mask = 2 [default = ExtendedFrameFormat];
28  uint32 can_mask_custom = 3;
29  }
30  }
31 
32  repeated CanFilter filter = 2;
33  repeated uint32 pgn_filter = 3;
34 }