diff options
Diffstat (limited to 'CAN-binder/libs/nanopb/examples/using_double_on_avr/doubleproto.proto')
-rw-r--r-- | CAN-binder/libs/nanopb/examples/using_double_on_avr/doubleproto.proto | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CAN-binder/libs/nanopb/examples/using_double_on_avr/doubleproto.proto b/CAN-binder/libs/nanopb/examples/using_double_on_avr/doubleproto.proto new file mode 100644 index 00000000..72d3f9c1 --- /dev/null +++ b/CAN-binder/libs/nanopb/examples/using_double_on_avr/doubleproto.proto @@ -0,0 +1,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; +} + |