summaryrefslogtreecommitdiffstats
path: root/examples/using_double_on_avr/doubleproto.proto
blob: d8b7f2db1f6ae9c5c8973df95ccc81e71e29d85d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// A message containing doubles, as used by other applications.
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;
}