Browse Source

增加解析MCPT5X

jinqi.huang 1 year ago
parent
commit
d456870601
2 changed files with 27 additions and 0 deletions
  1. 27 0
      2.0表MCPT5X解析.hexpat
  2. BIN
      MCP6X-235D.bin

+ 27 - 0
2.0表MCPT5X解析.hexpat

@@ -0,0 +1,27 @@
+#pragma pack(4)
+struct DEV_METER_REG_TypeDef
+{
+    u32				Gain_V;
+    u32				Gain_A1;
+    u32				Gain_A2;
+    u32				Gain_P1;
+    u32				Gain_P2;
+    u32				Gain_Range1;
+    u32				Gain_Range2;
+    u32             SYSCONFIG;
+    u32				Offset_A1;
+    u32				Offset_A2;
+} ;
+struct Dev_meter_cable_typedef
+{
+	s32				val[10];
+};
+struct DEV_METER_MCPT5X_INFO {
+		u8	check_error[3];
+		u8	start_charge[3];
+		u32 error_count[3];
+		Dev_meter_cable_typedef	cable_error_value[3];
+        DEV_METER_REG_TypeDef reg_value[3];
+};
+
+DEV_METER_MCPT5X_INFO dev_meter_mcpt5x_info_at_0x2000 @ 0x2000;

BIN
MCP6X-235D.bin