소스 검색

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