Battery.proto 596 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. package sys.battery;
  3. import "nanopb.proto";
  4. option (nanopb_fileopt).enum_to_string = true;
  5. enum channels {
  6. UNSPECIFIED_CH = 0;
  7. CH0 = 1;
  8. CH1 = 2;
  9. CH2 = 3;
  10. CH3 = 4;
  11. CH4 = 5;
  12. CH5 = 6;
  13. CH6 = 7;
  14. CH7 = 8;
  15. }
  16. enum atten {
  17. UNSPECIFIED_ATT = 0;
  18. ATT_0 = 1;
  19. ATT_1 = 2;
  20. ATT_2 = 3;
  21. ATT_3 = 4;
  22. }
  23. message config {
  24. option (nanopb_msgopt).packed_struct = true;
  25. option (nanopb_msgopt).msgid = 1003;
  26. channels channel = 1;
  27. float scale = 2;
  28. int32 cells = 3 [(nanopb).int_size = IS_8];
  29. atten atten = 4;
  30. }