Goby3 3.3.0
2025.07.10
Loading...
Searching...
No Matches
can_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 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}