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

44 lines
1.0 KiB
C#
Raw Permalink Normal View History

2023-06-13 11:01:01 +00:00
using InnovEnergy.Lib.Units.Power;
namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertDc.Control;
// https://stackoverflow.com/q/63724308
public class DcDcControl
{
public Vcc Vcc => new(_Self);
public VoltageLimits VoltageLimits => new(_Self);
public DroopControl DroopControl => new(_Self);
public CurrentControl CurrentControl => new(_Self);
public ActivePower MaxDcPower
{
get => _Self.MaxDcPower;
set => _Self.MaxDcPower = value.Value;
}
public DcControlMode ControlMode
{
get => _Self.DcControlMode;
set => _Self.DcControlMode = value;
}
public Boolean ResetAlarmsAndWarnings
{
get => _Self.ResetAlarmsAndWarnings;
set => _Self.ResetAlarmsAndWarnings = value;
}
public Boolean PowerStageEnable
{
get => _Self.PowerStageEnable;
set => _Self.PowerStageEnable = value;
}
private readonly DcDcRecord _Self;
internal DcDcControl(DcDcRecord self) => _Self = self;
}