BatteryMonitor/proto/battery.proto

105 lines
2.2 KiB
Protocol Buffer

syntax = "proto3";
package BatteryConfig;
message Item{
repeated Attributes ItemAttr = 1;
repeated Attributes_balance ItemAttr_balance = 2;
repeated Attributes_DIDO ItemAttr_DIDO = 3;
repeated Attributes_SOX ItemAttr_SOX = 4;
repeated Attributes_other ItemAttr_other = 5;
repeated Attributes_alert_value ItemAttr_alert_value = 6;
repeated Attributes_alert_delay ItemAttr_alert_delay = 7;
repeated Attributes_alert_release_value ItemAttr_alert_release_value = 8;
repeated Attributes_alert_release_delay ItemAttr_alert_release_delay = 9;
repeated Attributes_alert_dropcurr_rate ItemAttr_alert_dropcurr_rate = 10;
repeated Attributes_alert_solve_measure ItemAttr_alert_solve_measure = 11;
}
message Attributes{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_balance{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_DIDO{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_SOX{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_other{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_alert_value{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_alert_delay{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_alert_release_value{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_alert_release_delay{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_alert_dropcurr_rate{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}
message Attributes_alert_solve_measure{
string name = 1;
int32 addr = 2;
int32 value = 3;
float scale = 4;
string introduce = 5;
}