浏览代码

pi fucntioning header file

namrota ghosh 7 月之前
父节点
当前提交
f0ce01ec5a
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/pi/i2c_pi_target.h

+ 9 - 0
src/pi/i2c_pi_target.h

@@ -16,6 +16,15 @@ typedef struct __attribute__((packed)){
     uint16_t temperature;
 } BatteryData;
 
+typedef struct __attribute__((packed)){
+    uint8_t slot_id;
+    uint16_t min_voltage;
+    uint16_t max_voltage;
+    uint8_t cut_off_current;
+    uint16_t capacitance;
+    uint8_t charge_fraction;
+} BatteryLimitMsg;
+
 void pi_i2c_mcu();
 
 #endif