Innovenergy_trunk/csharp/Lib/Devices/Trumpf/TruConvertDc/Control/CurrentControl.cs

36 lines
880 B
C#

using InnovEnergy.Lib.Units;
namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertDc.Control;
public class CurrentControl
{
public Current CurrentSetpoint
{
get => _Self.DcDcCurrentSetpoint;
set => _Self.DcDcCurrentSetpoint = value.Value;
}
public Current MaxCurrentChangePerMs
{
get => _Self.MaxCurrentChangePerMs;
set => _Self.MaxCurrentChangePerMs = value.Value;
}
public Current MaxBatteryChargingCurrent
{
get => _Self.MaxBatteryChargingCurrent;
set => _Self.MaxBatteryChargingCurrent = value.Value;
}
public Current MaxBatteryDischargingCurrent
{
get => _Self.MaxBatteryDischargingCurrent;
set => _Self.MaxBatteryDischargingCurrent = value.Value;
}
private readonly DcDcRecord _Self;
internal CurrentControl(DcDcRecord self) => _Self = self;
}