Quellcode durchsuchen

2021-08-31/Alston Lin
Actions
1. Add connector timeout item

Files
1. As follow commit history

alston vor 3 Jahren
Ursprung
Commit
b4455953fb
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 5 4
      EVSE/Projects/define.h

+ 5 - 4
EVSE/Projects/define.h

@@ -590,7 +590,7 @@ struct ChargingInfoData
 	unsigned char		AcCcsChargingMode;				// 0:BC (PWM) only, 1:BC & PLC mixed
 	unsigned short		SampleChargingCur[10];
 
-	/**************Alston for AC***************/
+	/************** Alston ***************/
 	unsigned char 		SelfTest_Comp;
 	unsigned char		version[16];
 	unsigned char 		IsModeChagned;
@@ -621,8 +621,9 @@ struct ChargingInfoData
 	float 				ConnectorMaxCurrent;			// 0~6553.5 volt
 	unsigned char 		ModelType;
 	MeterIcCalibration  meterIcCalInfo;
-    float				CurrentOffered;					// unit 0.1A
-    float				PowerOffered;					// unit 0.1KWH
+	float				PowerOffered;					//0~6553.5 kW
+	float				CurrentOffered;					//0~6553.5 amp
+	struct timespec		ConnectorTimeout;
 };
 
 typedef union
@@ -927,7 +928,7 @@ struct SysInfoData
 	unsigned char 		FirmwareUpdate;					// 0 : none, 1 : update.
 	unsigned char 		AcContactorStatus;				// 0: disconnected, 1: connected
 	unsigned char 	 	SystemTimeoutFlag;				// 0 : none, 1 : self test
-	struct timeval		SystemTimeoutTimer;
+	struct timespec		SystemTimeoutTimer;
 	unsigned char 		SystemPage;
 	unsigned char 		ConnectorPage;
 	unsigned char		IsAlternatvieConf;				// 0 : normal, 1 : alternative