#[non_exhaustive]pub enum Modifier {
Show 30 variants
Error(RecordError),
Average,
CompactProfile(Direction),
RelativeDeviation,
StandardConformant,
Per(Per),
IncrementPerPulse {
output: bool,
channel: u8,
},
MultipliedBy(Times),
StartDateOf,
UncorrectedUnit,
Forward,
Backward,
NonMetric,
BaseConditions,
ObisDeclaration,
Limit {
upper: bool,
},
ExceedCount {
upper: bool,
},
LimitExceedDate {
upper: bool,
last: bool,
end: bool,
},
LimitExceedDuration {
upper: bool,
last: bool,
unit: Unit,
},
Duration {
last: bool,
unit: Unit,
},
ValueDuringLimitExceed {
upper: bool,
},
Leakage,
Overflow,
DateOf {
last: bool,
end: bool,
},
Scale(i8),
Offset(i8),
Extension(Extension),
FutureValue,
ManufacturerSpecific,
Reserved(u8),
}Expand description
One combinable (orthogonal) VIFE: how it modifies the value (EN 13757-3, Table 15).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Error(RecordError)
00–11, 15–1C: the slave reports an error for this record.
Average
12: an average value.
CompactProfile(Direction)
13, 1E, 1F: the record is a compact profile (see
Record::profile).
RelativeDeviation
14: a relative deviation.
StandardConformant
1D: standard-conformant data content (e.g. error flags as defined by OMS).
Per(Per)
20–27, 2C–35: the value is per this denominator.
IncrementPerPulse
28–2B: increment per input or output pulse on channel 0 or 1.
MultipliedBy(Times)
36–38: the value is multiplied by this.
StartDateOf
39: the value is the start date (and time) of what the VIF describes.
UncorrectedUnit
3A: the VIF is the uncorrected unit (e.g. volume at measuring conditions).
Forward
3B: forward flow: accumulation of positive contributions only.
Backward
3C: backward flow: accumulation of the absolute value of negative
contributions only.
NonMetric
3D: an alternate, non-metric unit system.
BaseConditions
3E: the value at base conditions.
ObisDeclaration
3F: OBIS declaration.
Limit
40 / 48: a lower or upper limit value.
ExceedCount
41 / 49: the number of times the lower or upper limit was exceeded.
LimitExceedDate
42–4F (E100 uf1b): the date (and time) a limit exceed began or ended.
Fields
LimitExceedDuration
50–5F (E101 ufnn): how long a limit was exceeded.
Fields
Duration
60–67 (E110 0fnn): a duration.
ValueDuringLimitExceed
68 / 6C: the value during a lower or upper limit exceed.
Leakage
69: leakage values.
Overflow
6D: overflow values.
DateOf
6A, 6B, 6E, 6F (E110 1f1b): the date (and time) of a first or last
beginning or end.
Scale(i8)
70–77 (×10^(nnn−6)) and 7D (×10³): multiplicative correction, applied by
Record::quantity.
Offset(i8)
78–7B: the record is an additive correction constant (offset) of
10^(nn−3) × the VIF’s unit.
Extension(Extension)
FC and the code after it: from the extension of the combinable table.
FutureValue
7E: a future value.
ManufacturerSpecific
7F: this and every following VIFE (and the data) are manufacturer-specific.
Reserved(u8)
A code the table reserves.
Implementations§
Source§impl Modifier
impl Modifier
Sourcepub const fn keeps_quantity(self) -> bool
pub const fn keeps_quantity(self) -> bool
Whether Record::quantity may still report the value
in the VIF’s unit: the modifier scales it (applied) or annotates it without
changing unit or meaning.