File: stackusage.proto

package info (click to toggle)
nanopb 0.4.9.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,676 kB
  • sloc: ansic: 12,144; python: 2,795; cpp: 190; sh: 163; makefile: 85
file content (45 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
syntax = "proto3";

message Property
{
    enum Mode
    {
        INVALID = 0;
        A = 1;
        B = 2;
        C = 3;
    }

    oneof field
    {
        Mode   DeviceA_Mode     = 1;
        uint32 DeviceA_Size     = 2;
        uint32 DeviceA_Length   = 3;

        Mode   DeviceB_Mode     = 4;
        uint32 DeviceB_Size     = 5;
        uint32 DeviceB_Length   = 6;
    }
}

message SettingsGroup
{
    message Settings
    {
        message Command
        {
            uint32 label                 = 1;
            repeated Property properties = 2;
        }

        uint32      id      = 1;
        string      name    = 2;
        uint32      flags   = 3;
        bool        en      = 5;
        Command     begin   = 6;
        Command     end     = 7;
    }

    Settings settings   = 1;
    uint32 version      = 2;
}