/**
 * @license
 * Copyright 2022-2024 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterDefinition } from "../MatterDefinition.js";
import { DatatypeElement as Datatype, FieldElement as Field } from "../../elements/index.js";
const MeasurementTypeEnum = Datatype({
  name: "MeasurementTypeEnum",
  type: "enum16",
  xref: { document: "cluster", section: "2.1.4.2" },
  children: [
    Field({ name: "Unspecified", id: 0, conformance: "M" }),
    Field({ name: "Voltage", id: 1, conformance: "M", description: "Voltage in millivolts (mV)" }),
    Field({ name: "ActiveCurrent", id: 2, conformance: "M", description: "Active current in milliamps (mA)" }),
    Field({
      name: "ReactiveCurrent",
      id: 3,
      conformance: "M",
      description: "Reactive current in milliamps (mA)"
    }),
    Field({
      name: "ApparentCurrent",
      id: 4,
      conformance: "M",
      description: "Apparent current in milliamps (mA)"
    }),
    Field({ name: "ActivePower", id: 5, conformance: "M", description: "Active power in milliwatts (mW)" }),
    Field({
      name: "ReactivePower",
      id: 6,
      conformance: "M",
      description: "Reactive power in millivolt-amps reactive (mVAR)"
    }),
    Field({
      name: "ApparentPower",
      id: 7,
      conformance: "M",
      description: "Apparent power in millivolt-amps (mVA)"
    }),
    Field({
      name: "RmsVoltage",
      id: 8,
      conformance: "M",
      description: "Root mean squared voltage in millivolts (mV)"
    }),
    Field({
      name: "RmsCurrent",
      id: 9,
      conformance: "M",
      description: "Root mean squared current in milliamps (mA)"
    }),
    Field({
      name: "RmsPower",
      id: 10,
      conformance: "M",
      description: "Root mean squared power in milliwatts (mW)"
    }),
    Field({ name: "Frequency", id: 11, conformance: "M", description: "AC frequency in millihertz (mHz)" }),
    Field({
      name: "PowerFactor",
      id: 12,
      conformance: "M",
      description: "Power Factor ratio in+/- 1/100ths of a percent."
    }),
    Field({
      name: "NeutralCurrent",
      id: 13,
      conformance: "M",
      description: "AC neutral current in milliamps (mA)"
    }),
    Field({
      name: "ElectricalEnergy",
      id: 14,
      conformance: "M",
      description: "Electrical energy in milliwatt-hours (mWh)"
    })
  ]
});
MatterDefinition.children.push(MeasurementTypeEnum);
export {
  MeasurementTypeEnum
};
//# sourceMappingURL=MeasurementTypeEnum.js.map
