Enum
public enum ManufacturerStatusFlags
Namespace: SharpMeter.Core.Enums
Manufacturer-specific status flags (ED_MFG_STATUS from ST3).
Fields
| Name | Description |
|---|---|
DspError static |
DSP error. |
HighTemperature static |
High temperature detected. |
LeadingKvarh static |
Leading kVArh detected. |
LossOfProgram static |
Loss of program detected. |
None static |
No flags set. |
ReceivedKwh static |
Received kWh (bi-directional). |
SystemError static |
System error. |
TimeChanged static |
Time was changed. |
DspError
DspError = 1
DSP error.
HighTemperature
HighTemperature = 64
High temperature detected.
LeadingKvarh
LeadingKvarh = 16
Leading kVArh detected.
LossOfProgram
LossOfProgram = 32
Loss of program detected.
None
None = 0
No flags set.
ReceivedKwh
ReceivedKwh = 8
Received kWh (bi-directional).
SystemError
SystemError = 4
System error.
TimeChanged
TimeChanged = 2
Time was changed.
View Source
/// <summary>
/// Manufacturer-specific status flags (ED_MFG_STATUS from ST3).
/// </summary>
[Flags]
[SuppressMessage("Design", "CA1028:Enum storage should be Int32", Justification = "Wire protocol requires byte for binary serialization.")]
[SuppressMessage("Naming", "CA1711:Identifiers should not have incorrect suffix", Justification = "This is a [Flags] enum representing protocol status flags.")]
public enum ManufacturerStatusFlags : byte
{
/// <summary>No flags set.</summary>
None = 0,
/// <summary>DSP error.</summary>
DspError = 1 << 0,
/// <summary>Time was changed.</summary>
TimeChanged = 1 << 1,
/// <summary>System error.</summary>
SystemError = 1 << 2,
/// <summary>Received kWh (bi-directional).</summary>
ReceivedKwh = 1 << 3,
/// <summary>Leading kVArh detected.</summary>
LeadingKvarh = 1 << 4,
/// <summary>Loss of program detected.</summary>
LossOfProgram = 1 << 5,
/// <summary>High temperature detected.</summary>
HighTemperature = 1 << 6
}