summaryrefslogtreecommitdiffstats
path: root/libs/nanopb/examples/using_double_on_avr/doubleproto.proto
blob: 72d3f9c127fab2afb992c11ddff515f80ce3fc9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// A message containing doubles, as used by other applications.
syntax = "proto2";

message DoubleMessage {
    required double field1 = 1;
    required double field2 = 2;
}

// A message containing doubles, but redefined using uint64_t.
// For use in AVR code.
message AVRDoubleMessage {
    required fixed64 field1 = 1;
    required fixed64 field2 = 2;
}