/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Resource } from "#models/Resource.js";
Resource.add({
  tag: "cluster",
  name: "EthernetNetworkDiagnostics",
  pics: "DGETH",
  xref: "core\xA711.16",
  details: "The Ethernet Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that may be used by a Node to assist a user or Administrator in diagnosing potential problems. The Ethernet Network Diagnostics Cluster attempts to centralize all metrics that are relevant to a potential Ethernet connection to a Node.",
  children: [
    {
      tag: "attribute",
      name: "FeatureMap",
      xref: "core\xA711.16.4",
      children: [
        {
          tag: "field",
          name: "PKTCNT",
          details: "Node makes available the counts for the number of received and transmitted packets on the ethernet interface."
        },
        {
          tag: "field",
          name: "ERRCNT",
          details: "Node makes available the counts for the number of errors that have occurred during the reception and transmission of packets on the ethernet interface."
        }
      ]
    },
    {
      tag: "attribute",
      name: "PhyRate",
      xref: "core\xA711.16.6.1",
      details: "Indicates the current nominal, usable speed at the top of the physical layer of the Node. A value of null shall indicate that the interface is not currently configured or operational."
    },
    {
      tag: "attribute",
      name: "FullDuplex",
      xref: "core\xA711.16.6.2",
      details: "Indicates if the Node is currently utilizing the full-duplex operating mode. A value of null shall indicate that the interface is not currently configured or operational."
    },
    {
      tag: "attribute",
      name: "PacketRxCount",
      xref: "core\xA711.16.6.3",
      details: "Indicates the number of packets that have been received on the ethernet network interface. The attribute shall be reset to 0 upon a reboot of the Node."
    },
    {
      tag: "attribute",
      name: "PacketTxCount",
      xref: "core\xA711.16.6.4",
      details: "Indicates the number of packets that have been successfully transferred on the ethernet network interface. The attribute shall be reset to 0 upon a reboot of the Node."
    },
    {
      tag: "attribute",
      name: "TxErrCount",
      xref: "core\xA711.16.6.5",
      details: "Indicates the number of failed packet transmissions that have occurred on the ethernet network interface. The attribute shall be reset to 0 upon a reboot of the Node."
    },
    {
      tag: "attribute",
      name: "CollisionCount",
      xref: "core\xA711.16.6.6",
      details: "Indicates the number of collisions that have occurred while attempting to transmit a packet on the ethernet network interface. The attribute shall be reset to 0 upon a reboot of the Node."
    },
    {
      tag: "attribute",
      name: "OverrunCount",
      xref: "core\xA711.16.6.7",
      details: "Indicates the number of packets dropped either at ingress or egress, due to lack of buffer memory to retain all packets on the ethernet network interface. The attribute shall be reset to 0 upon a reboot of the Node."
    },
    {
      tag: "attribute",
      name: "CarrierDetect",
      xref: "core\xA711.16.6.8",
      details: "Indicates the value of the Carrier Detect control signal present on the ethernet network interface. A value of null shall indicate that the interface is not currently configured or operational."
    },
    {
      tag: "attribute",
      name: "TimeSinceReset",
      xref: "core\xA711.16.6.9",
      details: "Indicates the duration of time, in minutes, that it has been since the ethernet network interface has reset for any reason."
    },
    {
      tag: "command",
      name: "ResetCounts",
      xref: "core\xA711.16.7.1",
      details: "This command is used to reset the count attributes.\nReception of this command shall reset the following attributes to 0:\n  - PacketRxCount\n  - PacketTxCount\n  - TxErrCount\n  - CollisionCount\n  - OverrunCount"
    },
    {
      tag: "datatype",
      name: "PHYRateEnum",
      xref: "core\xA711.16.5.1",
      children: [
        { tag: "field", name: "Rate10M", description: "PHY rate is 10Mbps" },
        { tag: "field", name: "Rate100M", description: "PHY rate is 100Mbps" },
        { tag: "field", name: "Rate1G", description: "PHY rate is 1Gbps" },
        { tag: "field", name: "Rate25G", description: "PHY rate is 2.5Gbps" },
        { tag: "field", name: "Rate5G", description: "PHY rate is 5Gbps" },
        { tag: "field", name: "Rate10G", description: "PHY rate is 10Gbps" },
        { tag: "field", name: "Rate40G", description: "PHY rate is 40Gbps" },
        { tag: "field", name: "Rate100G", description: "PHY rate is 100Gbps" },
        { tag: "field", name: "Rate200G", description: "PHY rate is 200Gbps" },
        { tag: "field", name: "Rate400G", description: "PHY rate is 400Gbps" }
      ]
    }
  ]
});
//# sourceMappingURL=ethernet-network-diagnostics.resource.js.map
