2023-03-01 09:53:34 +00:00
|
|
|
using InnovEnergy.Lib.StatusApi;
|
|
|
|
using InnovEnergy.Lib.Units;
|
|
|
|
using InnovEnergy.Lib.Units.Composite;
|
|
|
|
using InnovEnergy.Lib.Utils;
|
2023-02-16 12:57:06 +00:00
|
|
|
|
|
|
|
namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
|
|
|
|
|
|
|
using AlarmMessages = IReadOnlyList<AlarmMessage>;
|
|
|
|
using WarningMessages = IReadOnlyList<WarningMessage>;
|
|
|
|
using DcCurrentLimitStates = IReadOnlyList<DcCurrentLimitState>;
|
|
|
|
|
2023-03-01 09:53:34 +00:00
|
|
|
public record TruConvertDcStatus
|
2023-02-23 12:45:09 +00:00
|
|
|
(
|
2023-03-01 09:53:34 +00:00
|
|
|
DcBus DcLeft,
|
|
|
|
DcBus DcRight,
|
|
|
|
State MainState,
|
|
|
|
Power TotalDcPower, // TODO: necessary?
|
|
|
|
State StatusOfCurrentLimiting,
|
|
|
|
Decimal OverloadCapacity,
|
|
|
|
Temperature DcDcInletTemperature,
|
|
|
|
State Alarms,
|
|
|
|
State Warnings,
|
|
|
|
State PowerOperation
|
|
|
|
|
|
|
|
// UInt16 NumberOfConnectedSlaves, // TODO: necessary?
|
|
|
|
// UInt16 NumberOfConnectedSubSlaves, // TODO: necessary?
|
|
|
|
) :
|
|
|
|
DcDcConverterStatus(DcLeft, DcRight)
|
|
|
|
{
|
|
|
|
public static TruConvertDcStatus operator |(TruConvertDcStatus left, TruConvertDcStatus right) => OpParallel(left, right);
|
|
|
|
private static readonly Func<TruConvertDcStatus, TruConvertDcStatus, TruConvertDcStatus> OpParallel = Operators.Op<TruConvertDcStatus>("|");
|
|
|
|
}
|