32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
using InnovEnergy.Lib.StatusApi;
|
|
using InnovEnergy.Lib.Units;
|
|
using InnovEnergy.Lib.Units.Composite;
|
|
using InnovEnergy.Lib.Utils;
|
|
|
|
namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
|
|
|
using AlarmMessages = IReadOnlyList<AlarmMessage>;
|
|
using WarningMessages = IReadOnlyList<WarningMessage>;
|
|
using DcCurrentLimitStates = IReadOnlyList<DcCurrentLimitState>;
|
|
|
|
public record TruConvertDcStatus
|
|
(
|
|
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>("|");
|
|
} |