Quellcode durchsuchen

2020-03-02 / ct_chen

Actions:
1. define.h新增billing data與QR code相關參數

Files:
1. EVSE/Projects/define.h
ct_chen vor 5 Jahren
Ursprung
Commit
5163262552
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      EVSE/Projects/define.h

+ 10 - 0
EVSE/Projects/define.h

@@ -289,6 +289,13 @@ struct BtConfigData
 	unsigned char		isRequestStop;				//0: no action	1: request stop charging
 };
 
+struct BillingConfigData
+{
+	unsigned char		isBilling;					//0:not for business	1:for business
+	unsigned char		Currency;					//
+	unsigned short		Fee[24];					//fee for 24 hours
+}
+
 struct SysConfigData
 {
 	/**************System***************/
@@ -308,6 +315,8 @@ struct SysConfigData
 	unsigned short			ChademoPlugInTimes;			//0~65535
 	unsigned char 			PsuAcInputType;				//0: 220, 1: 277
 	unsigned short 			RatingCurrent;				//0: Depend on Model name,	1 ~ rating value amp
+	unsigned char			QRCodeMadeMode;				//0: default	1:customized
+	unsigned char			QRCodeContent[128];			//for QRCodeMadeMode=1
 	/**************Charging***************/
 	unsigned short	   		MaxChargingEnergy;			//0: no limit,	1 ~ 65535	kWh
 	unsigned short	   		MaxChargingPower;			//0: rating value, 1 ~ RATING_POWER	kW"
@@ -316,6 +325,7 @@ struct SysConfigData
 	unsigned char   		PhaseLossPolicy;			//0: charging,  1: stop charging
 	unsigned char   		LocalWhiteCard[10][32];		//Max. card quantity is 10
 	unsigned char 			UserId[32];					//the user use this ID to trigger charging event, it can be RFID card number, OCPP IdTag, etc.
+	struct BillingConfigData BillingData;
 	/**************Network***************/
 	unsigned char 			FtpServer[256];				//the ftp server for Phihong server to do data transimission
 	struct EthConfigData	Eth0Interface;