Start of 5.X work

This commit is contained in:
Sebastien L
2025-03-18 17:38:34 -04:00
parent c0ddf0a997
commit 73bd096f37
442 changed files with 227862 additions and 21075 deletions

View File

@@ -1,9 +1,9 @@
syntax = "proto3";
package sys;
package sys.battery;
import "nanopb.proto";
option (nanopb_fileopt).enum_to_string = true;
enum BatteryChannelEnum {
enum channels {
UNSPECIFIED_CH = 0;
CH0 = 1;
CH1 = 2;
@@ -15,17 +15,18 @@ enum BatteryChannelEnum {
CH7 = 8;
}
enum BatteryAttenEnum {
enum atten {
UNSPECIFIED_ATT = 0;
ATT_0 = 1;
ATT_1 = 2;
ATT_2 = 3;
ATT_3 = 4;
}
message Battery {
message config {
option (nanopb_msgopt).packed_struct = true;
option (nanopb_msgopt).msgid = 1003;
BatteryChannelEnum channel = 1;
channels channel = 1;
float scale = 2;
int32 cells = 3 [(nanopb).int_size = IS_8];
BatteryAttenEnum atten = 4;
atten atten = 4;
}