Browse Source

2022-05-11 / Wendell

Actions
1. add RemainAmount for ucar

Files
1. As follow commit history
Wendell 2 years ago
parent
commit
4e9aece147
1 changed files with 18 additions and 17 deletions
  1. 18 17
      EVSE/Projects/define.h

+ 18 - 17
EVSE/Projects/define.h

@@ -592,7 +592,7 @@ struct SysConfigData
     unsigned char           MaintainServerSecurityProfile;      // Maintain server security profile 0~3
     unsigned char           MaintainServerSecurityPassword[41]; // Maintain server AuthorizationKey for security profile
     unsigned char           PowerSharingServerIP[512];          // Local power sharing server ip address
-    unsigned int			PowerSharingCapacityPower;			// Local power sharing capacity power
+    unsigned int            PowerSharingCapacityPower;          // Local power sharing capacity power
 };
 
 struct ChargingInfoData
@@ -880,6 +880,7 @@ struct ConnectorInfoData
     float                   CostDiscount;                   // connector user's Discount or couponPoint, unit: 1 point
     float                   EnergyCost;                     // connector user's energy cost, unit: 1 dollar
     float                   ParkingFee;                     // connector user's parking fee, unit: 1 dollar
+    float                   RemainAmount;                   // connector user's remain amount, unit: 1 dollar
 };
 
 typedef union
@@ -903,33 +904,33 @@ typedef struct DC_METER_INFO
 
 typedef struct Bazel8Command
 {
-	unsigned char isReq:1;
-	unsigned char isRes:1;
-	unsigned char isWaitRes:1;
-	unsigned char isResultPass:1;
+    unsigned char isReq:1;
+    unsigned char isRes:1;
+    unsigned char isWaitRes:1;
+    unsigned char isResultPass:1;
 } bazel8Command;
 
 typedef struct EventInfo
 {
-	int messageId;
-	char messageString[64];
-	unsigned char isGetOn:1;
+    int messageId;
+    char messageString[64];
+    unsigned char isGetOn:1;
 }eventInfo;
 
 typedef struct StartTxResp
 {
-	char statusCode[8];
-	char statusText[128];
-	char txnId[32];
-	unsigned char isGetOn:1;
+    char statusCode[8];
+    char statusText[128];
+    char txnId[32];
+    unsigned char isGetOn:1;
 }startTxResp;
 
 struct BAZEL8
 {
-	eventInfo		event;
-	startTxResp		txResp;
+    eventInfo       event;
+    startTxResp     txResp;
 
-	bazel8Command	cmdPreAuth;
+    bazel8Command   cmdPreAuth;
 };
 
 struct SysInfoData
@@ -1029,7 +1030,7 @@ struct SysInfoData
     unsigned char           OTPTemp;                    // OTP Temperature
     unsigned char           OTPTempR;                   // OTP Recovery Temperature
     struct LCD_OVERRIDE     LcdOveride;                 // LCD override info (no use anymore)
-    struct BAZEL8			bazel8;						// Bazel8 payment used
+    struct BAZEL8           bazel8;                     // Bazel8 payment used
 };
 
 struct SysConfigAndInfo
@@ -1540,7 +1541,7 @@ struct AlarmCodeData
             unsigned char MeterIcCommTimeout:1;                     //bit 0
             unsigned char PilotNegativeError:1;                     //bit 1
             unsigned char PsuComminicationErrWithCSU:1;             //bit 2
-			unsigned char LocalPowerSharingCommunicationError:1;	//bit 3
+            unsigned char LocalPowerSharingCommunicationError:1;    //bit 3
             unsigned char :4;                                       //reserved bit 4 ~ bit 7
             //AlarmVal[19]
             unsigned char :8;                                       //reserved bit 0 ~ bit 7