2// GobySoft, LLC (2013-)
3// Community contributors (see AUTHORS file)
5// Toby Schneider <toby@gobysoft.org>
6// Chris Murphy <cmurphy@aphysci.com>
9// This file is part of the Dynamic Compact Control Language Library
12// DCCL is free software: you can redistribute it and/or modify
13// it under the terms of the GNU Lesser General Public License as published by
14// the Free Software Foundation, either version 2.1 of the License, or
15// (at your option) any later version.
17// DCCL is distributed in the hope that it will be useful,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20// GNU Lesser General Public License for more details.
22// You should have received a copy of the GNU Lesser General Public License
23// along with DCCL. If not, see <http://www.gnu.org/licenses/>.
25import "dccl/option_extensions.proto";
31 ENUM2_A = -2; // for completeness, though negative values are discouraged
39 16777213; // Many skipped values - packed will be 3b, unpacked 24b
44 option (dccl.msg).id = 2;
45 option (dccl.msg).max_bytes = 2;
46 option (dccl.msg).codec_version = 4;
48 required int32 five_bit_padding = 1
49 [(dccl.field) = { min: 0, max: 31 }]; // 5b padding.
50 required Enum value = 2 [(dccl.field).packed_enum = true];
55 option (dccl.msg).id = 3;
56 option (dccl.msg).max_bytes = 4;
57 option (dccl.msg).codec_version = 4;
59 required Enum value = 1 [(dccl.field).packed_enum = false];