|
@@ -321,7 +321,8 @@ typedef union
|
|
|
{
|
|
|
unsigned int DisableBalance:1; // 0: no effect, 1: disable announce balance
|
|
|
unsigned int FastStandbyTime:1; // 0: no effect, 1: enable fast standby time
|
|
|
- unsigned int res:30;
|
|
|
+ unsigned int ChargingSimulation:1; // 0: no effect, 1: enable charging simulation
|
|
|
+ unsigned int res:29;
|
|
|
}bits;
|
|
|
}TestControl;
|
|
|
|
|
@@ -334,6 +335,24 @@ typedef union
|
|
|
}bits;
|
|
|
}DebugControl;
|
|
|
|
|
|
+typedef union
|
|
|
+{
|
|
|
+ unsigned int CtrlValue;
|
|
|
+ struct
|
|
|
+ {
|
|
|
+ unsigned int EnableForceCharging:1; // 0: disable, 1: enable force charging
|
|
|
+ unsigned int StartForceCharging:1; // 0: disable, 1: start force charging
|
|
|
+ unsigned int res:30;
|
|
|
+ }bits;
|
|
|
+}ForceChargingControl;
|
|
|
+
|
|
|
+typedef struct
|
|
|
+{
|
|
|
+ ForceChargingControl FCtrl;
|
|
|
+ unsigned short FTargetVoltage; // target voltage, unit: 0.1V
|
|
|
+ unsigned short FTargetCurrent; // target current, unit: 0.1A
|
|
|
+}ForceCharging;
|
|
|
+
|
|
|
typedef union
|
|
|
{
|
|
|
unsigned int AuthFlag;
|
|
@@ -425,6 +444,7 @@ typedef struct
|
|
|
FanControl FanCtrl;
|
|
|
LedFanControl LedCtrl;
|
|
|
PsuControl PsuCtrl;
|
|
|
+ ForceCharging FCharging[MAX_GROUP_QUANTITY];
|
|
|
}SysControl;
|
|
|
// ************************************************************************************************* //
|
|
|
typedef struct
|
|
@@ -461,8 +481,8 @@ typedef enum
|
|
|
_GROLE_WAIT_IDLE = 13, // wait a while to change to idle, open parallel relay at this state
|
|
|
_GROLE_WAIT_SLAVE = 14, // wait a while to change to slave
|
|
|
_GROLE_PREPARE_ATTACH_ON = 20, // raise voltage to master output voltage
|
|
|
- _GROLE_SWITCH_TO_MASTER = 21, // close parallel relay
|
|
|
- _GROLE_WAIT_MASTER = 22, // wait a while to master
|
|
|
+ _GROLE_PRECHARGE_READY = 21, // extend pre-charge ready
|
|
|
+ _GROLE_EXTEND_STOP = 22, // extend capability stop
|
|
|
_GROLE_REQUEST_TO_CHARGING = 30,
|
|
|
_GROLE_TERMINATE = 40,
|
|
|
_GROLE_WAIT_TERMINATED = 41,
|
|
@@ -498,7 +518,10 @@ typedef union
|
|
|
|
|
|
// MasterCtrlValue
|
|
|
unsigned int AlreadyInChargingMode:1; // 0: no effect, 1: system status ever enter charging mode
|
|
|
- unsigned int MasterCtrlRes:31;
|
|
|
+ unsigned int ExtendAvailable:1; // 0: no effect, 1: extend capability is available
|
|
|
+ unsigned int NeedCurrentBalanceCheck:1; // 0: no effect, 1: need to current balance
|
|
|
+ unsigned int OutputCurrentStable:1; // 0: no effect, 1: output current is stable
|
|
|
+ unsigned int MasterCtrlRes:28;
|
|
|
|
|
|
// StopChargingCtrlValue
|
|
|
unsigned int StopChargingRequest:1; // 0: no effect, 1: master need to stop
|
|
@@ -558,12 +581,14 @@ typedef struct
|
|
|
unsigned short ReAssignAvailableCurrent; // group available current when reassign, unit: 0.1A
|
|
|
unsigned short ParallelCheck;
|
|
|
unsigned char ParallelConfig[MAX_GROUP_QUANTITY]; // group parallel relay setting
|
|
|
+ unsigned short GunLoading; // gun output loading, unit: 0.01%
|
|
|
}PsuGroupCollectionData;
|
|
|
|
|
|
typedef struct
|
|
|
{
|
|
|
unsigned short GTargetVoltage; // group target voltage config, unit: 0.1V
|
|
|
unsigned short GTargetCurrent; // group target current config, unit: 0.1A
|
|
|
+ unsigned short OutputLoading; // group output loading, unit: 0.01%
|
|
|
}GroupOutputConfigInfo;
|
|
|
|
|
|
typedef union
|