From ccf48d84da48dc04880eaf0548264fc852a53825 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 18 Oct 2023 11:57:33 -0400 Subject: [PATCH] matter idl: use lowercase types for enum and bitmap base types (#29832) * Make IDL templates use lowercase for bitmap and enum types * Zap regen * Undo submodule update --------- Co-authored-by: Andrei Litvin --- .../air-quality-sensor-app.matter | 172 +++--- .../all-clusters-app.matter | 524 ++++++++-------- .../all-clusters-minimal-app.matter | 382 ++++++------ .../bridge-common/bridge-app.matter | 130 ++-- ...p_rootnode_dimmablelight_bCwGYSDpoe.matter | 122 ++-- ...umiditysensor_thermostat_56de3d5f45.matter | 190 +++--- ...ootnode_airqualitysensor_e63187f6c9.matter | 162 ++--- ...ootnode_basicvideoplayer_0ff86e943b.matter | 112 ++-- ...de_colortemperaturelight_hbUnzYVeyn.matter | 118 ++-- .../rootnode_contactsensor_lFAGG1bfRO.matter | 82 +-- .../rootnode_dimmablelight_bCwGYSDpoe.matter | 108 ++-- .../rootnode_dishwasher_cc105034fe.matter | 76 +-- .../rootnode_doorlock_aNKYAreMXE.matter | 152 ++--- ...tnode_extendedcolorlight_8lcaaYJVAa.matter | 124 ++-- .../devices/rootnode_fan_7N2TobIlOX.matter | 96 +-- .../rootnode_flowsensor_1zVxHedlaV.matter | 82 +-- .../rootnode_genericswitch_9866e35d0b.matter | 60 +- ...tnode_heatingcoolingunit_ncdGai1E5a.matter | 130 ++-- .../rootnode_humiditysensor_Xyj4gda6Hb.matter | 82 +-- .../rootnode_laundrywasher_fb10d238c8.matter | 76 +-- .../rootnode_lightsensor_lZQycTFcJK.matter | 84 +-- ...rootnode_occupancysensor_iHyVgifZuo.matter | 88 +-- .../rootnode_onofflight_bbs1b7IaOV.matter | 102 ++-- .../rootnode_onofflight_samplemei.matter | 102 ++-- ...ootnode_onofflightswitch_FsPlMr090Q.matter | 106 ++-- ...rootnode_onoffpluginunit_Wtf8ss5EBY.matter | 94 +-- .../rootnode_pressuresensor_s0qC9wLH4k.matter | 84 +-- .../devices/rootnode_pump_5f904818cc.matter | 84 +-- .../devices/rootnode_pump_a811bb33a0.matter | 82 +-- ...eraturecontrolledcabinet_ffdb696680.matter | 74 +-- ...ode_roboticvacuumcleaner_1807ff0c49.matter | 82 +-- ...tnode_roomairconditioner_9cf3607804.matter | 102 ++-- .../rootnode_smokecoalarm_686fe0dcb8.matter | 98 +-- .../rootnode_speaker_RpzeXdimqA.matter | 98 +-- ...otnode_temperaturesensor_Qy1zkNW7c3.matter | 82 +-- .../rootnode_thermostat_bm3fb8dhYi.matter | 116 ++-- .../rootnode_windowcovering_RLCxaGi9Yx.matter | 96 +-- .../contact-sensor-app.matter | 110 ++-- .../dishwasher-common/dishwasher-app.matter | 80 +-- .../light-switch-app.matter | 162 ++--- .../data_model/lighting-app-ethernet.matter | 128 ++-- .../data_model/lighting-app-thread.matter | 132 ++--- .../data_model/lighting-app-wifi.matter | 134 ++--- .../lighting-common/lighting-app.matter | 158 ++--- .../nxp/zap/lighting-on-off.matter | 98 +-- examples/lighting-app/qpg/zap/light.matter | 126 ++-- .../data_model/lighting-thread-app.matter | 158 ++--- .../data_model/lighting-wifi-app.matter | 160 ++--- examples/lock-app/lock-common/lock-app.matter | 210 +++---- examples/lock-app/nxp/zap/lock-app.matter | 132 ++--- examples/lock-app/qpg/zap/lock.matter | 154 ++--- .../log-source-common/log-source-app.matter | 28 +- .../ota-provider-app.matter | 64 +- .../ota-requestor-app.matter | 86 +-- .../placeholder/linux/apps/app1/config.matter | 536 ++++++++--------- .../placeholder/linux/apps/app2/config.matter | 532 ++++++++--------- examples/pump-app/pump-common/pump-app.matter | 108 ++-- .../silabs/data_model/pump-thread-app.matter | 108 ++-- .../silabs/data_model/pump-wifi-app.matter | 108 ++-- .../pump-controller-app.matter | 94 +-- .../refrigerator-app.matter | 68 +-- .../resource-monitoring-app.matter | 136 ++--- examples/rvc-app/rvc-common/rvc-app.matter | 74 +-- .../smoke-co-alarm-app.matter | 128 ++-- .../temperature-measurement.matter | 78 +-- .../thermostat-common/thermostat.matter | 128 ++-- examples/tv-app/tv-common/tv-app.matter | 172 +++--- .../tv-casting-common/tv-casting-app.matter | 148 ++--- .../virtual-device-app.matter | 232 ++++---- examples/window-app/common/window-app.matter | 138 ++--- .../partials/idl/cluster_definition.zapt | 4 +- .../data_model/controller-clusters.matter | 560 +++++++++--------- 72 files changed, 5013 insertions(+), 5013 deletions(-) diff --git a/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter b/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter index f811b3164af645..b468be273d3509 100644 --- a/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter +++ b/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,7 +43,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -76,13 +76,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -90,7 +90,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -148,7 +148,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -172,7 +172,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -235,20 +235,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -309,13 +309,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -323,7 +323,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -384,7 +384,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -392,7 +392,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -448,7 +448,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -464,7 +464,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -473,13 +473,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -588,7 +588,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -598,7 +598,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -612,7 +612,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -620,14 +620,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -693,7 +693,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -727,19 +727,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -749,7 +749,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -890,19 +890,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -911,7 +911,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -921,7 +921,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -964,7 +964,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -977,7 +977,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1003,13 +1003,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1044,12 +1044,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1160,12 +1160,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1232,7 +1232,7 @@ server cluster GroupKeyManagement = 63 { /** Attributes for reporting air quality classification */ server cluster AirQuality = 91 { - enum AirQualityEnum : ENUM8 { + enum AirQualityEnum : enum8 { kUnknown = 0; kGood = 1; kFair = 2; @@ -1242,7 +1242,7 @@ server cluster AirQuality = 91 { kExtremelyPoor = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kFair = 0x1; kModerate = 0x2; kVeryPoor = 0x4; @@ -1286,7 +1286,7 @@ server cluster RelativeHumidityMeasurement = 1029 { /** Attributes for reporting carbon monoxide concentration measurements */ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1294,13 +1294,13 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1311,7 +1311,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1333,7 +1333,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { /** Attributes for reporting carbon dioxide concentration measurements */ server cluster CarbonDioxideConcentrationMeasurement = 1037 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1341,13 +1341,13 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1358,7 +1358,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1380,7 +1380,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { /** Attributes for reporting nitrogen dioxide concentration measurements */ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1388,13 +1388,13 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1405,7 +1405,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1427,7 +1427,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { /** Attributes for reporting ozone concentration measurements */ server cluster OzoneConcentrationMeasurement = 1045 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1435,13 +1435,13 @@ server cluster OzoneConcentrationMeasurement = 1045 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1452,7 +1452,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1474,7 +1474,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { /** Attributes for reporting PM2.5 concentration measurements */ server cluster Pm25ConcentrationMeasurement = 1066 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1482,13 +1482,13 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1499,7 +1499,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1521,7 +1521,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { /** Attributes for reporting formaldehyde concentration measurements */ server cluster FormaldehydeConcentrationMeasurement = 1067 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1529,13 +1529,13 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1546,7 +1546,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1568,7 +1568,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { /** Attributes for reporting PM1 concentration measurements */ server cluster Pm1ConcentrationMeasurement = 1068 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1576,13 +1576,13 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1593,7 +1593,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1615,7 +1615,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { /** Attributes for reporting PM10 concentration measurements */ server cluster Pm10ConcentrationMeasurement = 1069 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1623,13 +1623,13 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1640,7 +1640,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1662,7 +1662,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { /** Attributes for reporting total volatile organic compounds concentration measurements */ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1670,13 +1670,13 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1687,7 +1687,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1709,7 +1709,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { /** Attributes for reporting radon concentration measurements */ server cluster RadonConcentrationMeasurement = 1071 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1717,13 +1717,13 @@ server cluster RadonConcentrationMeasurement = 1071 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1734,7 +1734,7 @@ server cluster RadonConcentrationMeasurement = 1071 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 367388c7b2f015..38edc082244bca 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,14 +118,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -286,33 +286,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -355,33 +355,33 @@ client cluster OnOff = 6 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -430,23 +430,23 @@ server cluster OnOffSwitchConfiguration = 7 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -551,7 +551,7 @@ server cluster BinaryInputBasic = 15 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -604,13 +604,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -618,7 +618,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -674,19 +674,19 @@ server cluster AccessControl = 31 { /** This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information. */ server cluster Actions = 37 { - enum ActionErrorEnum : ENUM8 { + enum ActionErrorEnum : enum8 { kUnknown = 0; kInterrupted = 1; } - enum ActionStateEnum : ENUM8 { + enum ActionStateEnum : enum8 { kInactive = 0; kActive = 1; kPaused = 2; kDisabled = 3; } - enum ActionTypeEnum : ENUM8 { + enum ActionTypeEnum : enum8 { kOther = 0; kScene = 1; kSequence = 2; @@ -696,13 +696,13 @@ server cluster Actions = 37 { kAlarm = 6; } - enum EndpointListTypeEnum : ENUM8 { + enum EndpointListTypeEnum : enum8 { kOther = 0; kRoom = 1; kZone = 2; } - bitmap CommandBits : BITMAP16 { + bitmap CommandBits : bitmap16 { kInstantAction = 0x1; kInstantActionWithTransition = 0x2; kStartAction = 0x4; @@ -761,7 +761,7 @@ server cluster Actions = 37 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -785,7 +785,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -849,20 +849,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -923,13 +923,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -937,7 +937,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -1016,7 +1016,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -1031,12 +1031,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -1056,13 +1056,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -1088,7 +1088,7 @@ server cluster PowerSourceConfiguration = 46 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -1124,7 +1124,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -1138,20 +1138,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -1235,38 +1235,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -1320,7 +1320,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1328,7 +1328,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1384,7 +1384,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -1400,7 +1400,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -1409,13 +1409,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1524,13 +1524,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1538,7 +1538,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1561,7 +1561,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1571,7 +1571,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1585,7 +1585,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1593,14 +1593,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1666,7 +1666,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1700,19 +1700,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1722,7 +1722,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1863,19 +1863,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1884,7 +1884,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1894,7 +1894,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1937,7 +1937,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1950,7 +1950,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1976,7 +1976,7 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Accurate time is required for a number of reasons, including scheduling, display and validating security materials. */ server cluster TimeSynchronization = 56 { - enum GranularityEnum : ENUM8 { + enum GranularityEnum : enum8 { kNoTimeGranularity = 0; kMinutesGranularity = 1; kSecondsGranularity = 2; @@ -1984,11 +1984,11 @@ server cluster TimeSynchronization = 56 { kMicrosecondsGranularity = 4; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kTimeNotAccepted = 2; } - enum TimeSourceEnum : ENUM8 { + enum TimeSourceEnum : enum8 { kNone = 0; kUnknown = 1; kAdmin = 2; @@ -2008,13 +2008,13 @@ server cluster TimeSynchronization = 56 { kGNSS = 16; } - enum TimeZoneDatabaseEnum : ENUM8 { + enum TimeZoneDatabaseEnum : enum8 { kFull = 0; kPartial = 1; kNone = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTimeZone = 0x1; kNTPClient = 0x2; kNTPServer = 0x4; @@ -2118,7 +2118,7 @@ server cluster TimeSynchronization = 56 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -2168,13 +2168,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -2209,12 +2209,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -2325,12 +2325,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -2445,7 +2445,7 @@ server cluster BooleanState = 69 { /** Allows servers to ensure that listed clients are notified when a server is available for communication. */ server cluster IcdManagement = 70 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCheckInProtocolSupport = 0x1; } @@ -2491,7 +2491,7 @@ server cluster IcdManagement = 70 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster ModeSelect = 80 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2529,14 +2529,14 @@ server cluster ModeSelect = 80 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster LaundryWasherMode = 81 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kNormal = 16384; kDelicate = 16385; kHeavy = 16386; kWhites = 16387; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2576,12 +2576,12 @@ server cluster LaundryWasherMode = 81 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kRapidCool = 16384; kRapidFreeze = 16385; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2621,14 +2621,14 @@ server cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 { /** This cluster supports remotely monitoring and controling the different typs of functionality available to a washing device, such as a washing machine. */ server cluster LaundryWasherControls = 83 { - enum NumberOfRinsesEnum : ENUM8 { + enum NumberOfRinsesEnum : enum8 { kNone = 0; kNormal = 1; kExtra = 2; kMax = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSpin = 0x1; kRinse = 0x2; } @@ -2647,12 +2647,12 @@ server cluster LaundryWasherControls = 83 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster RvcRunMode = 84 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kIdle = 16384; kCleaning = 16385; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kStuck = 65; kDustBinMissing = 66; kDustBinFull = 67; @@ -2663,7 +2663,7 @@ server cluster RvcRunMode = 84 { kBatteryLow = 72; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2703,17 +2703,17 @@ server cluster RvcRunMode = 84 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster RvcCleanMode = 85 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kDeepClean = 16384; kVacuum = 16385; kMop = 16386; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kCleaningInProgress = 64; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2753,7 +2753,7 @@ server cluster RvcCleanMode = 85 { /** Attributes and commands for configuring the temperature control, and reporting temperature. */ server cluster TemperatureControl = 86 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureNumber = 0x1; kTemperatureLevel = 0x2; kTemperatureStep = 0x4; @@ -2778,7 +2778,7 @@ server cluster TemperatureControl = 86 { /** Attributes and commands for configuring the Refrigerator alarm. */ server cluster RefrigeratorAlarm = 87 { - bitmap AlarmMap : BITMAP32 { + bitmap AlarmMap : bitmap32 { kDoorOpen = 0x1; } @@ -2802,13 +2802,13 @@ server cluster RefrigeratorAlarm = 87 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster DishwasherMode = 89 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kNormal = 16384; kHeavy = 16385; kLight = 16386; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2848,7 +2848,7 @@ server cluster DishwasherMode = 89 { /** Attributes for reporting air quality classification */ server cluster AirQuality = 91 { - enum AirQualityEnum : ENUM8 { + enum AirQualityEnum : enum8 { kUnknown = 0; kGood = 1; kFair = 2; @@ -2858,7 +2858,7 @@ server cluster AirQuality = 91 { kExtremelyPoor = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kFair = 0x1; kModerate = 0x2; kVeryPoor = 0x4; @@ -2876,25 +2876,25 @@ server cluster AirQuality = 91 { /** This cluster provides an interface for observing and managing the state of smoke and CO alarms. */ server cluster SmokeCoAlarm = 92 { - enum AlarmStateEnum : ENUM8 { + enum AlarmStateEnum : enum8 { kNormal = 0; kWarning = 1; kCritical = 2; } - enum ContaminationStateEnum : ENUM8 { + enum ContaminationStateEnum : enum8 { kNormal = 0; kLow = 1; kWarning = 2; kCritical = 3; } - enum EndOfServiceEnum : ENUM8 { + enum EndOfServiceEnum : enum8 { kNormal = 0; kExpired = 1; } - enum ExpressedStateEnum : ENUM8 { + enum ExpressedStateEnum : enum8 { kNormal = 0; kSmokeAlarm = 1; kCOAlarm = 2; @@ -2906,18 +2906,18 @@ server cluster SmokeCoAlarm = 92 { kInterconnectCO = 8; } - enum MuteStateEnum : ENUM8 { + enum MuteStateEnum : enum8 { kNotMuted = 0; kMuted = 1; } - enum SensitivityEnum : ENUM8 { + enum SensitivityEnum : enum8 { kHigh = 0; kStandard = 1; kLow = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSmokeAlarm = 0x1; kCOAlarm = 0x2; } @@ -2985,7 +2985,7 @@ server cluster SmokeCoAlarm = 92 { /** Attributes and commands for configuring the Dishwasher alarm. */ server cluster DishwasherAlarm = 93 { - bitmap AlarmMap : BITMAP32 { + bitmap AlarmMap : bitmap32 { kInflowError = 0x1; kDrainError = 0x2; kDoorError = 0x4; @@ -2994,7 +2994,7 @@ server cluster DishwasherAlarm = 93 { kWaterLevelError = 0x20; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kReset = 0x1; } @@ -3030,14 +3030,14 @@ server cluster DishwasherAlarm = 93 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of any device where a state machine is a part of the operation. */ server cluster OperationalState = 96 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kNoError = 0; kUnableToStartOrResume = 1; kUnableToCompleteOperation = 2; kCommandInvalidInState = 3; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kStopped = 0; kRunning = 1; kPaused = 2; @@ -3090,7 +3090,7 @@ server cluster OperationalState = 96 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of a Robotic Vacuum. */ server cluster RvcOperationalState = 97 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kFailedToFindChargingDock = 64; kStuck = 65; kDustBinMissing = 66; @@ -3101,7 +3101,7 @@ server cluster RvcOperationalState = 97 { kMopCleaningPadMissing = 71; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kSeekingCharger = 64; kCharging = 65; kDocked = 66; @@ -3151,18 +3151,18 @@ server cluster RvcOperationalState = 97 { /** Attributes and commands for monitoring HEPA filters in a device */ server cluster HepaFilterMonitoring = 113 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -3170,7 +3170,7 @@ server cluster HepaFilterMonitoring = 113 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -3199,18 +3199,18 @@ server cluster HepaFilterMonitoring = 113 { /** Attributes and commands for monitoring activated carbon filters in a device */ server cluster ActivatedCarbonFilterMonitoring = 114 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -3218,7 +3218,7 @@ server cluster ActivatedCarbonFilterMonitoring = 114 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -3247,7 +3247,7 @@ server cluster ActivatedCarbonFilterMonitoring = 114 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -3258,13 +3258,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -3273,20 +3273,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -3301,7 +3301,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -3311,7 +3311,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -3329,7 +3329,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -3339,21 +3339,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3362,7 +3362,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -3371,7 +3371,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -3385,7 +3385,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -3393,7 +3393,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -3401,7 +3401,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -3409,7 +3409,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -3422,13 +3422,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3441,7 +3441,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3451,19 +3451,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -3472,7 +3472,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3483,7 +3483,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3491,14 +3491,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -3512,7 +3512,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3522,13 +3522,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3538,7 +3538,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3548,7 +3548,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -3556,7 +3556,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3566,7 +3566,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -3790,7 +3790,7 @@ server cluster DoorLock = 257 { /** Provides an interface for controlling and adjusting automatic window coverings. */ server cluster WindowCovering = 258 { - enum EndProductType : ENUM8 { + enum EndProductType : enum8 { kRollerShade = 0; kRomanShade = 1; kBalloonShade = 2; @@ -3818,7 +3818,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - enum Type : ENUM8 { + enum Type : enum8 { kRollerShade = 0; kRollerShade2Motor = 1; kRollerShadeExterior = 2; @@ -3832,7 +3832,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - bitmap ConfigStatus : BITMAP8 { + bitmap ConfigStatus : bitmap8 { kOperational = 0x1; kOnlineReserved = 0x2; kLiftMovementReversed = 0x4; @@ -3842,7 +3842,7 @@ server cluster WindowCovering = 258 { kTiltEncoderControlled = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLift = 0x1; kTilt = 0x2; kPositionAwareLift = 0x4; @@ -3850,20 +3850,20 @@ server cluster WindowCovering = 258 { kPositionAwareTilt = 0x10; } - bitmap Mode : BITMAP8 { + bitmap Mode : bitmap8 { kMotorDirectionReversed = 0x1; kCalibrationMode = 0x2; kMaintenanceMode = 0x4; kLedFeedback = 0x8; } - bitmap OperationalStatus : BITMAP8 { + bitmap OperationalStatus : bitmap8 { kGlobal = 0x3; kLift = 0xC; kTilt = 0x30; } - bitmap SafetyStatus : BITMAP16 { + bitmap SafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTamperDetection = 0x2; kFailedCommunication = 0x4; @@ -3934,11 +3934,11 @@ server cluster WindowCovering = 258 { /** This cluster provides control of a barrier (garage door). */ server cluster BarrierControl = 259 { - bitmap BarrierControlCapabilities : BITMAP8 { + bitmap BarrierControlCapabilities : bitmap8 { kPartialBarrier = 0x1; } - bitmap BarrierControlSafetyStatus : BITMAP16 { + bitmap BarrierControlSafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTemperDetected = 0x2; kFailedCommunication = 0x4; @@ -3966,7 +3966,7 @@ server cluster BarrierControl = 259 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -3975,14 +3975,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -3992,7 +3992,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -4088,13 +4088,13 @@ server cluster PumpConfigurationAndControl = 512 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4103,13 +4103,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4121,7 +4121,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4132,7 +4132,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -4142,7 +4142,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -4184,12 +4184,12 @@ server cluster Thermostat = 513 { /** An interface for controlling a fan in a heating/cooling system. */ provisional server cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -4199,7 +4199,7 @@ provisional server cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -4208,12 +4208,12 @@ provisional server cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -4222,13 +4222,13 @@ provisional server cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } @@ -4276,53 +4276,53 @@ server cluster ThermostatUserInterfaceConfiguration = 516 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -4330,14 +4330,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -4575,12 +4575,12 @@ server cluster ColorControl = 768 { /** Attributes and commands for configuring a lighting ballast. */ provisional server cluster BallastConfiguration = 769 { - bitmap BallastStatusBitmap : BITMAP8 { + bitmap BallastStatusBitmap : bitmap8 { kBallastNonOperational = 0x1; kLampFailure = 0x2; } - bitmap LampAlarmModeBitmap : BITMAP8 { + bitmap LampAlarmModeBitmap : bitmap8 { kLampBurnHours = 0x1; } @@ -4608,7 +4608,7 @@ provisional server cluster BallastConfiguration = 769 { /** Attributes and commands for configuring the measurement of illuminance, and reporting illuminance measurements. */ server cluster IlluminanceMeasurement = 1024 { - enum LightSensorTypeEnum : ENUM8 { + enum LightSensorTypeEnum : enum8 { kPhotodiode = 0; kCMOS = 1; } @@ -4642,7 +4642,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -4687,18 +4687,18 @@ server cluster RelativeHumidityMeasurement = 1029 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ server cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; @@ -4717,7 +4717,7 @@ server cluster OccupancySensing = 1030 { /** Attributes for reporting carbon monoxide concentration measurements */ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -4725,13 +4725,13 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -4742,7 +4742,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -4772,7 +4772,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { /** Attributes for reporting carbon dioxide concentration measurements */ server cluster CarbonDioxideConcentrationMeasurement = 1037 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -4780,13 +4780,13 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -4797,7 +4797,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -4827,7 +4827,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { /** Attributes for reporting nitrogen dioxide concentration measurements */ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -4835,13 +4835,13 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -4852,7 +4852,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -4882,7 +4882,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { /** Attributes for reporting ozone concentration measurements */ server cluster OzoneConcentrationMeasurement = 1045 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -4890,13 +4890,13 @@ server cluster OzoneConcentrationMeasurement = 1045 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -4907,7 +4907,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -4937,7 +4937,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { /** Attributes for reporting PM2.5 concentration measurements */ server cluster Pm25ConcentrationMeasurement = 1066 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -4945,13 +4945,13 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -4962,7 +4962,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -4992,7 +4992,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { /** Attributes for reporting formaldehyde concentration measurements */ server cluster FormaldehydeConcentrationMeasurement = 1067 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5000,13 +5000,13 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5017,7 +5017,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5047,7 +5047,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { /** Attributes for reporting PM1 concentration measurements */ server cluster Pm1ConcentrationMeasurement = 1068 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5055,13 +5055,13 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5072,7 +5072,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5102,7 +5102,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { /** Attributes for reporting PM10 concentration measurements */ server cluster Pm10ConcentrationMeasurement = 1069 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5110,13 +5110,13 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5127,7 +5127,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5157,7 +5157,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { /** Attributes for reporting total volatile organic compounds concentration measurements */ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5165,13 +5165,13 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5182,7 +5182,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5212,7 +5212,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { /** Attributes for reporting radon concentration measurements */ server cluster RadonConcentrationMeasurement = 1071 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5220,13 +5220,13 @@ server cluster RadonConcentrationMeasurement = 1071 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5237,7 +5237,7 @@ server cluster RadonConcentrationMeasurement = 1071 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5311,42 +5311,42 @@ server cluster ElectricalMeasurement = 2820 { /** The Test Cluster is meant to validate the generated code */ internal server cluster UnitTesting = 4294048773 { - enum SimpleEnum : ENUM8 { + enum SimpleEnum : enum8 { kUnspecified = 0; kValueA = 1; kValueB = 2; kValueC = 3; } - bitmap Bitmap16MaskMap : BITMAP16 { + bitmap Bitmap16MaskMap : bitmap16 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x4000; } - bitmap Bitmap32MaskMap : BITMAP32 { + bitmap Bitmap32MaskMap : bitmap32 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x40000000; } - bitmap Bitmap64MaskMap : BITMAP64 { + bitmap Bitmap64MaskMap : bitmap64 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x4000000000000000; } - bitmap Bitmap8MaskMap : BITMAP8 { + bitmap Bitmap8MaskMap : bitmap8 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x40; } - bitmap SimpleBitmap : BITMAP8 { + bitmap SimpleBitmap : bitmap8 { kValueA = 0x1; kValueB = 0x2; kValueC = 0x4; @@ -5633,7 +5633,7 @@ internal server cluster UnitTesting = 4294048773 { /** The Fault Injection Cluster provide a means for a test harness to configure faults(for example triggering a fault in the system). */ internal server cluster FaultInjection = 4294048774 { - enum FaultType : ENUM8 { + enum FaultType : enum8 { kUnspecified = 0; kSystemFault = 1; kInetFault = 2; diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index f7ae8b3196bc0e..00bc4346fc36b9 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,14 +118,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -241,33 +241,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -304,23 +304,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -403,7 +403,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -455,13 +455,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -469,7 +469,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -525,19 +525,19 @@ server cluster AccessControl = 31 { /** This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information. */ server cluster Actions = 37 { - enum ActionErrorEnum : ENUM8 { + enum ActionErrorEnum : enum8 { kUnknown = 0; kInterrupted = 1; } - enum ActionStateEnum : ENUM8 { + enum ActionStateEnum : enum8 { kInactive = 0; kActive = 1; kPaused = 2; kDisabled = 3; } - enum ActionTypeEnum : ENUM8 { + enum ActionTypeEnum : enum8 { kOther = 0; kScene = 1; kSequence = 2; @@ -547,13 +547,13 @@ server cluster Actions = 37 { kAlarm = 6; } - enum EndpointListTypeEnum : ENUM8 { + enum EndpointListTypeEnum : enum8 { kOther = 0; kRoom = 1; kZone = 2; } - bitmap CommandBits : BITMAP16 { + bitmap CommandBits : bitmap16 { kInstantAction = 0x1; kInstantActionWithTransition = 0x2; kStartAction = 0x4; @@ -611,7 +611,7 @@ server cluster Actions = 37 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -635,7 +635,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -691,20 +691,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -765,13 +765,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -779,7 +779,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -858,7 +858,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -873,12 +873,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -896,13 +896,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -916,7 +916,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -952,7 +952,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -966,20 +966,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -1063,38 +1063,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -1145,7 +1145,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1153,7 +1153,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1209,7 +1209,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -1225,7 +1225,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -1234,13 +1234,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1349,13 +1349,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1363,7 +1363,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1386,7 +1386,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1396,7 +1396,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1410,7 +1410,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1418,14 +1418,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1485,7 +1485,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1513,19 +1513,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1535,7 +1535,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1628,19 +1628,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1649,7 +1649,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1659,7 +1659,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1692,7 +1692,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1705,7 +1705,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1733,7 +1733,7 @@ server cluster EthernetNetworkDiagnostics = 55 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -1783,13 +1783,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1819,12 +1819,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1935,12 +1935,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -2055,7 +2055,7 @@ server cluster BooleanState = 69 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster ModeSelect = 80 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2090,7 +2090,7 @@ server cluster ModeSelect = 80 { /** Attributes and commands for configuring the temperature control, and reporting temperature. */ server cluster TemperatureControl = 86 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureNumber = 0x1; kTemperatureLevel = 0x2; kTemperatureStep = 0x4; @@ -2115,7 +2115,7 @@ server cluster TemperatureControl = 86 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -2126,13 +2126,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -2141,20 +2141,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -2169,7 +2169,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -2179,7 +2179,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -2197,7 +2197,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -2207,21 +2207,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -2230,7 +2230,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -2239,7 +2239,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -2253,7 +2253,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -2261,7 +2261,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -2269,7 +2269,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -2277,7 +2277,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -2290,13 +2290,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -2309,7 +2309,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2319,19 +2319,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -2340,7 +2340,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -2351,7 +2351,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -2359,14 +2359,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -2380,7 +2380,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -2390,13 +2390,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -2406,7 +2406,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -2416,7 +2416,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -2424,7 +2424,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2434,7 +2434,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -2519,7 +2519,7 @@ server cluster DoorLock = 257 { /** Provides an interface for controlling and adjusting automatic window coverings. */ server cluster WindowCovering = 258 { - enum EndProductType : ENUM8 { + enum EndProductType : enum8 { kRollerShade = 0; kRomanShade = 1; kBalloonShade = 2; @@ -2547,7 +2547,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - enum Type : ENUM8 { + enum Type : enum8 { kRollerShade = 0; kRollerShade2Motor = 1; kRollerShadeExterior = 2; @@ -2561,7 +2561,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - bitmap ConfigStatus : BITMAP8 { + bitmap ConfigStatus : bitmap8 { kOperational = 0x1; kOnlineReserved = 0x2; kLiftMovementReversed = 0x4; @@ -2571,7 +2571,7 @@ server cluster WindowCovering = 258 { kTiltEncoderControlled = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLift = 0x1; kTilt = 0x2; kPositionAwareLift = 0x4; @@ -2579,20 +2579,20 @@ server cluster WindowCovering = 258 { kPositionAwareTilt = 0x10; } - bitmap Mode : BITMAP8 { + bitmap Mode : bitmap8 { kMotorDirectionReversed = 0x1; kCalibrationMode = 0x2; kMaintenanceMode = 0x4; kLedFeedback = 0x8; } - bitmap OperationalStatus : BITMAP8 { + bitmap OperationalStatus : bitmap8 { kGlobal = 0x3; kLift = 0xC; kTilt = 0x30; } - bitmap SafetyStatus : BITMAP16 { + bitmap SafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTamperDetection = 0x2; kFailedCommunication = 0x4; @@ -2626,7 +2626,7 @@ server cluster WindowCovering = 258 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -2635,14 +2635,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -2652,7 +2652,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -2734,13 +2734,13 @@ server cluster PumpConfigurationAndControl = 512 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -2749,13 +2749,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -2767,7 +2767,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2778,7 +2778,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -2788,7 +2788,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -2820,12 +2820,12 @@ server cluster Thermostat = 513 { /** An interface for controlling a fan in a heating/cooling system. */ provisional server cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -2835,7 +2835,7 @@ provisional server cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -2844,12 +2844,12 @@ provisional server cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -2858,13 +2858,13 @@ provisional server cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } @@ -2895,53 +2895,53 @@ server cluster ThermostatUserInterfaceConfiguration = 516 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -2949,14 +2949,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -2979,12 +2979,12 @@ server cluster ColorControl = 768 { /** Attributes and commands for configuring a lighting ballast. */ provisional server cluster BallastConfiguration = 769 { - bitmap BallastStatusBitmap : BITMAP8 { + bitmap BallastStatusBitmap : bitmap8 { kBallastNonOperational = 0x1; kLampFailure = 0x2; } - bitmap LampAlarmModeBitmap : BITMAP8 { + bitmap LampAlarmModeBitmap : bitmap8 { kLampBurnHours = 0x1; } @@ -3003,7 +3003,7 @@ provisional server cluster BallastConfiguration = 769 { /** Attributes and commands for configuring the measurement of illuminance, and reporting illuminance measurements. */ server cluster IlluminanceMeasurement = 1024 { - enum LightSensorTypeEnum : ENUM8 { + enum LightSensorTypeEnum : enum8 { kPhotodiode = 0; kCMOS = 1; } @@ -3034,7 +3034,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -3077,18 +3077,18 @@ server cluster RelativeHumidityMeasurement = 1029 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ server cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; @@ -3117,17 +3117,17 @@ server cluster WakeOnLan = 1283 { /** This cluster provides an interface for controlling the current Channel on a device. */ server cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -3169,7 +3169,7 @@ server cluster Channel = 1284 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ server cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -3203,7 +3203,7 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -3212,14 +3212,14 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -3249,7 +3249,7 @@ server cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ server cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -3264,7 +3264,7 @@ server cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -3307,7 +3307,7 @@ server cluster LowPower = 1288 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ server cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -3396,13 +3396,13 @@ server cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -3428,18 +3428,18 @@ server cluster KeypadInput = 1289 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -3456,12 +3456,12 @@ server cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -3512,7 +3512,7 @@ server cluster ContentLauncher = 1290 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ server cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -3521,7 +3521,7 @@ server cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -3549,13 +3549,13 @@ server cluster AudioOutput = 1291 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -3601,7 +3601,7 @@ server cluster ApplicationLauncher = 1292 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ server cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; @@ -3655,42 +3655,42 @@ server cluster AccountLogin = 1294 { /** The Test Cluster is meant to validate the generated code */ internal server cluster UnitTesting = 4294048773 { - enum SimpleEnum : ENUM8 { + enum SimpleEnum : enum8 { kUnspecified = 0; kValueA = 1; kValueB = 2; kValueC = 3; } - bitmap Bitmap16MaskMap : BITMAP16 { + bitmap Bitmap16MaskMap : bitmap16 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x4000; } - bitmap Bitmap32MaskMap : BITMAP32 { + bitmap Bitmap32MaskMap : bitmap32 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x40000000; } - bitmap Bitmap64MaskMap : BITMAP64 { + bitmap Bitmap64MaskMap : bitmap64 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x4000000000000000; } - bitmap Bitmap8MaskMap : BITMAP8 { + bitmap Bitmap8MaskMap : bitmap8 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x40; } - bitmap SimpleBitmap : BITMAP8 { + bitmap SimpleBitmap : bitmap8 { kValueA = 0x1; kValueB = 0x2; kValueC = 0x4; diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index b7fa59ec98c131..ab58f23b7de890 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,33 +49,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -94,23 +94,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -202,7 +202,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -254,13 +254,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ client cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -268,7 +268,7 @@ client cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -327,13 +327,13 @@ client cluster AccessControl = 31 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -341,7 +341,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -397,19 +397,19 @@ server cluster AccessControl = 31 { /** This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information. */ server cluster Actions = 37 { - enum ActionErrorEnum : ENUM8 { + enum ActionErrorEnum : enum8 { kUnknown = 0; kInterrupted = 1; } - enum ActionStateEnum : ENUM8 { + enum ActionStateEnum : enum8 { kInactive = 0; kActive = 1; kPaused = 2; kDisabled = 3; } - enum ActionTypeEnum : ENUM8 { + enum ActionTypeEnum : enum8 { kOther = 0; kScene = 1; kSequence = 2; @@ -419,13 +419,13 @@ server cluster Actions = 37 { kAlarm = 6; } - enum EndpointListTypeEnum : ENUM8 { + enum EndpointListTypeEnum : enum8 { kOther = 0; kRoom = 1; kZone = 2; } - bitmap CommandBits : BITMAP16 { + bitmap CommandBits : bitmap16 { kInstantAction = 0x1; kInstantActionWithTransition = 0x2; kStartAction = 0x4; @@ -491,7 +491,7 @@ server cluster Actions = 37 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -515,7 +515,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -596,7 +596,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -611,12 +611,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -636,13 +636,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -657,7 +657,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -665,7 +665,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -721,7 +721,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -737,7 +737,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -746,13 +746,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -861,13 +861,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -875,7 +875,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -898,7 +898,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -908,7 +908,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -922,7 +922,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -930,14 +930,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1003,7 +1003,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1035,19 +1035,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1057,7 +1057,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1196,19 +1196,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1217,7 +1217,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1227,7 +1227,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1268,7 +1268,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1281,7 +1281,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1309,7 +1309,7 @@ server cluster EthernetNetworkDiagnostics = 55 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -1360,13 +1360,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1401,12 +1401,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1517,12 +1517,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter index 1b47f3788f1da6..4a1eaf789ea786 100644 --- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter +++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -161,23 +161,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -262,7 +262,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -314,13 +314,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -328,7 +328,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -386,7 +386,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -410,7 +410,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -473,20 +473,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -547,13 +547,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -561,7 +561,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -640,7 +640,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -655,12 +655,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -677,7 +677,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -685,7 +685,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -741,13 +741,13 @@ server cluster GeneralCommissioning = 48 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -755,7 +755,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -778,7 +778,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -788,7 +788,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -802,7 +802,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -810,14 +810,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -883,7 +883,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -917,19 +917,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -939,7 +939,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1080,19 +1080,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1101,7 +1101,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1111,7 +1111,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1154,7 +1154,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1167,7 +1167,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1193,13 +1193,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1234,12 +1234,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1350,12 +1350,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1439,18 +1439,18 @@ server cluster FixedLabel = 64 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ client cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index 3e798fbc65b9c1..2da641921c68d5 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,7 +310,7 @@ server cluster BasicInformation = 40 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -318,7 +318,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -374,7 +374,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -390,7 +390,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -399,13 +399,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -514,13 +514,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -528,7 +528,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -551,7 +551,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -561,7 +561,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -575,7 +575,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -583,14 +583,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -656,13 +656,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -697,12 +697,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -813,12 +813,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -885,7 +885,7 @@ server cluster GroupKeyManagement = 63 { /** Attributes for reporting air quality classification */ server cluster AirQuality = 91 { - enum AirQualityEnum : ENUM8 { + enum AirQualityEnum : enum8 { kUnknown = 0; kGood = 1; kFair = 2; @@ -895,7 +895,7 @@ server cluster AirQuality = 91 { kExtremelyPoor = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kFair = 0x1; kModerate = 0x2; kVeryPoor = 0x4; @@ -913,18 +913,18 @@ server cluster AirQuality = 91 { /** Attributes and commands for monitoring HEPA filters in a device */ server cluster HepaFilterMonitoring = 113 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -932,7 +932,7 @@ server cluster HepaFilterMonitoring = 113 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -957,18 +957,18 @@ server cluster HepaFilterMonitoring = 113 { /** Attributes and commands for monitoring activated carbon filters in a device */ server cluster ActivatedCarbonFilterMonitoring = 114 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -976,7 +976,7 @@ server cluster ActivatedCarbonFilterMonitoring = 114 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -1001,13 +1001,13 @@ server cluster ActivatedCarbonFilterMonitoring = 114 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1016,13 +1016,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1034,7 +1034,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1045,7 +1045,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -1055,7 +1055,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -1089,12 +1089,12 @@ server cluster Thermostat = 513 { /** An interface for controlling a fan in a heating/cooling system. */ provisional server cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -1104,7 +1104,7 @@ provisional server cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -1113,12 +1113,12 @@ provisional server cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -1127,13 +1127,13 @@ provisional server cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } @@ -1186,7 +1186,7 @@ server cluster RelativeHumidityMeasurement = 1029 { /** Attributes for reporting carbon monoxide concentration measurements */ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1194,13 +1194,13 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1211,7 +1211,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1240,7 +1240,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { /** Attributes for reporting carbon dioxide concentration measurements */ server cluster CarbonDioxideConcentrationMeasurement = 1037 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1248,13 +1248,13 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1265,7 +1265,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1294,7 +1294,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { /** Attributes for reporting nitrogen dioxide concentration measurements */ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1302,13 +1302,13 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1319,7 +1319,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1348,7 +1348,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { /** Attributes for reporting ozone concentration measurements */ server cluster OzoneConcentrationMeasurement = 1045 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1356,13 +1356,13 @@ server cluster OzoneConcentrationMeasurement = 1045 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1373,7 +1373,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1402,7 +1402,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { /** Attributes for reporting PM2.5 concentration measurements */ server cluster Pm25ConcentrationMeasurement = 1066 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1410,13 +1410,13 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1427,7 +1427,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1456,7 +1456,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { /** Attributes for reporting formaldehyde concentration measurements */ server cluster FormaldehydeConcentrationMeasurement = 1067 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1464,13 +1464,13 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1481,7 +1481,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1510,7 +1510,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { /** Attributes for reporting PM1 concentration measurements */ server cluster Pm1ConcentrationMeasurement = 1068 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1518,13 +1518,13 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1535,7 +1535,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1564,7 +1564,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { /** Attributes for reporting PM10 concentration measurements */ server cluster Pm10ConcentrationMeasurement = 1069 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1572,13 +1572,13 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1589,7 +1589,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1618,7 +1618,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { /** Attributes for reporting total volatile organic compounds concentration measurements */ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1626,13 +1626,13 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1643,7 +1643,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1672,7 +1672,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { /** Attributes for reporting radon concentration measurements */ server cluster RadonConcentrationMeasurement = 1071 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1680,13 +1680,13 @@ server cluster RadonConcentrationMeasurement = 1071 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1697,7 +1697,7 @@ server cluster RadonConcentrationMeasurement = 1071 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; diff --git a/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter index ebe77f6be91ead..c65c69aa5fac3d 100644 --- a/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter +++ b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,7 +43,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -76,13 +76,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -90,7 +90,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -148,7 +148,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -172,7 +172,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -235,20 +235,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -309,13 +309,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -323,7 +323,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -402,7 +402,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -417,12 +417,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -439,7 +439,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -447,7 +447,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -503,7 +503,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -519,7 +519,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -528,13 +528,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -643,13 +643,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -657,7 +657,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -680,7 +680,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -690,7 +690,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -704,7 +704,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -712,14 +712,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -785,7 +785,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -819,13 +819,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -860,12 +860,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -976,12 +976,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1065,7 +1065,7 @@ server cluster FixedLabel = 64 { /** Attributes for reporting air quality classification */ server cluster AirQuality = 91 { - enum AirQualityEnum : ENUM8 { + enum AirQualityEnum : enum8 { kUnknown = 0; kGood = 1; kFair = 2; @@ -1075,7 +1075,7 @@ server cluster AirQuality = 91 { kExtremelyPoor = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kFair = 0x1; kModerate = 0x2; kVeryPoor = 0x4; @@ -1121,7 +1121,7 @@ server cluster RelativeHumidityMeasurement = 1029 { /** Attributes for reporting carbon monoxide concentration measurements */ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1129,13 +1129,13 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1146,7 +1146,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1176,7 +1176,7 @@ server cluster CarbonMonoxideConcentrationMeasurement = 1036 { /** Attributes for reporting carbon dioxide concentration measurements */ server cluster CarbonDioxideConcentrationMeasurement = 1037 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1184,13 +1184,13 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1201,7 +1201,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1231,7 +1231,7 @@ server cluster CarbonDioxideConcentrationMeasurement = 1037 { /** Attributes for reporting nitrogen dioxide concentration measurements */ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1239,13 +1239,13 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1256,7 +1256,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1286,7 +1286,7 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 { /** Attributes for reporting ozone concentration measurements */ server cluster OzoneConcentrationMeasurement = 1045 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1294,13 +1294,13 @@ server cluster OzoneConcentrationMeasurement = 1045 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1311,7 +1311,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1341,7 +1341,7 @@ server cluster OzoneConcentrationMeasurement = 1045 { /** Attributes for reporting PM2.5 concentration measurements */ server cluster Pm25ConcentrationMeasurement = 1066 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1349,13 +1349,13 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1366,7 +1366,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1396,7 +1396,7 @@ server cluster Pm25ConcentrationMeasurement = 1066 { /** Attributes for reporting formaldehyde concentration measurements */ server cluster FormaldehydeConcentrationMeasurement = 1067 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1404,13 +1404,13 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1421,7 +1421,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1451,7 +1451,7 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 { /** Attributes for reporting PM1 concentration measurements */ server cluster Pm1ConcentrationMeasurement = 1068 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1459,13 +1459,13 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1476,7 +1476,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1506,7 +1506,7 @@ server cluster Pm1ConcentrationMeasurement = 1068 { /** Attributes for reporting PM10 concentration measurements */ server cluster Pm10ConcentrationMeasurement = 1069 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1514,13 +1514,13 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1531,7 +1531,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1561,7 +1561,7 @@ server cluster Pm10ConcentrationMeasurement = 1069 { /** Attributes for reporting total volatile organic compounds concentration measurements */ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1569,13 +1569,13 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1586,7 +1586,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -1616,7 +1616,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { /** Attributes for reporting radon concentration measurements */ server cluster RadonConcentrationMeasurement = 1071 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -1624,13 +1624,13 @@ server cluster RadonConcentrationMeasurement = 1071 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -1641,7 +1641,7 @@ server cluster RadonConcentrationMeasurement = 1071 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; diff --git a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter index 14d207c47ed05e..11eef7f41cb6c8 100644 --- a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter +++ b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter @@ -3,33 +3,33 @@ /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -48,7 +48,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -81,13 +81,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -95,7 +95,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -153,7 +153,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -177,7 +177,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -240,20 +240,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -314,13 +314,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -328,7 +328,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -407,7 +407,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -422,12 +422,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -444,7 +444,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -452,7 +452,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -508,7 +508,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -524,7 +524,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -533,13 +533,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -648,13 +648,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -662,7 +662,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -685,7 +685,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -695,7 +695,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -709,7 +709,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -717,14 +717,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -790,7 +790,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -824,13 +824,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -865,12 +865,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -981,12 +981,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1080,17 +1080,17 @@ server cluster WakeOnLan = 1283 { /** This cluster provides an interface for controlling the current Channel on a device. */ server cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -1145,7 +1145,7 @@ server cluster Channel = 1284 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ server cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -1179,7 +1179,7 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -1188,14 +1188,14 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -1225,7 +1225,7 @@ server cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ server cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -1240,7 +1240,7 @@ server cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -1283,7 +1283,7 @@ server cluster LowPower = 1288 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ server cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -1372,13 +1372,13 @@ server cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -1404,7 +1404,7 @@ server cluster KeypadInput = 1289 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ server cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -1413,7 +1413,7 @@ server cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } diff --git a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter index 15936224e0275b..3def96eec50970 100644 --- a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter +++ b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,23 +181,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -280,7 +280,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -313,13 +313,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -327,7 +327,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -385,7 +385,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -409,7 +409,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -472,20 +472,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -546,13 +546,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -560,7 +560,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -621,7 +621,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -629,7 +629,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -685,7 +685,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -701,7 +701,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -710,13 +710,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -825,13 +825,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -839,7 +839,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -862,7 +862,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -872,7 +872,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -886,7 +886,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -894,14 +894,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -967,7 +967,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1001,13 +1001,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1042,12 +1042,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1158,12 +1158,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1230,53 +1230,53 @@ server cluster GroupKeyManagement = 63 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1284,14 +1284,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter index a6800b206bf5e9..3e625cd72dbc03 100644 --- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter +++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,7 +112,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -164,13 +164,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -178,7 +178,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -236,7 +236,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -260,7 +260,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -323,20 +323,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -397,13 +397,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -411,7 +411,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -490,7 +490,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -505,12 +505,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -527,7 +527,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -535,7 +535,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -591,7 +591,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -607,7 +607,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -616,13 +616,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -731,13 +731,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -745,7 +745,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -768,7 +768,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -778,7 +778,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -792,7 +792,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -800,14 +800,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -873,7 +873,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -907,13 +907,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -948,12 +948,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1064,12 +1064,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter index e5a2b61e0d9b52..43531e46fe8b87 100644 --- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter +++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -161,23 +161,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -262,7 +262,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -314,13 +314,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -328,7 +328,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -386,7 +386,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -410,7 +410,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -473,20 +473,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -547,13 +547,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -561,7 +561,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -640,7 +640,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -655,12 +655,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -677,7 +677,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -685,7 +685,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -741,7 +741,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -757,7 +757,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -766,13 +766,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -881,13 +881,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -895,7 +895,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -918,7 +918,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -928,7 +928,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -942,7 +942,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -950,14 +950,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1023,7 +1023,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1057,13 +1057,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1098,12 +1098,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1214,12 +1214,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1303,18 +1303,18 @@ server cluster FixedLabel = 64 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ client cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter b/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter index 774a44155a7f04..aa912683189e60 100644 --- a/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter +++ b/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,7 +49,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -82,13 +82,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -96,7 +96,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -154,7 +154,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -178,7 +178,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -260,7 +260,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -275,12 +275,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -298,13 +298,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -319,7 +319,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -327,7 +327,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -383,7 +383,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -399,7 +399,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -408,13 +408,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -523,7 +523,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -533,7 +533,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -547,7 +547,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -555,14 +555,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -628,19 +628,19 @@ server cluster GeneralDiagnostics = 51 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -649,7 +649,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -659,7 +659,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -702,13 +702,13 @@ server cluster WiFiNetworkDiagnostics = 54 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -743,12 +743,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -859,12 +859,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -931,14 +931,14 @@ server cluster GroupKeyManagement = 63 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of any device where a state machine is a part of the operation. */ server cluster OperationalState = 96 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kNoError = 0; kUnableToStartOrResume = 1; kUnableToCompleteOperation = 2; kCommandInvalidInState = 3; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kStopped = 0; kRunning = 1; kPaused = 2; diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter index c0d5c38342488d..34aae974d8680f 100644 --- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter +++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,7 +112,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -164,13 +164,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -178,7 +178,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -236,7 +236,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -260,7 +260,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -323,20 +323,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -397,13 +397,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -411,7 +411,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -490,7 +490,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -505,12 +505,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -527,7 +527,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -535,7 +535,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -591,7 +591,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -607,7 +607,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -616,13 +616,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -731,13 +731,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -745,7 +745,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -768,7 +768,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -778,7 +778,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -792,7 +792,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -800,14 +800,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -873,7 +873,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -907,13 +907,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -948,12 +948,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1064,12 +1064,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1153,7 +1153,7 @@ server cluster FixedLabel = 64 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -1164,13 +1164,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -1179,20 +1179,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -1207,7 +1207,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -1217,7 +1217,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -1235,7 +1235,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -1245,21 +1245,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1268,7 +1268,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -1277,7 +1277,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -1291,7 +1291,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -1299,7 +1299,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -1307,7 +1307,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -1315,7 +1315,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -1328,13 +1328,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1347,7 +1347,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1357,19 +1357,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -1378,7 +1378,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1389,7 +1389,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1397,14 +1397,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -1418,7 +1418,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1428,13 +1428,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1444,7 +1444,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1454,7 +1454,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -1462,7 +1462,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1472,7 +1472,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; diff --git a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter index 49523746c44796..0bbd46559813a6 100644 --- a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter +++ b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -161,23 +161,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -262,7 +262,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -314,13 +314,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -328,7 +328,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -386,7 +386,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -410,7 +410,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -473,20 +473,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -547,13 +547,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -561,7 +561,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -640,7 +640,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -655,12 +655,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -677,7 +677,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -685,7 +685,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -741,7 +741,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -757,7 +757,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -766,13 +766,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -881,13 +881,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -895,7 +895,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -918,7 +918,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -928,7 +928,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -942,7 +942,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -950,14 +950,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1023,7 +1023,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1057,13 +1057,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1098,12 +1098,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1214,12 +1214,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1303,53 +1303,53 @@ server cluster FixedLabel = 64 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1357,14 +1357,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter index af74d9b8417c8f..6328a9d11b3dec 100644 --- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter +++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,20 +310,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -384,13 +384,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -398,7 +398,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -477,7 +477,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -492,12 +492,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -514,7 +514,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -522,7 +522,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -578,7 +578,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -594,7 +594,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -603,13 +603,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -718,13 +718,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -732,7 +732,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -755,7 +755,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -765,7 +765,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -779,7 +779,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -787,14 +787,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -860,7 +860,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -894,13 +894,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -935,12 +935,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1051,12 +1051,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1140,12 +1140,12 @@ server cluster FixedLabel = 64 { /** An interface for controlling a fan in a heating/cooling system. */ provisional server cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -1155,7 +1155,7 @@ provisional server cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -1164,12 +1164,12 @@ provisional server cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -1178,13 +1178,13 @@ provisional server cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter index 4355a693b2445e..1d76400bec6412 100644 --- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter +++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ client cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ client cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -170,13 +170,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -184,7 +184,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -242,7 +242,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -266,7 +266,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -329,20 +329,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -403,13 +403,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -417,7 +417,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -496,7 +496,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -511,12 +511,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -533,7 +533,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -541,7 +541,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -597,7 +597,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -613,7 +613,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -622,13 +622,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -737,13 +737,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -751,7 +751,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -774,7 +774,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -784,7 +784,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -798,7 +798,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -806,14 +806,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -879,7 +879,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -913,13 +913,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -954,12 +954,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1070,12 +1070,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter b/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter index edf34ad242a2da..05ed94e5c1d4c3 100644 --- a/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter +++ b/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,7 +49,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -82,13 +82,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -96,7 +96,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -154,7 +154,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -178,7 +178,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -241,7 +241,7 @@ server cluster BasicInformation = 40 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -249,7 +249,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -305,7 +305,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -321,7 +321,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -330,13 +330,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -445,13 +445,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -459,7 +459,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -482,7 +482,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -492,7 +492,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -506,7 +506,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -514,14 +514,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -589,7 +589,7 @@ server cluster GeneralDiagnostics = 51 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -639,13 +639,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -680,12 +680,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -796,12 +796,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index f2b3878dda758d..a767ffd8f2d60f 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -157,23 +157,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -256,7 +256,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -308,13 +308,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -322,7 +322,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -380,7 +380,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -404,7 +404,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -467,20 +467,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -541,13 +541,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -555,7 +555,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -634,7 +634,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -649,12 +649,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -671,7 +671,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -679,7 +679,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -735,7 +735,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -751,7 +751,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -760,13 +760,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -875,13 +875,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -889,7 +889,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -912,7 +912,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -922,7 +922,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -936,7 +936,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -944,14 +944,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1017,7 +1017,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1051,13 +1051,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1092,12 +1092,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1208,12 +1208,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1297,13 +1297,13 @@ server cluster FixedLabel = 64 { /** An interface for configuring and controlling the functionality of a thermostat. */ client cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1312,13 +1312,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1330,7 +1330,7 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1341,7 +1341,7 @@ client cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -1351,7 +1351,7 @@ client cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -1454,12 +1454,12 @@ client cluster Thermostat = 513 { /** An interface for controlling a fan in a heating/cooling system. */ provisional server cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -1469,7 +1469,7 @@ provisional server cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -1478,12 +1478,12 @@ provisional server cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -1492,13 +1492,13 @@ provisional server cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter index 2fddc929581459..bc3a828b383f8a 100644 --- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter +++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ client cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ client cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -170,13 +170,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -184,7 +184,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -242,7 +242,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -266,7 +266,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -329,20 +329,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -403,13 +403,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -417,7 +417,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -496,7 +496,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -511,12 +511,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -533,7 +533,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -541,7 +541,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -597,7 +597,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -613,7 +613,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -622,13 +622,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -737,13 +737,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -751,7 +751,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -774,7 +774,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -784,7 +784,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -798,7 +798,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -806,14 +806,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -879,7 +879,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -913,13 +913,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -954,12 +954,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1070,12 +1070,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter b/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter index a4a7556ea57b0c..a1830f00647c8e 100644 --- a/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter +++ b/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,7 +49,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -82,13 +82,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -96,7 +96,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -154,7 +154,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -178,7 +178,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -260,7 +260,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -275,12 +275,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -298,13 +298,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -319,7 +319,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -327,7 +327,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -383,7 +383,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -399,7 +399,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -408,13 +408,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -523,7 +523,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -533,7 +533,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -547,7 +547,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -555,14 +555,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -628,19 +628,19 @@ server cluster GeneralDiagnostics = 51 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -649,7 +649,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -659,7 +659,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -702,13 +702,13 @@ server cluster WiFiNetworkDiagnostics = 54 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -743,12 +743,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -859,12 +859,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -931,14 +931,14 @@ server cluster GroupKeyManagement = 63 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of any device where a state machine is a part of the operation. */ server cluster OperationalState = 96 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kNoError = 0; kUnableToStartOrResume = 1; kUnableToCompleteOperation = 2; kCommandInvalidInState = 3; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kStopped = 0; kRunning = 1; kPaused = 2; diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter index c045f9a0cf3add..3b318f563e146b 100644 --- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter +++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ client cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ client cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -170,13 +170,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -184,7 +184,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -242,7 +242,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -266,7 +266,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -329,20 +329,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -403,13 +403,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -417,7 +417,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -496,7 +496,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -511,12 +511,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -533,7 +533,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -541,7 +541,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -597,7 +597,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -613,7 +613,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -622,13 +622,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -737,13 +737,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -751,7 +751,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -774,7 +774,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -784,7 +784,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -798,7 +798,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -806,14 +806,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -879,7 +879,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -913,13 +913,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -954,12 +954,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1070,12 +1070,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1159,7 +1159,7 @@ server cluster FixedLabel = 64 { /** Attributes and commands for configuring the measurement of illuminance, and reporting illuminance measurements. */ server cluster IlluminanceMeasurement = 1024 { - enum LightSensorTypeEnum : ENUM8 { + enum LightSensorTypeEnum : enum8 { kPhotodiode = 0; kCMOS = 1; } diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter index 1e3b8a50836415..6b98cce8557b41 100644 --- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter +++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ client cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ client cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -170,13 +170,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -184,7 +184,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -242,7 +242,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -266,7 +266,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -329,20 +329,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -403,13 +403,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -417,7 +417,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -496,7 +496,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -511,12 +511,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -533,7 +533,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -541,7 +541,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -597,7 +597,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -613,7 +613,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -622,13 +622,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -737,13 +737,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -751,7 +751,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -774,7 +774,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -784,7 +784,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -798,7 +798,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -806,14 +806,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -879,7 +879,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -913,13 +913,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -954,12 +954,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1070,12 +1070,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1159,18 +1159,18 @@ server cluster FixedLabel = 64 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ server cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter index 11dbf7f887a8fc..5a5d04eced1b8a 100644 --- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter +++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -161,23 +161,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -262,7 +262,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -314,13 +314,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -328,7 +328,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -386,7 +386,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -410,7 +410,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -473,20 +473,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -547,13 +547,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -561,7 +561,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -640,7 +640,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -655,12 +655,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -677,7 +677,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -685,7 +685,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -741,7 +741,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -757,7 +757,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -766,13 +766,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -881,13 +881,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -895,7 +895,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -918,7 +918,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -928,7 +928,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -942,7 +942,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -950,14 +950,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1023,7 +1023,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1057,13 +1057,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1098,12 +1098,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1214,12 +1214,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_onofflight_samplemei.matter b/examples/chef/devices/rootnode_onofflight_samplemei.matter index a06418d6d3b914..6f73c3526e7bb3 100644 --- a/examples/chef/devices/rootnode_onofflight_samplemei.matter +++ b/examples/chef/devices/rootnode_onofflight_samplemei.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -161,23 +161,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -262,7 +262,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -314,13 +314,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -328,7 +328,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -386,7 +386,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -410,7 +410,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -473,20 +473,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -547,13 +547,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -561,7 +561,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -640,7 +640,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -655,12 +655,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -677,7 +677,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -685,7 +685,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -741,7 +741,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -757,7 +757,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -766,13 +766,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -881,13 +881,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -895,7 +895,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -918,7 +918,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -928,7 +928,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -942,7 +942,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -950,14 +950,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1023,7 +1023,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1057,13 +1057,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1098,12 +1098,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1214,12 +1214,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter index 29df2051187b2a..081ead537c1caa 100644 --- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter +++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,33 +181,33 @@ client cluster OnOff = 6 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -226,7 +226,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -278,13 +278,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -292,7 +292,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -350,7 +350,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -374,7 +374,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -437,20 +437,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -511,13 +511,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -525,7 +525,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -604,7 +604,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -619,12 +619,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -641,7 +641,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -649,7 +649,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -705,7 +705,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -721,7 +721,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -730,13 +730,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -845,13 +845,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -859,7 +859,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -882,7 +882,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -892,7 +892,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -906,7 +906,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -914,14 +914,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -987,7 +987,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1021,13 +1021,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1062,12 +1062,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1178,12 +1178,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter index bb008e5502862e..ee76290b4b76d2 100644 --- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter +++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -161,7 +161,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -213,13 +213,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -227,7 +227,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -285,7 +285,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -309,7 +309,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -372,20 +372,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -446,13 +446,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -460,7 +460,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -539,7 +539,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -554,12 +554,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -576,7 +576,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -584,7 +584,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -640,7 +640,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -656,7 +656,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -665,13 +665,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -780,13 +780,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -794,7 +794,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -817,7 +817,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -827,7 +827,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -841,7 +841,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -849,14 +849,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -922,7 +922,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -956,13 +956,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -997,12 +997,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1113,12 +1113,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter index 3b413ff0c170a1..f9da8c0aa4de63 100644 --- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter +++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ client cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ client cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -170,13 +170,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -184,7 +184,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -242,7 +242,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -266,7 +266,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -329,20 +329,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -403,13 +403,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -417,7 +417,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -496,7 +496,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -511,12 +511,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -533,7 +533,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -541,7 +541,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -597,7 +597,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -613,7 +613,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -622,13 +622,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -737,13 +737,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -751,7 +751,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -774,7 +774,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -784,7 +784,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -798,7 +798,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -806,14 +806,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -879,7 +879,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -913,13 +913,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -954,12 +954,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1070,12 +1070,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1175,7 +1175,7 @@ server cluster UserLabel = 65 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } diff --git a/examples/chef/devices/rootnode_pump_5f904818cc.matter b/examples/chef/devices/rootnode_pump_5f904818cc.matter index 7ff08e6e8d9b44..7d927a4ef4e2b5 100644 --- a/examples/chef/devices/rootnode_pump_5f904818cc.matter +++ b/examples/chef/devices/rootnode_pump_5f904818cc.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,33 +49,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -94,7 +94,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -127,13 +127,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -141,7 +141,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -199,7 +199,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -223,7 +223,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -297,7 +297,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -312,12 +312,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -335,13 +335,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -355,7 +355,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -363,7 +363,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -419,7 +419,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -435,7 +435,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -444,13 +444,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -559,7 +559,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -569,7 +569,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -583,7 +583,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -591,14 +591,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -658,13 +658,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -699,12 +699,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -815,12 +815,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -887,7 +887,7 @@ server cluster GroupKeyManagement = 63 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -896,14 +896,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -913,7 +913,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -1011,7 +1011,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } diff --git a/examples/chef/devices/rootnode_pump_a811bb33a0.matter b/examples/chef/devices/rootnode_pump_a811bb33a0.matter index 4676a684bbbc0f..3bb9ba1c1018fd 100644 --- a/examples/chef/devices/rootnode_pump_a811bb33a0.matter +++ b/examples/chef/devices/rootnode_pump_a811bb33a0.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,33 +49,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -94,7 +94,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -127,13 +127,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -141,7 +141,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -199,7 +199,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -223,7 +223,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -297,7 +297,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -312,12 +312,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -335,13 +335,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -355,7 +355,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -363,7 +363,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -419,7 +419,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -435,7 +435,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -444,13 +444,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -559,7 +559,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -569,7 +569,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -583,7 +583,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -591,14 +591,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -658,13 +658,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -699,12 +699,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -815,12 +815,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -887,7 +887,7 @@ server cluster GroupKeyManagement = 63 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -896,14 +896,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -913,7 +913,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; diff --git a/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter b/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter index 2a4b5767b2adcd..6d29433fcc2302 100644 --- a/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter +++ b/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,7 +49,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -82,13 +82,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -96,7 +96,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -154,7 +154,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -178,7 +178,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -260,7 +260,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -275,12 +275,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -298,13 +298,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -319,7 +319,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -327,7 +327,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -383,7 +383,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -399,7 +399,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -408,13 +408,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -523,7 +523,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -533,7 +533,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -547,7 +547,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -555,14 +555,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -628,19 +628,19 @@ server cluster GeneralDiagnostics = 51 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -649,7 +649,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -659,7 +659,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -702,13 +702,13 @@ server cluster WiFiNetworkDiagnostics = 54 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -743,12 +743,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -859,12 +859,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -931,7 +931,7 @@ server cluster GroupKeyManagement = 63 { /** Attributes and commands for configuring the temperature control, and reporting temperature. */ server cluster TemperatureControl = 86 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureNumber = 0x1; kTemperatureLevel = 0x2; kTemperatureStep = 0x4; diff --git a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter index 789188da2eeeb9..1d557de49aff60 100644 --- a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter +++ b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,14 +118,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -240,7 +240,7 @@ provisional server cluster Scenes = 5 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -273,13 +273,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -287,7 +287,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -345,7 +345,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -369,7 +369,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -432,7 +432,7 @@ server cluster BasicInformation = 40 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -440,7 +440,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -496,7 +496,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -512,7 +512,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -521,13 +521,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -636,13 +636,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -650,7 +650,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -673,7 +673,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -683,7 +683,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -697,7 +697,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -705,14 +705,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -778,13 +778,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -819,12 +819,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -935,12 +935,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1007,12 +1007,12 @@ server cluster GroupKeyManagement = 63 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster RvcRunMode = 84 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kIdle = 16384; kCleaning = 16385; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kStuck = 65; kDustBinMissing = 66; kDustBinFull = 67; @@ -1023,7 +1023,7 @@ server cluster RvcRunMode = 84 { kBatteryLow = 72; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -1063,17 +1063,17 @@ server cluster RvcRunMode = 84 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster RvcCleanMode = 85 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kDeepClean = 16384; kVacuum = 16385; kMop = 16386; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kCleaningInProgress = 64; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -1113,7 +1113,7 @@ server cluster RvcCleanMode = 85 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of a Robotic Vacuum. */ server cluster RvcOperationalState = 97 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kFailedToFindChargingDock = 64; kStuck = 65; kDustBinMissing = 66; @@ -1124,7 +1124,7 @@ server cluster RvcOperationalState = 97 { kMopCleaningPadMissing = 71; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kSeekingCharger = 64; kCharging = 65; kDocked = 66; diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index 29941df8ef18b5..7991c31dde5523 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -163,7 +163,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -196,13 +196,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -210,7 +210,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -268,7 +268,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -292,7 +292,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -355,7 +355,7 @@ server cluster BasicInformation = 40 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -363,7 +363,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -419,7 +419,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -435,7 +435,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -444,13 +444,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -559,13 +559,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -573,7 +573,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -596,7 +596,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -606,7 +606,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -620,7 +620,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -628,14 +628,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -701,13 +701,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -742,12 +742,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -858,12 +858,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -930,13 +930,13 @@ server cluster GroupKeyManagement = 63 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -945,13 +945,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -963,7 +963,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -974,7 +974,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -984,7 +984,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -1020,12 +1020,12 @@ server cluster Thermostat = 513 { /** An interface for controlling a fan in a heating/cooling system. */ provisional server cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -1035,7 +1035,7 @@ provisional server cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -1044,12 +1044,12 @@ provisional server cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -1058,13 +1058,13 @@ provisional server cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } diff --git a/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter b/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter index c26a09fcff0575..4797e1decedccd 100644 --- a/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter +++ b/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,7 +310,7 @@ server cluster BasicInformation = 40 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -346,7 +346,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -360,20 +360,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -457,38 +457,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -542,7 +542,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -550,7 +550,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -606,7 +606,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -622,7 +622,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -631,13 +631,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -746,13 +746,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -760,7 +760,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -783,7 +783,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -793,7 +793,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -807,7 +807,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -815,14 +815,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -888,13 +888,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -929,12 +929,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1045,12 +1045,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1117,25 +1117,25 @@ server cluster GroupKeyManagement = 63 { /** This cluster provides an interface for observing and managing the state of smoke and CO alarms. */ server cluster SmokeCoAlarm = 92 { - enum AlarmStateEnum : ENUM8 { + enum AlarmStateEnum : enum8 { kNormal = 0; kWarning = 1; kCritical = 2; } - enum ContaminationStateEnum : ENUM8 { + enum ContaminationStateEnum : enum8 { kNormal = 0; kLow = 1; kWarning = 2; kCritical = 3; } - enum EndOfServiceEnum : ENUM8 { + enum EndOfServiceEnum : enum8 { kNormal = 0; kExpired = 1; } - enum ExpressedStateEnum : ENUM8 { + enum ExpressedStateEnum : enum8 { kNormal = 0; kSmokeAlarm = 1; kCOAlarm = 2; @@ -1147,18 +1147,18 @@ server cluster SmokeCoAlarm = 92 { kInterconnectCO = 8; } - enum MuteStateEnum : ENUM8 { + enum MuteStateEnum : enum8 { kNotMuted = 0; kMuted = 1; } - enum SensitivityEnum : ENUM8 { + enum SensitivityEnum : enum8 { kHigh = 0; kStandard = 1; kLow = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSmokeAlarm = 0x1; kCOAlarm = 0x2; } diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter index a709b5f8575567..7c83b714f2bb3c 100644 --- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter +++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,33 +43,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -88,23 +88,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -187,7 +187,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -239,13 +239,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -253,7 +253,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -311,7 +311,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -335,7 +335,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -398,20 +398,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -472,13 +472,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -486,7 +486,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -565,7 +565,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -580,12 +580,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -602,7 +602,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -610,7 +610,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -666,7 +666,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -682,7 +682,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -691,13 +691,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -806,13 +806,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -820,7 +820,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -843,7 +843,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -853,7 +853,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -867,7 +867,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -875,14 +875,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -948,7 +948,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -982,13 +982,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1023,12 +1023,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1139,12 +1139,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter index 8386f1ea117b34..1ad1f5e17c41da 100644 --- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter +++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ client cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ client cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -170,13 +170,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -184,7 +184,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -242,7 +242,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -266,7 +266,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -329,20 +329,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -403,13 +403,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -417,7 +417,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -496,7 +496,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -511,12 +511,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -533,7 +533,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -541,7 +541,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -597,7 +597,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -613,7 +613,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -622,13 +622,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -737,13 +737,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -751,7 +751,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -774,7 +774,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -784,7 +784,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -798,7 +798,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -806,14 +806,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -879,7 +879,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -913,13 +913,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -954,12 +954,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1070,12 +1070,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index 57b611204f1081..4747fcac8d84b3 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,7 +112,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -164,13 +164,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -178,7 +178,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -236,7 +236,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -260,7 +260,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -323,20 +323,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -397,13 +397,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -411,7 +411,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -490,7 +490,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -505,12 +505,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -527,7 +527,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -535,7 +535,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -591,7 +591,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -607,7 +607,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -616,13 +616,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -731,13 +731,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -745,7 +745,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -768,7 +768,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -778,7 +778,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -792,7 +792,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -800,14 +800,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -873,7 +873,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -907,13 +907,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -948,12 +948,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1064,12 +1064,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1153,13 +1153,13 @@ server cluster FixedLabel = 64 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1168,13 +1168,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1186,7 +1186,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1197,7 +1197,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -1207,7 +1207,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -1262,12 +1262,12 @@ server cluster Thermostat = 513 { /** An interface for controlling a fan in a heating/cooling system. */ provisional client cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -1277,7 +1277,7 @@ provisional client cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -1286,12 +1286,12 @@ provisional client cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -1300,13 +1300,13 @@ provisional client cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } @@ -1382,18 +1382,18 @@ client cluster RelativeHumidityMeasurement = 1029 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ client cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter index 8ff26857500aae..0e8dde914a4176 100644 --- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter +++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,7 +112,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -164,13 +164,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -178,7 +178,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -236,7 +236,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -260,7 +260,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -323,20 +323,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -397,13 +397,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -411,7 +411,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -490,7 +490,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -505,12 +505,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -527,7 +527,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -535,7 +535,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -591,7 +591,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -607,7 +607,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -616,13 +616,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -731,13 +731,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -745,7 +745,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -768,7 +768,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -778,7 +778,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -792,7 +792,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -800,14 +800,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -873,7 +873,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -907,13 +907,13 @@ server cluster SoftwareDiagnostics = 52 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -948,12 +948,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1064,12 +1064,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1153,7 +1153,7 @@ server cluster FixedLabel = 64 { /** Provides an interface for controlling and adjusting automatic window coverings. */ server cluster WindowCovering = 258 { - enum EndProductType : ENUM8 { + enum EndProductType : enum8 { kRollerShade = 0; kRomanShade = 1; kBalloonShade = 2; @@ -1181,7 +1181,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - enum Type : ENUM8 { + enum Type : enum8 { kRollerShade = 0; kRollerShade2Motor = 1; kRollerShadeExterior = 2; @@ -1195,7 +1195,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - bitmap ConfigStatus : BITMAP8 { + bitmap ConfigStatus : bitmap8 { kOperational = 0x1; kOnlineReserved = 0x2; kLiftMovementReversed = 0x4; @@ -1205,7 +1205,7 @@ server cluster WindowCovering = 258 { kTiltEncoderControlled = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLift = 0x1; kTilt = 0x2; kPositionAwareLift = 0x4; @@ -1213,20 +1213,20 @@ server cluster WindowCovering = 258 { kPositionAwareTilt = 0x10; } - bitmap Mode : BITMAP8 { + bitmap Mode : bitmap8 { kMotorDirectionReversed = 0x1; kCalibrationMode = 0x2; kMaintenanceMode = 0x4; kLedFeedback = 0x8; } - bitmap OperationalStatus : BITMAP8 { + bitmap OperationalStatus : bitmap8 { kGlobal = 0x3; kLift = 0xC; kTilt = 0x30; } - bitmap SafetyStatus : BITMAP16 { + bitmap SafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTamperDetection = 0x2; kFailedCommunication = 0x4; diff --git a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter index 2b972c0f9799d1..39f3fa7643d0dc 100644 --- a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter +++ b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,20 +310,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -384,13 +384,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -398,7 +398,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -477,7 +477,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -492,12 +492,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -514,7 +514,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -522,7 +522,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -578,7 +578,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -594,7 +594,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -603,13 +603,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -718,13 +718,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -732,7 +732,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -755,7 +755,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -765,7 +765,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -779,7 +779,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -787,14 +787,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -860,7 +860,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -894,19 +894,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -916,7 +916,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1057,19 +1057,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1078,7 +1078,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1088,7 +1088,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1131,7 +1131,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1144,7 +1144,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1170,13 +1170,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1211,12 +1211,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1327,12 +1327,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1447,18 +1447,18 @@ server cluster BooleanState = 69 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ server cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter b/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter index 3a010432427e52..d4d01aa6e93969 100644 --- a/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter +++ b/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -170,13 +170,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -184,7 +184,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -242,7 +242,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -266,7 +266,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -348,7 +348,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -363,12 +363,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -386,13 +386,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -407,7 +407,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -415,7 +415,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -471,7 +471,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -487,7 +487,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -496,13 +496,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -611,7 +611,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -621,7 +621,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -635,7 +635,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -643,14 +643,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -716,19 +716,19 @@ server cluster GeneralDiagnostics = 51 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -737,7 +737,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -747,7 +747,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -790,13 +790,13 @@ server cluster WiFiNetworkDiagnostics = 54 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -831,12 +831,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -947,12 +947,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1019,14 +1019,14 @@ server cluster GroupKeyManagement = 63 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of any device where a state machine is a part of the operation. */ server cluster OperationalState = 96 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kNoError = 0; kUnableToStartOrResume = 1; kUnableToCompleteOperation = 2; kCommandInvalidInState = 3; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kStopped = 0; kRunning = 1; kPaused = 2; diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter index f703cbfc4860b7..415f34d6e1a3df 100644 --- a/examples/light-switch-app/light-switch-common/light-switch-app.matter +++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ client cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ client cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -51,7 +51,7 @@ client cluster Identify = 3 { /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -60,11 +60,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -97,11 +97,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -166,14 +166,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional client cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -344,33 +344,33 @@ provisional client cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -413,7 +413,7 @@ client cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -465,13 +465,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -479,7 +479,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -537,7 +537,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -561,7 +561,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -624,20 +624,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -698,13 +698,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -712,7 +712,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -791,7 +791,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -806,12 +806,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -828,7 +828,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -836,7 +836,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -892,7 +892,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -908,7 +908,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -917,13 +917,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1032,13 +1032,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1046,7 +1046,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1069,7 +1069,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1079,7 +1079,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1093,7 +1093,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1101,14 +1101,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1174,7 +1174,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1208,19 +1208,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1230,7 +1230,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1371,19 +1371,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1392,7 +1392,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1402,7 +1402,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1445,7 +1445,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1458,7 +1458,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1484,7 +1484,7 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Accurate time is required for a number of reasons, including scheduling, display and validating security materials. */ server cluster TimeSynchronization = 56 { - enum GranularityEnum : ENUM8 { + enum GranularityEnum : enum8 { kNoTimeGranularity = 0; kMinutesGranularity = 1; kSecondsGranularity = 2; @@ -1492,11 +1492,11 @@ server cluster TimeSynchronization = 56 { kMicrosecondsGranularity = 4; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kTimeNotAccepted = 2; } - enum TimeSourceEnum : ENUM8 { + enum TimeSourceEnum : enum8 { kNone = 0; kUnknown = 1; kAdmin = 2; @@ -1516,13 +1516,13 @@ server cluster TimeSynchronization = 56 { kGNSS = 16; } - enum TimeZoneDatabaseEnum : ENUM8 { + enum TimeZoneDatabaseEnum : enum8 { kFull = 0; kPartial = 1; kNone = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTimeZone = 0x1; kNTPClient = 0x2; kNTPServer = 0x4; @@ -1626,7 +1626,7 @@ server cluster TimeSynchronization = 56 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -1676,13 +1676,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1717,12 +1717,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1833,12 +1833,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1938,7 +1938,7 @@ server cluster UserLabel = 65 { /** Allows servers to ensure that listed clients are notified when a server is available for communication. */ server cluster IcdManagement = 70 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCheckInProtocolSupport = 0x1; } @@ -1961,53 +1961,53 @@ server cluster IcdManagement = 70 { /** Attributes and commands for controlling the color properties of a color-capable light. */ client cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -2015,14 +2015,14 @@ client cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter index 2c8a5aa2f0f576..f65317e82546d6 100644 --- a/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter +++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,23 +181,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -289,7 +289,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -322,13 +322,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -336,7 +336,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -394,7 +394,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -418,7 +418,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -481,20 +481,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -555,13 +555,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -569,7 +569,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -648,7 +648,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -663,12 +663,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -685,7 +685,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -693,7 +693,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -749,7 +749,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -765,7 +765,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -774,13 +774,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -889,13 +889,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -903,7 +903,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -926,7 +926,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -936,7 +936,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -950,7 +950,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -958,14 +958,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1031,7 +1031,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1064,7 +1064,7 @@ server cluster SoftwareDiagnostics = 52 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1077,7 +1077,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1103,13 +1103,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1144,12 +1144,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1260,12 +1260,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1365,53 +1365,53 @@ server cluster UserLabel = 65 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1419,14 +1419,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter index 510c773e12ad24..aa4aeb2888dfdb 100644 --- a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter +++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,23 +181,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -289,7 +289,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -322,13 +322,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -336,7 +336,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -394,7 +394,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -418,7 +418,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -481,20 +481,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -555,13 +555,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -569,7 +569,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -648,7 +648,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -663,12 +663,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -685,7 +685,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -693,7 +693,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -749,7 +749,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -765,7 +765,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -774,13 +774,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -889,13 +889,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -903,7 +903,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -926,7 +926,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -936,7 +936,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -950,7 +950,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -958,14 +958,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1031,7 +1031,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1065,19 +1065,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1087,7 +1087,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1226,13 +1226,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1267,12 +1267,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1383,12 +1383,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1488,53 +1488,53 @@ server cluster UserLabel = 65 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1542,14 +1542,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter index 40ece2592cb11d..9f75d1d422edf4 100644 --- a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter +++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,23 +181,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -289,7 +289,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -322,13 +322,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -336,7 +336,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -394,7 +394,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -418,7 +418,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -481,20 +481,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -555,13 +555,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -569,7 +569,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -648,7 +648,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -663,12 +663,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -685,7 +685,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -693,7 +693,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -749,7 +749,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -765,7 +765,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -774,13 +774,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -889,13 +889,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -903,7 +903,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -926,7 +926,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -936,7 +936,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -950,7 +950,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -958,14 +958,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1031,7 +1031,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1064,19 +1064,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1085,7 +1085,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1095,7 +1095,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1136,13 +1136,13 @@ server cluster WiFiNetworkDiagnostics = 54 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1177,12 +1177,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1293,12 +1293,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1398,53 +1398,53 @@ server cluster UserLabel = 65 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1452,14 +1452,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index c0b6344bcab4aa..6876d707febd15 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,14 +118,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -265,33 +265,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -328,23 +328,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -436,7 +436,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -469,13 +469,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -483,7 +483,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -541,7 +541,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -565,7 +565,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -628,20 +628,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -702,13 +702,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -716,7 +716,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -795,7 +795,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -810,12 +810,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -832,7 +832,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -840,7 +840,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -896,7 +896,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -912,7 +912,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -921,13 +921,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1036,13 +1036,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1050,7 +1050,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1073,7 +1073,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1083,7 +1083,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1097,7 +1097,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1105,14 +1105,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1178,7 +1178,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1212,19 +1212,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1234,7 +1234,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1375,19 +1375,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1396,7 +1396,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1406,7 +1406,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1449,7 +1449,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1462,7 +1462,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1490,7 +1490,7 @@ server cluster EthernetNetworkDiagnostics = 55 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -1540,13 +1540,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1581,12 +1581,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1697,12 +1697,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1802,53 +1802,53 @@ server cluster UserLabel = 65 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1856,14 +1856,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -2070,18 +2070,18 @@ server cluster ColorControl = 768 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ server cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/lighting-app/nxp/zap/lighting-on-off.matter b/examples/lighting-app/nxp/zap/lighting-on-off.matter index 1c0290d62ac20b..0354f3bc80d980 100644 --- a/examples/lighting-app/nxp/zap/lighting-on-off.matter +++ b/examples/lighting-app/nxp/zap/lighting-on-off.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,23 +181,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -282,7 +282,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -315,13 +315,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -329,7 +329,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -386,7 +386,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -410,7 +410,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -466,20 +466,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -540,13 +540,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -554,7 +554,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -615,7 +615,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -623,7 +623,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -679,7 +679,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -695,7 +695,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -704,13 +704,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -812,7 +812,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -822,7 +822,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -836,7 +836,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -844,14 +844,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -911,7 +911,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -945,19 +945,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -967,7 +967,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1105,13 +1105,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1141,12 +1141,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1257,12 +1257,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/lighting-app/qpg/zap/light.matter b/examples/lighting-app/qpg/zap/light.matter index 7bace4718ccaf9..5bae7ee2b18663 100644 --- a/examples/lighting-app/qpg/zap/light.matter +++ b/examples/lighting-app/qpg/zap/light.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,23 +181,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -285,7 +285,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -318,13 +318,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -332,7 +332,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -390,7 +390,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -414,7 +414,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -477,20 +477,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -551,13 +551,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -565,7 +565,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -626,7 +626,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -634,7 +634,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -690,7 +690,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -706,7 +706,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -715,13 +715,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -823,13 +823,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -837,7 +837,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -867,7 +867,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -877,7 +877,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -891,7 +891,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -899,14 +899,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -972,7 +972,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1006,19 +1006,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1028,7 +1028,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1166,13 +1166,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1207,12 +1207,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1323,12 +1323,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1428,53 +1428,53 @@ server cluster UserLabel = 65 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1482,14 +1482,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter index e1951b6a9ba901..c6060734636d52 100644 --- a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter +++ b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,14 +118,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -286,33 +286,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -349,23 +349,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -457,7 +457,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -490,13 +490,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -504,7 +504,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -562,7 +562,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -586,7 +586,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -649,20 +649,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -723,13 +723,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -737,7 +737,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -816,7 +816,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -831,12 +831,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -853,7 +853,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -889,7 +889,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -903,20 +903,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -1000,38 +1000,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -1089,7 +1089,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1097,7 +1097,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1153,7 +1153,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -1169,7 +1169,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -1178,13 +1178,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1293,13 +1293,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1307,7 +1307,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1330,7 +1330,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1340,7 +1340,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1354,7 +1354,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1362,14 +1362,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1435,7 +1435,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1469,19 +1469,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1491,7 +1491,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1632,13 +1632,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1673,12 +1673,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1789,12 +1789,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1894,53 +1894,53 @@ server cluster UserLabel = 65 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1948,14 +1948,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter index ca9d823350b0b1..e02f879882dce8 100644 --- a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter +++ b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,14 +118,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -265,33 +265,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -328,23 +328,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -436,7 +436,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -469,13 +469,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -483,7 +483,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -541,7 +541,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -565,7 +565,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -628,20 +628,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -702,13 +702,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -716,7 +716,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -795,7 +795,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -810,12 +810,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -832,7 +832,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -868,7 +868,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -882,20 +882,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -979,38 +979,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -1068,7 +1068,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1076,7 +1076,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1132,7 +1132,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -1148,7 +1148,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -1157,13 +1157,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1272,13 +1272,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1286,7 +1286,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1309,7 +1309,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1319,7 +1319,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1333,7 +1333,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1341,14 +1341,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1414,7 +1414,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1448,19 +1448,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1469,7 +1469,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1479,7 +1479,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1522,13 +1522,13 @@ server cluster WiFiNetworkDiagnostics = 54 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1563,12 +1563,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1679,12 +1679,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1784,53 +1784,53 @@ server cluster UserLabel = 65 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -1838,14 +1838,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index a3a9f869ea9a32..02f3cf9504e3b1 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,33 +49,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -98,7 +98,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -131,13 +131,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -145,7 +145,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -203,7 +203,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -227,7 +227,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -290,20 +290,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -364,13 +364,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -378,7 +378,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -457,7 +457,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -472,12 +472,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -497,13 +497,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -517,7 +517,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -553,7 +553,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -567,20 +567,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -664,38 +664,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -751,7 +751,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -759,7 +759,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -815,7 +815,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -831,7 +831,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -840,13 +840,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -955,13 +955,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -969,7 +969,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -992,7 +992,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1002,7 +1002,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1016,7 +1016,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1024,14 +1024,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1097,7 +1097,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1131,19 +1131,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1153,7 +1153,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1294,19 +1294,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1315,7 +1315,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1325,7 +1325,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1368,7 +1368,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1381,7 +1381,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1407,13 +1407,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1448,12 +1448,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1564,12 +1564,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1669,7 +1669,7 @@ server cluster UserLabel = 65 { /** Allows servers to ensure that listed clients are notified when a server is available for communication. */ server cluster IcdManagement = 70 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCheckInProtocolSupport = 0x1; } @@ -1692,7 +1692,7 @@ server cluster IcdManagement = 70 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -1703,13 +1703,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -1718,20 +1718,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -1746,7 +1746,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -1756,7 +1756,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -1774,7 +1774,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -1784,21 +1784,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1807,7 +1807,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -1816,7 +1816,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -1830,7 +1830,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -1838,7 +1838,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -1846,7 +1846,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -1854,7 +1854,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -1867,13 +1867,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1886,7 +1886,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1896,19 +1896,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -1917,7 +1917,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1928,7 +1928,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1936,14 +1936,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -1957,7 +1957,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1967,13 +1967,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1983,7 +1983,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1993,7 +1993,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -2001,7 +2001,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2011,7 +2011,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; diff --git a/examples/lock-app/nxp/zap/lock-app.matter b/examples/lock-app/nxp/zap/lock-app.matter index 6a52e42e404594..a5291071a054e1 100644 --- a/examples/lock-app/nxp/zap/lock-app.matter +++ b/examples/lock-app/nxp/zap/lock-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,7 +49,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -82,13 +82,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -96,7 +96,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -153,7 +153,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -177,7 +177,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -233,7 +233,7 @@ server cluster BasicInformation = 40 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -241,7 +241,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -297,7 +297,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -313,7 +313,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -322,13 +322,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -430,7 +430,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -440,7 +440,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -454,7 +454,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -462,14 +462,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -529,7 +529,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -563,19 +563,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -585,7 +585,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -723,13 +723,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -759,12 +759,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -875,12 +875,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -947,7 +947,7 @@ server cluster GroupKeyManagement = 63 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -958,13 +958,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -973,20 +973,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -1001,7 +1001,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -1011,7 +1011,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -1029,7 +1029,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -1039,21 +1039,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1062,7 +1062,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -1071,7 +1071,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -1085,7 +1085,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -1093,7 +1093,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -1101,7 +1101,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -1109,7 +1109,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -1122,13 +1122,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1141,7 +1141,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1151,19 +1151,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -1172,7 +1172,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1183,7 +1183,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1191,14 +1191,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -1212,7 +1212,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1222,13 +1222,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1238,7 +1238,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1248,7 +1248,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -1256,7 +1256,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1266,7 +1266,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; diff --git a/examples/lock-app/qpg/zap/lock.matter b/examples/lock-app/qpg/zap/lock.matter index f2081def2b0850..da9e39e9a431b3 100644 --- a/examples/lock-app/qpg/zap/lock.matter +++ b/examples/lock-app/qpg/zap/lock.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,20 +310,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -384,13 +384,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -398,7 +398,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -459,7 +459,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -467,7 +467,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -523,7 +523,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -539,7 +539,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -548,13 +548,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -656,13 +656,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -670,7 +670,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -700,7 +700,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -710,7 +710,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -724,7 +724,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -732,14 +732,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -805,7 +805,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -839,19 +839,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -861,7 +861,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -999,13 +999,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1040,12 +1040,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1156,12 +1156,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1261,7 +1261,7 @@ server cluster UserLabel = 65 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -1272,13 +1272,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -1287,20 +1287,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -1315,7 +1315,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -1325,7 +1325,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -1343,7 +1343,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -1353,21 +1353,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1376,7 +1376,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -1385,7 +1385,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -1399,7 +1399,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -1407,7 +1407,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -1415,7 +1415,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -1423,7 +1423,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -1436,13 +1436,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1455,7 +1455,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1465,19 +1465,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -1486,7 +1486,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1497,7 +1497,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1505,14 +1505,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -1526,7 +1526,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1536,13 +1536,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -1552,7 +1552,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -1562,7 +1562,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -1570,7 +1570,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1580,7 +1580,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter index 4f9cbf9bfbade2..310d00e2fa7356 100644 --- a/examples/log-source-app/log-source-common/log-source-app.matter +++ b/examples/log-source-app/log-source-common/log-source-app.matter @@ -6,13 +6,13 @@ and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -20,7 +20,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -76,7 +76,7 @@ server cluster AccessControl = 31 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -84,7 +84,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -138,7 +138,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -154,7 +154,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -163,13 +163,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -270,13 +270,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -284,7 +284,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -314,12 +314,12 @@ server cluster DiagnosticLogs = 50 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index 8c5f5941ac087f..d5104906880db2 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -3,7 +3,7 @@ /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -36,13 +36,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ client cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -50,7 +50,7 @@ client cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -109,13 +109,13 @@ client cluster AccessControl = 31 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -123,7 +123,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -181,7 +181,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -205,7 +205,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -268,20 +268,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ server cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -357,7 +357,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -372,12 +372,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -394,7 +394,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -402,7 +402,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -458,7 +458,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -474,7 +474,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -483,13 +483,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -598,7 +598,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -608,7 +608,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -622,7 +622,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -630,14 +630,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -703,13 +703,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -744,12 +744,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -860,12 +860,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index 2ce8438f9856b8..9e1977afff1924 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,33 +118,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,7 +181,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -214,13 +214,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -228,7 +228,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -286,7 +286,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -310,7 +310,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -373,20 +373,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -447,13 +447,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -461,7 +461,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -540,7 +540,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -555,12 +555,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -577,7 +577,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -585,7 +585,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -641,7 +641,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -657,7 +657,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -666,13 +666,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -781,7 +781,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -791,7 +791,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -805,7 +805,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -813,14 +813,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -886,13 +886,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -927,12 +927,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1043,12 +1043,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 990047f1259d9f..033a3ed146af73 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ client cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ client cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -51,7 +51,7 @@ client cluster Identify = 3 { /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -60,11 +60,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -97,11 +97,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -166,14 +166,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -286,33 +286,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -355,33 +355,33 @@ client cluster OnOff = 6 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -418,23 +418,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ client cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -541,23 +541,23 @@ client cluster LevelControl = 8 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -649,7 +649,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -682,13 +682,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -696,7 +696,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -752,19 +752,19 @@ server cluster AccessControl = 31 { /** This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information. */ server cluster Actions = 37 { - enum ActionErrorEnum : ENUM8 { + enum ActionErrorEnum : enum8 { kUnknown = 0; kInterrupted = 1; } - enum ActionStateEnum : ENUM8 { + enum ActionStateEnum : enum8 { kInactive = 0; kActive = 1; kPaused = 2; kDisabled = 3; } - enum ActionTypeEnum : ENUM8 { + enum ActionTypeEnum : enum8 { kOther = 0; kScene = 1; kSequence = 2; @@ -774,13 +774,13 @@ server cluster Actions = 37 { kAlarm = 6; } - enum EndpointListTypeEnum : ENUM8 { + enum EndpointListTypeEnum : enum8 { kOther = 0; kRoom = 1; kZone = 2; } - bitmap CommandBits : BITMAP16 { + bitmap CommandBits : bitmap16 { kInstantAction = 0x1; kInstantActionWithTransition = 0x2; kStartAction = 0x4; @@ -839,7 +839,7 @@ server cluster Actions = 37 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -863,7 +863,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -960,7 +960,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -975,12 +975,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -1000,13 +1000,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ client cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -1024,13 +1024,13 @@ client cluster UnitLocalization = 45 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -1045,7 +1045,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -1081,7 +1081,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -1095,20 +1095,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -1192,38 +1192,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -1302,7 +1302,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ client cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1310,7 +1310,7 @@ client cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1369,7 +1369,7 @@ client cluster GeneralCommissioning = 48 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1377,7 +1377,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1433,7 +1433,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -1449,7 +1449,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -1458,13 +1458,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1573,7 +1573,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1583,7 +1583,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1597,7 +1597,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1605,14 +1605,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1678,7 +1678,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1712,19 +1712,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ client cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1734,7 +1734,7 @@ client cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1876,19 +1876,19 @@ client cluster ThreadNetworkDiagnostics = 53 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1898,7 +1898,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -2039,19 +2039,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -2060,7 +2060,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -2070,7 +2070,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -2113,7 +2113,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -2126,7 +2126,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -2155,7 +2155,7 @@ server cluster EthernetNetworkDiagnostics = 55 { collection of attributes that the Node MAY collect to aid in conveying information regarding the Bridged Device to a user, such as the vendor name, the model name, or user-assigned name. */ server cluster BridgedDeviceBasicInformation = 57 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -2179,7 +2179,7 @@ server cluster BridgedDeviceBasicInformation = 57 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -2235,7 +2235,7 @@ server cluster BridgedDeviceBasicInformation = 57 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ client cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -2288,7 +2288,7 @@ client cluster Switch = 59 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -2339,13 +2339,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -2380,12 +2380,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ client cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -2504,12 +2504,12 @@ client cluster OperationalCredentials = 62 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -2620,12 +2620,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -2757,7 +2757,7 @@ server cluster BooleanState = 69 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster ModeSelect = 80 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2795,7 +2795,7 @@ client cluster ModeSelect = 80 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster ModeSelect = 80 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2831,7 +2831,7 @@ server cluster ModeSelect = 80 { /** An interface to a generic way to secure a door */ client cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -2842,13 +2842,13 @@ client cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -2857,20 +2857,20 @@ client cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -2885,7 +2885,7 @@ client cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -2895,7 +2895,7 @@ client cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -2913,7 +2913,7 @@ client cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -2923,21 +2923,21 @@ client cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -2946,7 +2946,7 @@ client cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -2955,7 +2955,7 @@ client cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -2969,7 +2969,7 @@ client cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -2977,7 +2977,7 @@ client cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -2985,7 +2985,7 @@ client cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -2993,7 +2993,7 @@ client cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -3006,13 +3006,13 @@ client cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3025,7 +3025,7 @@ client cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3035,19 +3035,19 @@ client cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -3056,7 +3056,7 @@ client cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3067,7 +3067,7 @@ client cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3075,14 +3075,14 @@ client cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -3096,7 +3096,7 @@ client cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3106,13 +3106,13 @@ client cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3122,7 +3122,7 @@ client cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3132,7 +3132,7 @@ client cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -3140,7 +3140,7 @@ client cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3150,7 +3150,7 @@ client cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -3451,7 +3451,7 @@ client cluster DoorLock = 257 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -3462,13 +3462,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -3477,20 +3477,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -3505,7 +3505,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -3515,7 +3515,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -3533,7 +3533,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -3543,21 +3543,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3566,7 +3566,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -3575,7 +3575,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -3589,7 +3589,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -3597,7 +3597,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -3605,7 +3605,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -3613,7 +3613,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -3626,13 +3626,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3645,7 +3645,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3655,19 +3655,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -3676,7 +3676,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3687,7 +3687,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3695,14 +3695,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -3716,7 +3716,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3726,13 +3726,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3742,7 +3742,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3752,7 +3752,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -3760,7 +3760,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3770,7 +3770,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -3951,7 +3951,7 @@ server cluster DoorLock = 257 { /** Provides an interface for controlling and adjusting automatic window coverings. */ server cluster WindowCovering = 258 { - enum EndProductType : ENUM8 { + enum EndProductType : enum8 { kRollerShade = 0; kRomanShade = 1; kBalloonShade = 2; @@ -3979,7 +3979,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - enum Type : ENUM8 { + enum Type : enum8 { kRollerShade = 0; kRollerShade2Motor = 1; kRollerShadeExterior = 2; @@ -3993,7 +3993,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - bitmap ConfigStatus : BITMAP8 { + bitmap ConfigStatus : bitmap8 { kOperational = 0x1; kOnlineReserved = 0x2; kLiftMovementReversed = 0x4; @@ -4003,7 +4003,7 @@ server cluster WindowCovering = 258 { kTiltEncoderControlled = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLift = 0x1; kTilt = 0x2; kPositionAwareLift = 0x4; @@ -4011,20 +4011,20 @@ server cluster WindowCovering = 258 { kPositionAwareTilt = 0x10; } - bitmap Mode : BITMAP8 { + bitmap Mode : bitmap8 { kMotorDirectionReversed = 0x1; kCalibrationMode = 0x2; kMaintenanceMode = 0x4; kLedFeedback = 0x8; } - bitmap OperationalStatus : BITMAP8 { + bitmap OperationalStatus : bitmap8 { kGlobal = 0x3; kLift = 0xC; kTilt = 0x30; } - bitmap SafetyStatus : BITMAP16 { + bitmap SafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTamperDetection = 0x2; kFailedCommunication = 0x4; @@ -4091,7 +4091,7 @@ server cluster WindowCovering = 258 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -4100,14 +4100,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -4117,7 +4117,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -4213,13 +4213,13 @@ server cluster PumpConfigurationAndControl = 512 { /** An interface for configuring and controlling the functionality of a thermostat. */ client cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4228,13 +4228,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4246,7 +4246,7 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4257,7 +4257,7 @@ client cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -4267,7 +4267,7 @@ client cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -4370,13 +4370,13 @@ client cluster Thermostat = 513 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4385,13 +4385,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4403,7 +4403,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4414,7 +4414,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -4424,7 +4424,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -4519,53 +4519,53 @@ server cluster ThermostatUserInterfaceConfiguration = 516 { /** Attributes and commands for controlling the color properties of a color-capable light. */ client cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -4573,14 +4573,14 @@ client cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -4837,53 +4837,53 @@ client cluster ColorControl = 768 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -4891,14 +4891,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -5136,7 +5136,7 @@ server cluster ColorControl = 768 { /** Attributes and commands for configuring the measurement of illuminance, and reporting illuminance measurements. */ server cluster IlluminanceMeasurement = 1024 { - enum LightSensorTypeEnum : ENUM8 { + enum LightSensorTypeEnum : enum8 { kPhotodiode = 0; kCMOS = 1; } @@ -5184,7 +5184,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -5249,18 +5249,18 @@ server cluster RelativeHumidityMeasurement = 1029 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ server cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; @@ -5288,17 +5288,17 @@ server cluster OccupancySensing = 1030 { /** This cluster provides an interface for controlling the current Channel on a device. */ client cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -5356,17 +5356,17 @@ client cluster Channel = 1284 { /** This cluster provides an interface for controlling the current Channel on a device. */ server cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -5416,7 +5416,7 @@ server cluster Channel = 1284 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ client cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -5452,7 +5452,7 @@ client cluster TargetNavigator = 1285 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ server cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -5475,7 +5475,7 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ client cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5484,14 +5484,14 @@ client cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -5558,7 +5558,7 @@ client cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5567,14 +5567,14 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -5630,7 +5630,7 @@ server cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ client cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -5645,7 +5645,7 @@ client cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -5686,7 +5686,7 @@ client cluster MediaInput = 1287 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ server cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -5701,7 +5701,7 @@ server cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -5751,7 +5751,7 @@ client cluster LowPower = 1288 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ client cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -5840,13 +5840,13 @@ client cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -5873,7 +5873,7 @@ client cluster KeypadInput = 1289 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ server cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -5962,13 +5962,13 @@ server cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -5984,18 +5984,18 @@ server cluster KeypadInput = 1289 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -6012,12 +6012,12 @@ client cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -6092,18 +6092,18 @@ client cluster ContentLauncher = 1290 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -6120,12 +6120,12 @@ server cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -6198,7 +6198,7 @@ server cluster ContentLauncher = 1290 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ client cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -6207,7 +6207,7 @@ client cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -6243,7 +6243,7 @@ client cluster AudioOutput = 1291 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ server cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -6252,7 +6252,7 @@ server cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -6286,13 +6286,13 @@ server cluster AudioOutput = 1291 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -6343,13 +6343,13 @@ client cluster ApplicationLauncher = 1292 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -6375,7 +6375,7 @@ server cluster ApplicationLauncher = 1292 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ client cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; @@ -6405,7 +6405,7 @@ client cluster ApplicationBasic = 1293 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ server cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index f11e7bb353e52c..edcc25b83f5bbd 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ client cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ client cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -51,7 +51,7 @@ client cluster Identify = 3 { /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -60,11 +60,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -97,11 +97,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -166,14 +166,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -286,33 +286,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -355,33 +355,33 @@ client cluster OnOff = 6 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -418,23 +418,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ client cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -541,23 +541,23 @@ client cluster LevelControl = 8 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -647,7 +647,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -680,13 +680,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -694,7 +694,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -750,19 +750,19 @@ server cluster AccessControl = 31 { /** This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information. */ server cluster Actions = 37 { - enum ActionErrorEnum : ENUM8 { + enum ActionErrorEnum : enum8 { kUnknown = 0; kInterrupted = 1; } - enum ActionStateEnum : ENUM8 { + enum ActionStateEnum : enum8 { kInactive = 0; kActive = 1; kPaused = 2; kDisabled = 3; } - enum ActionTypeEnum : ENUM8 { + enum ActionTypeEnum : enum8 { kOther = 0; kScene = 1; kSequence = 2; @@ -772,13 +772,13 @@ server cluster Actions = 37 { kAlarm = 6; } - enum EndpointListTypeEnum : ENUM8 { + enum EndpointListTypeEnum : enum8 { kOther = 0; kRoom = 1; kZone = 2; } - bitmap CommandBits : BITMAP16 { + bitmap CommandBits : bitmap16 { kInstantAction = 0x1; kInstantActionWithTransition = 0x2; kStartAction = 0x4; @@ -837,7 +837,7 @@ server cluster Actions = 37 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -861,7 +861,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -943,7 +943,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -958,12 +958,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -983,13 +983,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -1004,7 +1004,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -1040,7 +1040,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -1054,20 +1054,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -1151,38 +1151,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -1261,7 +1261,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ client cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1269,7 +1269,7 @@ client cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1328,7 +1328,7 @@ client cluster GeneralCommissioning = 48 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1336,7 +1336,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1392,7 +1392,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -1408,7 +1408,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -1417,13 +1417,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1532,7 +1532,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1542,7 +1542,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1556,7 +1556,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1564,14 +1564,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1637,7 +1637,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1671,19 +1671,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ client cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1693,7 +1693,7 @@ client cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1835,19 +1835,19 @@ client cluster ThreadNetworkDiagnostics = 53 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1857,7 +1857,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1998,19 +1998,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -2019,7 +2019,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -2029,7 +2029,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -2072,7 +2072,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -2085,7 +2085,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -2114,7 +2114,7 @@ server cluster EthernetNetworkDiagnostics = 55 { collection of attributes that the Node MAY collect to aid in conveying information regarding the Bridged Device to a user, such as the vendor name, the model name, or user-assigned name. */ server cluster BridgedDeviceBasicInformation = 57 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -2138,7 +2138,7 @@ server cluster BridgedDeviceBasicInformation = 57 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -2194,7 +2194,7 @@ server cluster BridgedDeviceBasicInformation = 57 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ client cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -2247,7 +2247,7 @@ client cluster Switch = 59 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -2298,13 +2298,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -2339,12 +2339,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ client cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -2463,12 +2463,12 @@ client cluster OperationalCredentials = 62 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -2579,12 +2579,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -2716,7 +2716,7 @@ server cluster BooleanState = 69 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster ModeSelect = 80 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2754,7 +2754,7 @@ client cluster ModeSelect = 80 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster ModeSelect = 80 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2790,7 +2790,7 @@ server cluster ModeSelect = 80 { /** An interface to a generic way to secure a door */ client cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -2801,13 +2801,13 @@ client cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -2816,20 +2816,20 @@ client cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -2844,7 +2844,7 @@ client cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -2854,7 +2854,7 @@ client cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -2872,7 +2872,7 @@ client cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -2882,21 +2882,21 @@ client cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -2905,7 +2905,7 @@ client cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -2914,7 +2914,7 @@ client cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -2928,7 +2928,7 @@ client cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -2936,7 +2936,7 @@ client cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -2944,7 +2944,7 @@ client cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -2952,7 +2952,7 @@ client cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -2965,13 +2965,13 @@ client cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -2984,7 +2984,7 @@ client cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2994,19 +2994,19 @@ client cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -3015,7 +3015,7 @@ client cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3026,7 +3026,7 @@ client cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3034,14 +3034,14 @@ client cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -3055,7 +3055,7 @@ client cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3065,13 +3065,13 @@ client cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3081,7 +3081,7 @@ client cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3091,7 +3091,7 @@ client cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -3099,7 +3099,7 @@ client cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3109,7 +3109,7 @@ client cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -3410,7 +3410,7 @@ client cluster DoorLock = 257 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -3421,13 +3421,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -3436,20 +3436,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -3464,7 +3464,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -3474,7 +3474,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -3492,7 +3492,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -3502,21 +3502,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3525,7 +3525,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -3534,7 +3534,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -3548,7 +3548,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -3556,7 +3556,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -3564,7 +3564,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -3572,7 +3572,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -3585,13 +3585,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3604,7 +3604,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3614,19 +3614,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -3635,7 +3635,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3646,7 +3646,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3654,14 +3654,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -3675,7 +3675,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3685,13 +3685,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3701,7 +3701,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3711,7 +3711,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -3719,7 +3719,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3729,7 +3729,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -3910,7 +3910,7 @@ server cluster DoorLock = 257 { /** Provides an interface for controlling and adjusting automatic window coverings. */ server cluster WindowCovering = 258 { - enum EndProductType : ENUM8 { + enum EndProductType : enum8 { kRollerShade = 0; kRomanShade = 1; kBalloonShade = 2; @@ -3938,7 +3938,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - enum Type : ENUM8 { + enum Type : enum8 { kRollerShade = 0; kRollerShade2Motor = 1; kRollerShadeExterior = 2; @@ -3952,7 +3952,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - bitmap ConfigStatus : BITMAP8 { + bitmap ConfigStatus : bitmap8 { kOperational = 0x1; kOnlineReserved = 0x2; kLiftMovementReversed = 0x4; @@ -3962,7 +3962,7 @@ server cluster WindowCovering = 258 { kTiltEncoderControlled = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLift = 0x1; kTilt = 0x2; kPositionAwareLift = 0x4; @@ -3970,20 +3970,20 @@ server cluster WindowCovering = 258 { kPositionAwareTilt = 0x10; } - bitmap Mode : BITMAP8 { + bitmap Mode : bitmap8 { kMotorDirectionReversed = 0x1; kCalibrationMode = 0x2; kMaintenanceMode = 0x4; kLedFeedback = 0x8; } - bitmap OperationalStatus : BITMAP8 { + bitmap OperationalStatus : bitmap8 { kGlobal = 0x3; kLift = 0xC; kTilt = 0x30; } - bitmap SafetyStatus : BITMAP16 { + bitmap SafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTamperDetection = 0x2; kFailedCommunication = 0x4; @@ -4050,7 +4050,7 @@ server cluster WindowCovering = 258 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -4059,14 +4059,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -4076,7 +4076,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -4172,13 +4172,13 @@ server cluster PumpConfigurationAndControl = 512 { /** An interface for configuring and controlling the functionality of a thermostat. */ client cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4187,13 +4187,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4205,7 +4205,7 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4216,7 +4216,7 @@ client cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -4226,7 +4226,7 @@ client cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -4329,13 +4329,13 @@ client cluster Thermostat = 513 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4344,13 +4344,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4362,7 +4362,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4373,7 +4373,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -4383,7 +4383,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -4478,53 +4478,53 @@ server cluster ThermostatUserInterfaceConfiguration = 516 { /** Attributes and commands for controlling the color properties of a color-capable light. */ client cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -4532,14 +4532,14 @@ client cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -4796,53 +4796,53 @@ client cluster ColorControl = 768 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -4850,14 +4850,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -5095,7 +5095,7 @@ server cluster ColorControl = 768 { /** Attributes and commands for configuring the measurement of illuminance, and reporting illuminance measurements. */ server cluster IlluminanceMeasurement = 1024 { - enum LightSensorTypeEnum : ENUM8 { + enum LightSensorTypeEnum : enum8 { kPhotodiode = 0; kCMOS = 1; } @@ -5143,7 +5143,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -5208,18 +5208,18 @@ server cluster RelativeHumidityMeasurement = 1029 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ server cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; @@ -5247,17 +5247,17 @@ server cluster OccupancySensing = 1030 { /** This cluster provides an interface for controlling the current Channel on a device. */ client cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -5315,17 +5315,17 @@ client cluster Channel = 1284 { /** This cluster provides an interface for controlling the current Channel on a device. */ server cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -5375,7 +5375,7 @@ server cluster Channel = 1284 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ client cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -5411,7 +5411,7 @@ client cluster TargetNavigator = 1285 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ server cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -5434,7 +5434,7 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ client cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5443,14 +5443,14 @@ client cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -5517,7 +5517,7 @@ client cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5526,14 +5526,14 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -5589,7 +5589,7 @@ server cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ client cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -5604,7 +5604,7 @@ client cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -5645,7 +5645,7 @@ client cluster MediaInput = 1287 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ server cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -5660,7 +5660,7 @@ server cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -5710,7 +5710,7 @@ client cluster LowPower = 1288 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ client cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -5799,13 +5799,13 @@ client cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -5832,7 +5832,7 @@ client cluster KeypadInput = 1289 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ server cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -5921,13 +5921,13 @@ server cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -5943,18 +5943,18 @@ server cluster KeypadInput = 1289 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -5971,12 +5971,12 @@ client cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -6051,18 +6051,18 @@ client cluster ContentLauncher = 1290 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -6079,12 +6079,12 @@ server cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -6157,7 +6157,7 @@ server cluster ContentLauncher = 1290 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ client cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -6166,7 +6166,7 @@ client cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -6202,7 +6202,7 @@ client cluster AudioOutput = 1291 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ server cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -6211,7 +6211,7 @@ server cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -6245,13 +6245,13 @@ server cluster AudioOutput = 1291 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -6302,13 +6302,13 @@ client cluster ApplicationLauncher = 1292 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -6334,7 +6334,7 @@ server cluster ApplicationLauncher = 1292 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ client cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; @@ -6364,7 +6364,7 @@ client cluster ApplicationBasic = 1293 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ server cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index 1773f74127a82f..23649a4461e95b 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,33 +43,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -88,23 +88,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -187,7 +187,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -239,13 +239,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -253,7 +253,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -311,7 +311,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -335,7 +335,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -396,20 +396,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -470,13 +470,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -484,7 +484,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -545,7 +545,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -553,7 +553,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -609,7 +609,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -625,7 +625,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -634,13 +634,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -742,7 +742,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -752,7 +752,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -766,7 +766,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -774,14 +774,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -841,19 +841,19 @@ server cluster GeneralDiagnostics = 51 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -863,7 +863,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -958,13 +958,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -999,12 +999,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1115,12 +1115,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1187,7 +1187,7 @@ server cluster GroupKeyManagement = 63 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -1196,14 +1196,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -1213,7 +1213,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -1323,7 +1323,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -1360,18 +1360,18 @@ server cluster FlowMeasurement = 1028 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ client cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/pump-app/silabs/data_model/pump-thread-app.matter b/examples/pump-app/silabs/data_model/pump-thread-app.matter index 39acb76a9d6e3c..7a4f9d38022861 100644 --- a/examples/pump-app/silabs/data_model/pump-thread-app.matter +++ b/examples/pump-app/silabs/data_model/pump-thread-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,33 +43,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -88,23 +88,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -187,7 +187,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -239,13 +239,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -253,7 +253,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -311,7 +311,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -335,7 +335,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -396,20 +396,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -470,13 +470,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -484,7 +484,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -545,7 +545,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -553,7 +553,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -609,7 +609,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -625,7 +625,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -634,13 +634,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -742,7 +742,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -752,7 +752,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -766,7 +766,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -774,14 +774,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -841,19 +841,19 @@ server cluster GeneralDiagnostics = 51 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -863,7 +863,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -958,13 +958,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -999,12 +999,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1115,12 +1115,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1187,7 +1187,7 @@ server cluster GroupKeyManagement = 63 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -1196,14 +1196,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -1213,7 +1213,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -1323,7 +1323,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -1360,18 +1360,18 @@ server cluster FlowMeasurement = 1028 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ client cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/pump-app/silabs/data_model/pump-wifi-app.matter b/examples/pump-app/silabs/data_model/pump-wifi-app.matter index 39acb76a9d6e3c..7a4f9d38022861 100644 --- a/examples/pump-app/silabs/data_model/pump-wifi-app.matter +++ b/examples/pump-app/silabs/data_model/pump-wifi-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,33 +43,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -88,23 +88,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -187,7 +187,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -239,13 +239,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -253,7 +253,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -311,7 +311,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -335,7 +335,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -396,20 +396,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -470,13 +470,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -484,7 +484,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -545,7 +545,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -553,7 +553,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -609,7 +609,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -625,7 +625,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -634,13 +634,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -742,7 +742,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -752,7 +752,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -766,7 +766,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -774,14 +774,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -841,19 +841,19 @@ server cluster GeneralDiagnostics = 51 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -863,7 +863,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -958,13 +958,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -999,12 +999,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1115,12 +1115,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1187,7 +1187,7 @@ server cluster GroupKeyManagement = 63 { /** An interface for configuring and controlling pumps. */ server cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -1196,14 +1196,14 @@ server cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -1213,7 +1213,7 @@ server cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -1323,7 +1323,7 @@ server cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ server cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -1360,18 +1360,18 @@ server cluster FlowMeasurement = 1028 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ client cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index a9651460e67187..5f5f3b2cd16d63 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,33 +43,33 @@ server cluster Identify = 3 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -112,7 +112,7 @@ client cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -164,13 +164,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -178,7 +178,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -236,7 +236,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -260,7 +260,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -321,20 +321,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -395,13 +395,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -409,7 +409,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -470,7 +470,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -478,7 +478,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -534,7 +534,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -550,7 +550,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -559,13 +559,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -667,7 +667,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -677,7 +677,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -691,7 +691,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -699,14 +699,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -766,19 +766,19 @@ server cluster GeneralDiagnostics = 51 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -788,7 +788,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -883,13 +883,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -924,12 +924,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1040,12 +1040,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1112,7 +1112,7 @@ server cluster GroupKeyManagement = 63 { /** An interface for configuring and controlling pumps. */ client cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -1121,14 +1121,14 @@ client cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -1138,7 +1138,7 @@ client cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -1248,7 +1248,7 @@ client cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ client cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } diff --git a/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter b/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter index f36f326925dacd..df9636bfe5daa8 100644 --- a/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter +++ b/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter @@ -3,7 +3,7 @@ /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -37,13 +37,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -51,7 +51,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -109,7 +109,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -133,7 +133,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -215,7 +215,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -230,12 +230,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -253,13 +253,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -274,7 +274,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -282,7 +282,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -338,7 +338,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -354,7 +354,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -363,13 +363,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -478,7 +478,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -488,7 +488,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -502,7 +502,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -510,14 +510,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -583,19 +583,19 @@ server cluster GeneralDiagnostics = 51 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -604,7 +604,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -614,7 +614,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -657,13 +657,13 @@ server cluster WiFiNetworkDiagnostics = 54 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -698,12 +698,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -814,12 +814,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -886,7 +886,7 @@ server cluster GroupKeyManagement = 63 { /** Attributes and commands for configuring the temperature control, and reporting temperature. */ server cluster TemperatureControl = 86 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureNumber = 0x1; kTemperatureLevel = 0x2; kTemperatureStep = 0x4; diff --git a/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter b/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter index dd6e4bfb9b90b4..ba2310b1015fc5 100644 --- a/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter +++ b/examples/resource-monitoring-app/resource-monitoring-common/resource-monitoring-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,20 +310,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -384,13 +384,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -398,7 +398,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -477,7 +477,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -492,12 +492,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -514,7 +514,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -522,7 +522,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -578,7 +578,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -594,7 +594,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -603,13 +603,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -718,13 +718,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -732,7 +732,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -755,7 +755,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -765,7 +765,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -779,7 +779,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -787,14 +787,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -860,7 +860,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -894,19 +894,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -916,7 +916,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1057,19 +1057,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1078,7 +1078,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1088,7 +1088,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1131,7 +1131,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1144,7 +1144,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1172,7 +1172,7 @@ server cluster EthernetNetworkDiagnostics = 55 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ server cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -1222,13 +1222,13 @@ server cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1263,12 +1263,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1379,12 +1379,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1484,18 +1484,18 @@ server cluster UserLabel = 65 { /** Attributes and commands for monitoring HEPA filters in a device */ server cluster HepaFilterMonitoring = 113 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -1503,7 +1503,7 @@ server cluster HepaFilterMonitoring = 113 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -1532,18 +1532,18 @@ server cluster HepaFilterMonitoring = 113 { /** Attributes and commands for monitoring activated carbon filters in a device */ server cluster ActivatedCarbonFilterMonitoring = 114 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -1551,7 +1551,7 @@ server cluster ActivatedCarbonFilterMonitoring = 114 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -1580,12 +1580,12 @@ server cluster ActivatedCarbonFilterMonitoring = 114 { /** An interface for controlling a fan in a heating/cooling system. */ provisional server cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -1595,7 +1595,7 @@ provisional server cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -1604,12 +1604,12 @@ provisional server cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -1618,13 +1618,13 @@ provisional server cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } diff --git a/examples/rvc-app/rvc-common/rvc-app.matter b/examples/rvc-app/rvc-common/rvc-app.matter index 1c944bf51fc41f..4c3c0643f30dc7 100644 --- a/examples/rvc-app/rvc-common/rvc-app.matter +++ b/examples/rvc-app/rvc-common/rvc-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,7 +49,7 @@ server cluster Identify = 3 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -82,13 +82,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -96,7 +96,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -154,7 +154,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -178,7 +178,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -241,7 +241,7 @@ server cluster BasicInformation = 40 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -249,7 +249,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -305,7 +305,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -321,7 +321,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -330,13 +330,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -445,13 +445,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -459,7 +459,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -482,7 +482,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -492,7 +492,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -506,7 +506,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -514,14 +514,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -587,13 +587,13 @@ server cluster GeneralDiagnostics = 51 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -628,12 +628,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -744,12 +744,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -816,12 +816,12 @@ server cluster GroupKeyManagement = 63 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster RvcRunMode = 84 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kIdle = 16384; kCleaning = 16385; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kStuck = 65; kDustBinMissing = 66; kDustBinFull = 67; @@ -832,7 +832,7 @@ server cluster RvcRunMode = 84 { kBatteryLow = 72; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -870,17 +870,17 @@ server cluster RvcRunMode = 84 { /** Attributes and commands for selecting a mode from a list of supported options. */ server cluster RvcCleanMode = 85 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kDeepClean = 16384; kVacuum = 16385; kMop = 16386; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kCleaningInProgress = 64; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -919,7 +919,7 @@ server cluster RvcCleanMode = 85 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of a Robotic Vacuum. */ server cluster RvcOperationalState = 97 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kFailedToFindChargingDock = 64; kStuck = 65; kDustBinMissing = 66; @@ -930,7 +930,7 @@ server cluster RvcOperationalState = 97 { kMopCleaningPadMissing = 71; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kSeekingCharger = 64; kCharging = 65; kDocked = 66; diff --git a/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter b/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter index 94f2a7e6df475b..33ca067ac953c4 100644 --- a/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter +++ b/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,20 +310,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -384,13 +384,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -398,7 +398,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -477,7 +477,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -492,12 +492,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -514,7 +514,7 @@ server cluster TimeFormatLocalization = 44 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -550,7 +550,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -564,20 +564,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -661,38 +661,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -746,7 +746,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -754,7 +754,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -810,7 +810,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -826,7 +826,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -835,13 +835,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -950,13 +950,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -964,7 +964,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -987,7 +987,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -997,7 +997,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1011,7 +1011,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1019,14 +1019,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1092,7 +1092,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1126,19 +1126,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1148,7 +1148,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1289,13 +1289,13 @@ server cluster ThreadNetworkDiagnostics = 53 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1330,12 +1330,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1446,12 +1446,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1551,7 +1551,7 @@ server cluster UserLabel = 65 { /** Allows servers to ensure that listed clients are notified when a server is available for communication. */ server cluster IcdManagement = 70 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCheckInProtocolSupport = 0x1; } @@ -1597,25 +1597,25 @@ server cluster IcdManagement = 70 { /** This cluster provides an interface for observing and managing the state of smoke and CO alarms. */ server cluster SmokeCoAlarm = 92 { - enum AlarmStateEnum : ENUM8 { + enum AlarmStateEnum : enum8 { kNormal = 0; kWarning = 1; kCritical = 2; } - enum ContaminationStateEnum : ENUM8 { + enum ContaminationStateEnum : enum8 { kNormal = 0; kLow = 1; kWarning = 2; kCritical = 3; } - enum EndOfServiceEnum : ENUM8 { + enum EndOfServiceEnum : enum8 { kNormal = 0; kExpired = 1; } - enum ExpressedStateEnum : ENUM8 { + enum ExpressedStateEnum : enum8 { kNormal = 0; kSmokeAlarm = 1; kCOAlarm = 2; @@ -1627,18 +1627,18 @@ server cluster SmokeCoAlarm = 92 { kInterconnectCO = 8; } - enum MuteStateEnum : ENUM8 { + enum MuteStateEnum : enum8 { kNotMuted = 0; kMuted = 1; } - enum SensitivityEnum : ENUM8 { + enum SensitivityEnum : enum8 { kHigh = 0; kStandard = 1; kLow = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSmokeAlarm = 0x1; kCOAlarm = 0x2; } diff --git a/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter index 08377ffb656f81..96ff6b0442f9f6 100644 --- a/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter +++ b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter @@ -3,7 +3,7 @@ /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -36,13 +36,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -50,7 +50,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -108,7 +108,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -132,7 +132,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -213,7 +213,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -228,12 +228,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -253,13 +253,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -274,7 +274,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -282,7 +282,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -338,7 +338,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -354,7 +354,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -363,13 +363,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -472,13 +472,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -486,7 +486,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -509,7 +509,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -519,7 +519,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -533,7 +533,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -541,14 +541,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -614,7 +614,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -643,19 +643,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -664,7 +664,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -674,7 +674,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -715,7 +715,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -728,7 +728,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -754,13 +754,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -795,12 +795,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -911,12 +911,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 06f8bb14dddb33..a276978b8d4af9 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ client cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ client cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -51,7 +51,7 @@ client cluster Identify = 3 { /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -60,11 +60,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -97,11 +97,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -166,7 +166,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -218,13 +218,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -232,7 +232,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -290,7 +290,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -314,7 +314,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -377,20 +377,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -451,13 +451,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -465,7 +465,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -544,7 +544,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -559,12 +559,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -584,13 +584,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -605,7 +605,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -613,7 +613,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -669,7 +669,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -685,7 +685,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -694,13 +694,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -809,13 +809,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -823,7 +823,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -846,7 +846,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -856,7 +856,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -870,7 +870,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -878,14 +878,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -951,7 +951,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -983,19 +983,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1005,7 +1005,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1146,19 +1146,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1167,7 +1167,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1177,7 +1177,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1220,7 +1220,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1233,7 +1233,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1257,13 +1257,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1298,12 +1298,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1414,12 +1414,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1519,13 +1519,13 @@ server cluster UserLabel = 65 { /** An interface for configuring and controlling the functionality of a thermostat. */ server cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1534,13 +1534,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1552,7 +1552,7 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1563,7 +1563,7 @@ server cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -1573,7 +1573,7 @@ server cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index 19516f50dc323b..23a0e2e8772ef1 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -3,33 +3,33 @@ /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -48,23 +48,23 @@ server cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ server cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -156,7 +156,7 @@ server cluster LevelControl = 8 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -227,13 +227,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -241,7 +241,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -299,7 +299,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -323,7 +323,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -386,20 +386,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ server cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -475,7 +475,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -490,12 +490,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -515,13 +515,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -536,7 +536,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ client cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -544,7 +544,7 @@ client cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -603,7 +603,7 @@ client cluster GeneralCommissioning = 48 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -611,7 +611,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -667,7 +667,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ client cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -683,7 +683,7 @@ client cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -692,13 +692,13 @@ client cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -813,7 +813,7 @@ client cluster NetworkCommissioning = 49 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -829,7 +829,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -838,13 +838,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -953,13 +953,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -967,7 +967,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -990,7 +990,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1000,7 +1000,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1014,7 +1014,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1022,14 +1022,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1095,7 +1095,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1127,19 +1127,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1149,7 +1149,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1288,19 +1288,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1309,7 +1309,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1319,7 +1319,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1360,7 +1360,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1373,7 +1373,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1399,13 +1399,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1440,12 +1440,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ client cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1564,12 +1564,12 @@ client cluster OperationalCredentials = 62 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1680,12 +1680,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1809,17 +1809,17 @@ server cluster WakeOnLan = 1283 { /** This cluster provides an interface for controlling the current Channel on a device. */ server cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -1874,7 +1874,7 @@ server cluster Channel = 1284 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ server cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -1909,7 +1909,7 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -1918,14 +1918,14 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -1981,7 +1981,7 @@ server cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ server cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -1996,7 +1996,7 @@ server cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -2045,7 +2045,7 @@ server cluster LowPower = 1288 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ server cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -2134,13 +2134,13 @@ server cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -2166,18 +2166,18 @@ server cluster KeypadInput = 1289 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -2194,12 +2194,12 @@ server cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -2272,7 +2272,7 @@ server cluster ContentLauncher = 1290 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ server cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -2281,7 +2281,7 @@ server cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -2315,13 +2315,13 @@ server cluster AudioOutput = 1291 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ server cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -2369,7 +2369,7 @@ server cluster ApplicationLauncher = 1292 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ server cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 0891d9589c9f4c..78c2a6aca45cb0 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -43,11 +43,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -112,33 +112,33 @@ server cluster Groups = 4 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -181,23 +181,23 @@ client cluster OnOff = 6 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ client cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -317,7 +317,7 @@ server cluster BinaryInputBasic = 15 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ client cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -348,7 +348,7 @@ client cluster Descriptor = 29 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -400,13 +400,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -414,7 +414,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -472,7 +472,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -496,7 +496,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -577,7 +577,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -592,12 +592,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -617,13 +617,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -638,7 +638,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -646,7 +646,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -702,7 +702,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -718,7 +718,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -727,13 +727,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -842,7 +842,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -852,7 +852,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -866,7 +866,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -874,14 +874,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -947,7 +947,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -979,19 +979,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1000,7 +1000,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1010,7 +1010,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1051,7 +1051,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1064,7 +1064,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1090,13 +1090,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1131,12 +1131,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1247,12 +1247,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1339,17 +1339,17 @@ client cluster WakeOnLan = 1283 { /** This cluster provides an interface for controlling the current Channel on a device. */ client cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -1407,7 +1407,7 @@ client cluster Channel = 1284 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ client cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -1443,7 +1443,7 @@ client cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ client cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -1452,14 +1452,14 @@ client cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -1526,7 +1526,7 @@ client cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ client cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -1541,7 +1541,7 @@ client cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -1595,7 +1595,7 @@ client cluster LowPower = 1288 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ client cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -1684,13 +1684,13 @@ client cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -1717,18 +1717,18 @@ client cluster KeypadInput = 1289 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -1745,12 +1745,12 @@ client cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -1825,7 +1825,7 @@ client cluster ContentLauncher = 1290 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ client cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -1834,7 +1834,7 @@ client cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -1870,13 +1870,13 @@ client cluster AudioOutput = 1291 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -1927,7 +1927,7 @@ client cluster ApplicationLauncher = 1292 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ client cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; diff --git a/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter b/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter index e20e6d41f29309..16d17d15a169f1 100644 --- a/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter +++ b/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,14 +118,14 @@ server cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional server cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -240,33 +240,33 @@ provisional server cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ server cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -303,7 +303,7 @@ server cluster OnOff = 6 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -355,13 +355,13 @@ server cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -369,7 +369,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -427,7 +427,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -451,7 +451,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -515,20 +515,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ server cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -604,7 +604,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -619,12 +619,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -644,13 +644,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -665,7 +665,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -701,7 +701,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -715,20 +715,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -812,38 +812,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -895,7 +895,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -903,7 +903,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -959,7 +959,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -975,7 +975,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -984,13 +984,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1099,13 +1099,13 @@ server cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ server cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1113,7 +1113,7 @@ server cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1136,7 +1136,7 @@ server cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1146,7 +1146,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1160,7 +1160,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1168,14 +1168,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1241,7 +1241,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1273,19 +1273,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1295,7 +1295,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1434,19 +1434,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1455,7 +1455,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1465,7 +1465,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1506,7 +1506,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1519,7 +1519,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1545,13 +1545,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1586,12 +1586,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1702,12 +1702,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1807,7 +1807,7 @@ server cluster UserLabel = 65 { /** An interface to a generic way to secure a door */ server cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -1818,13 +1818,13 @@ server cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -1833,20 +1833,20 @@ server cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -1861,7 +1861,7 @@ server cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -1871,7 +1871,7 @@ server cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -1889,7 +1889,7 @@ server cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -1899,21 +1899,21 @@ server cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -1922,7 +1922,7 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -1931,7 +1931,7 @@ server cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -1945,7 +1945,7 @@ server cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -1953,7 +1953,7 @@ server cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -1961,7 +1961,7 @@ server cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -1969,7 +1969,7 @@ server cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -1982,13 +1982,13 @@ server cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -2001,7 +2001,7 @@ server cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2011,19 +2011,19 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -2032,7 +2032,7 @@ server cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -2043,7 +2043,7 @@ server cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -2051,14 +2051,14 @@ server cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -2072,7 +2072,7 @@ server cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -2082,13 +2082,13 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -2098,7 +2098,7 @@ server cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -2108,7 +2108,7 @@ server cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -2116,7 +2116,7 @@ server cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2126,7 +2126,7 @@ server cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -2365,53 +2365,53 @@ server cluster DoorLock = 257 { /** Attributes and commands for controlling the color properties of a color-capable light. */ server cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -2419,14 +2419,14 @@ server cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index 9251732f79fdbb..94883296466161 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ server cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ server cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -49,11 +49,11 @@ server cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ server cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -118,7 +118,7 @@ server cluster Groups = 4 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ server cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -151,13 +151,13 @@ server cluster Descriptor = 29 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ server cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -165,7 +165,7 @@ server cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -223,7 +223,7 @@ server cluster AccessControl = 31 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ server cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -247,7 +247,7 @@ server cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -310,20 +310,20 @@ server cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -384,13 +384,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ server cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -398,7 +398,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -477,7 +477,7 @@ server cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ server cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -492,12 +492,12 @@ server cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -517,13 +517,13 @@ server cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ server cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -537,7 +537,7 @@ server cluster UnitLocalization = 45 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ server cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -573,7 +573,7 @@ server cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -587,20 +587,20 @@ server cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -684,38 +684,38 @@ server cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -772,7 +772,7 @@ server cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ server cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -780,7 +780,7 @@ server cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -836,7 +836,7 @@ server cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ server cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -852,7 +852,7 @@ server cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -861,13 +861,13 @@ server cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -976,7 +976,7 @@ server cluster NetworkCommissioning = 49 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -986,7 +986,7 @@ server cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1000,7 +1000,7 @@ server cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1008,14 +1008,14 @@ server cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1081,7 +1081,7 @@ server cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1115,19 +1115,19 @@ server cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ server cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1137,7 +1137,7 @@ server cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1278,19 +1278,19 @@ server cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ server cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -1299,7 +1299,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -1309,7 +1309,7 @@ server cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1352,7 +1352,7 @@ server cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ server cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -1365,7 +1365,7 @@ server cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -1389,13 +1389,13 @@ server cluster EthernetNetworkDiagnostics = 55 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ server cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -1430,12 +1430,12 @@ server cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ server cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -1546,12 +1546,12 @@ server cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ server cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -1651,7 +1651,7 @@ server cluster UserLabel = 65 { /** Provides an interface for controlling and adjusting automatic window coverings. */ server cluster WindowCovering = 258 { - enum EndProductType : ENUM8 { + enum EndProductType : enum8 { kRollerShade = 0; kRomanShade = 1; kBalloonShade = 2; @@ -1679,7 +1679,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - enum Type : ENUM8 { + enum Type : enum8 { kRollerShade = 0; kRollerShade2Motor = 1; kRollerShadeExterior = 2; @@ -1693,7 +1693,7 @@ server cluster WindowCovering = 258 { kUnknown = 255; } - bitmap ConfigStatus : BITMAP8 { + bitmap ConfigStatus : bitmap8 { kOperational = 0x1; kOnlineReserved = 0x2; kLiftMovementReversed = 0x4; @@ -1703,7 +1703,7 @@ server cluster WindowCovering = 258 { kTiltEncoderControlled = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLift = 0x1; kTilt = 0x2; kPositionAwareLift = 0x4; @@ -1711,20 +1711,20 @@ server cluster WindowCovering = 258 { kPositionAwareTilt = 0x10; } - bitmap Mode : BITMAP8 { + bitmap Mode : bitmap8 { kMotorDirectionReversed = 0x1; kCalibrationMode = 0x2; kMaintenanceMode = 0x4; kLedFeedback = 0x8; } - bitmap OperationalStatus : BITMAP8 { + bitmap OperationalStatus : bitmap8 { kGlobal = 0x3; kLift = 0xC; kTilt = 0x30; } - bitmap SafetyStatus : BITMAP16 { + bitmap SafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTamperDetection = 0x2; kFailedCommunication = 0x4; diff --git a/src/app/zap-templates/partials/idl/cluster_definition.zapt b/src/app/zap-templates/partials/idl/cluster_definition.zapt index 54f6f687c9538a..ea8923f66c578b 100644 --- a/src/app/zap-templates/partials/idl/cluster_definition.zapt +++ b/src/app/zap-templates/partials/idl/cluster_definition.zapt @@ -8,7 +8,7 @@ cluster {{asUpperCamelCase name}} = {{!}} {{~code~}} {{/if}} { {{#zcl_enums}} - enum {{asUpperCamelCase name preserveAcronyms=true}} : ENUM{{multiply size 8}} { + enum {{asUpperCamelCase name preserveAcronyms=true}} : enum{{multiply size 8}} { {{#zcl_enum_items}} k{{asUpperCamelCase label preserveAcronyms=true}} = {{value}}; {{/zcl_enum_items}} @@ -16,7 +16,7 @@ cluster {{asUpperCamelCase name}} = {{!}} {{/zcl_enums}} {{#zcl_bitmaps}} - bitmap {{asUpperCamelCase name preserveAcronyms=true}} : BITMAP{{multiply size 8}} { + bitmap {{asUpperCamelCase name preserveAcronyms=true}} : bitmap{{multiply size 8}} { {{#zcl_bitmap_items}} k{{asUpperCamelCase label preserveAcronyms=true}} = {{asHex mask}}; {{/zcl_bitmap_items}} diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index e4dec560e8d8f2..a7a36bc38c00c3 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -3,7 +3,7 @@ /** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */ client cluster Identify = 3 { - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kBlink = 0; kBreathe = 1; kOkay = 2; @@ -12,11 +12,11 @@ client cluster Identify = 3 { kStopEffect = 255; } - enum EffectVariantEnum : ENUM8 { + enum EffectVariantEnum : enum8 { kDefault = 0; } - enum IdentifyTypeEnum : ENUM8 { + enum IdentifyTypeEnum : enum8 { kNone = 0; kLightOutput = 1; kVisibleIndicator = 2; @@ -51,11 +51,11 @@ client cluster Identify = 3 { /** Attributes and commands for group configuration and manipulation. */ client cluster Groups = 4 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kGroupNames = 0x1; } - bitmap NameSupportBitmap : BITMAP8 { + bitmap NameSupportBitmap : bitmap8 { kGroupNames = 0x80; } @@ -126,14 +126,14 @@ client cluster Groups = 4 { /** Attributes and commands for scene configuration and manipulation. */ provisional client cluster Scenes = 5 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSceneNames = 0x1; kExplicit = 0x2; kTableSize = 0x4; kFabricScenes = 0x8; } - bitmap ScenesCopyMode : BITMAP8 { + bitmap ScenesCopyMode : bitmap8 { kCopyAllScenes = 0x1; } @@ -304,33 +304,33 @@ provisional client cluster Scenes = 5 { /** Attributes and commands for switching devices between 'On' and 'Off' states. */ client cluster OnOff = 6 { - enum DelayedAllOffEffectVariantEnum : ENUM8 { + enum DelayedAllOffEffectVariantEnum : enum8 { kDelayedOffFastFade = 0; kNoFade = 1; kDelayedOffSlowFade = 2; } - enum DyingLightEffectVariantEnum : ENUM8 { + enum DyingLightEffectVariantEnum : enum8 { kDyingLightFadeOff = 0; } - enum EffectIdentifierEnum : ENUM8 { + enum EffectIdentifierEnum : enum8 { kDelayedAllOff = 0; kDyingLight = 1; } - enum StartUpOnOffEnum : ENUM8 { + enum StartUpOnOffEnum : enum8 { kOff = 0; kOn = 1; kToggle = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLighting = 0x1; kDeadFrontBehavior = 0x2; } - bitmap OnOffControlBitmap : BITMAP8 { + bitmap OnOffControlBitmap : bitmap8 { kAcceptOnlyWhenOn = 0x1; } @@ -385,23 +385,23 @@ client cluster OnOffSwitchConfiguration = 7 { /** Attributes and commands for controlling devices that can be set to a level between fully 'On' and fully 'Off.' */ client cluster LevelControl = 8 { - enum MoveMode : ENUM8 { + enum MoveMode : enum8 { kUp = 0; kDown = 1; } - enum StepMode : ENUM8 { + enum StepMode : enum8 { kUp = 0; kDown = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; kLighting = 0x2; kFrequency = 0x4; } - bitmap LevelControlOptions : BITMAP8 { + bitmap LevelControlOptions : bitmap8 { kExecuteIfOff = 0x1; kCoupleColorTempToLevel = 0x2; } @@ -537,7 +537,7 @@ provisional client cluster PulseWidthModulation = 28 { /** The Descriptor Cluster is meant to replace the support from the Zigbee Device Object (ZDO) for describing a node, its endpoints and clusters. */ client cluster Descriptor = 29 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTagList = 0x1; } @@ -590,13 +590,13 @@ client cluster Binding = 30 { and enforce Access Control for the Node's endpoints and their associated cluster instances. */ client cluster AccessControl = 31 { - enum AccessControlEntryAuthModeEnum : ENUM8 { + enum AccessControlEntryAuthModeEnum : enum8 { kPASE = 1; kCASE = 2; kGroup = 3; } - enum AccessControlEntryPrivilegeEnum : ENUM8 { + enum AccessControlEntryPrivilegeEnum : enum8 { kView = 1; kProxyView = 2; kOperate = 3; @@ -604,7 +604,7 @@ client cluster AccessControl = 31 { kAdminister = 5; } - enum ChangeTypeEnum : ENUM8 { + enum ChangeTypeEnum : enum8 { kChanged = 0; kAdded = 1; kRemoved = 2; @@ -660,19 +660,19 @@ client cluster AccessControl = 31 { /** This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information. */ client cluster Actions = 37 { - enum ActionErrorEnum : ENUM8 { + enum ActionErrorEnum : enum8 { kUnknown = 0; kInterrupted = 1; } - enum ActionStateEnum : ENUM8 { + enum ActionStateEnum : enum8 { kInactive = 0; kActive = 1; kPaused = 2; kDisabled = 3; } - enum ActionTypeEnum : ENUM8 { + enum ActionTypeEnum : enum8 { kOther = 0; kScene = 1; kSequence = 2; @@ -682,13 +682,13 @@ client cluster Actions = 37 { kAlarm = 6; } - enum EndpointListTypeEnum : ENUM8 { + enum EndpointListTypeEnum : enum8 { kOther = 0; kRoom = 1; kZone = 2; } - bitmap CommandBits : BITMAP16 { + bitmap CommandBits : bitmap16 { kInstantAction = 0x1; kInstantActionWithTransition = 0x2; kStartAction = 0x4; @@ -837,7 +837,7 @@ client cluster Actions = 37 { Commissioning and operational determination of Node characteristics, such as Vendor ID, Product ID and serial number, which apply to the whole Node. Also allows setting user device information such as location. */ client cluster BasicInformation = 40 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -861,7 +861,7 @@ client cluster BasicInformation = 40 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -928,20 +928,20 @@ client cluster BasicInformation = 40 { /** Provides an interface for providing OTA software updates */ client cluster OtaSoftwareUpdateProvider = 41 { - enum ApplyUpdateActionEnum : ENUM8 { + enum ApplyUpdateActionEnum : enum8 { kProceed = 0; kAwaitNextAction = 1; kDiscontinue = 2; } - enum DownloadProtocolEnum : ENUM8 { + enum DownloadProtocolEnum : enum8 { kBDXSynchronous = 0; kBDXAsynchronous = 1; kHTTPS = 2; kVendorSpecific = 3; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kUpdateAvailable = 0; kBusy = 1; kNotAvailable = 2; @@ -1002,13 +1002,13 @@ client cluster OtaSoftwareUpdateProvider = 41 { /** Provides an interface for downloading and applying OTA software updates */ client cluster OtaSoftwareUpdateRequestor = 42 { - enum AnnouncementReasonEnum : ENUM8 { + enum AnnouncementReasonEnum : enum8 { kSimpleAnnouncement = 0; kUpdateAvailable = 1; kUrgentUpdateAvailable = 2; } - enum ChangeReasonEnum : ENUM8 { + enum ChangeReasonEnum : enum8 { kUnknown = 0; kSuccess = 1; kFailure = 2; @@ -1016,7 +1016,7 @@ client cluster OtaSoftwareUpdateRequestor = 42 { kDelayByProvider = 4; } - enum UpdateStateEnum : ENUM8 { + enum UpdateStateEnum : enum8 { kUnknown = 0; kIdle = 1; kQuerying = 2; @@ -1096,7 +1096,7 @@ client cluster LocalizationConfiguration = 43 { or audibly convey time information need a mechanism by which they can be configured to use a user’s preferred format. */ client cluster TimeFormatLocalization = 44 { - enum CalendarTypeEnum : ENUM8 { + enum CalendarTypeEnum : enum8 { kBuddhist = 0; kChinese = 1; kCoptic = 2; @@ -1111,12 +1111,12 @@ client cluster TimeFormatLocalization = 44 { kTaiwanese = 11; } - enum HourFormatEnum : ENUM8 { + enum HourFormatEnum : enum8 { k12hr = 0; k24hr = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCalendarFormat = 0x1; } @@ -1136,13 +1136,13 @@ client cluster TimeFormatLocalization = 44 { user. As such, Nodes that visually or audibly convey measurable values to the user need a mechanism by which they can be configured to use a user’s preferred unit. */ client cluster UnitLocalization = 45 { - enum TempUnitEnum : ENUM8 { + enum TempUnitEnum : enum8 { kFahrenheit = 0; kCelsius = 1; kKelvin = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureUnit = 0x1; } @@ -1168,7 +1168,7 @@ client cluster PowerSourceConfiguration = 46 { /** This cluster is used to describe the configuration and capabilities of a physical power source that provides power to the Node. */ client cluster PowerSource = 47 { - enum BatApprovedChemistryEnum : ENUM16 { + enum BatApprovedChemistryEnum : enum16 { kUnspecified = 0; kAlkaline = 1; kLithiumCarbonFluoride = 2; @@ -1204,7 +1204,7 @@ client cluster PowerSource = 47 { kZincCerium = 32; } - enum BatChargeFaultEnum : ENUM8 { + enum BatChargeFaultEnum : enum8 { kUnspecified = 0; kAmbientTooHot = 1; kAmbientTooCold = 2; @@ -1218,20 +1218,20 @@ client cluster PowerSource = 47 { kSafetyTimeout = 10; } - enum BatChargeLevelEnum : ENUM8 { + enum BatChargeLevelEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum BatChargeStateEnum : ENUM8 { + enum BatChargeStateEnum : enum8 { kUnknown = 0; kIsCharging = 1; kIsAtFullCharge = 2; kIsNotCharging = 3; } - enum BatCommonDesignationEnum : ENUM16 { + enum BatCommonDesignationEnum : enum16 { kUnspecified = 0; kAAA = 1; kAA = 2; @@ -1315,38 +1315,38 @@ client cluster PowerSource = 47 { k32600 = 80; } - enum BatFaultEnum : ENUM8 { + enum BatFaultEnum : enum8 { kUnspecified = 0; kOverTemp = 1; kUnderTemp = 2; } - enum BatReplaceabilityEnum : ENUM8 { + enum BatReplaceabilityEnum : enum8 { kUnspecified = 0; kNotReplaceable = 1; kUserReplaceable = 2; kFactoryReplaceable = 3; } - enum PowerSourceStatusEnum : ENUM8 { + enum PowerSourceStatusEnum : enum8 { kUnspecified = 0; kActive = 1; kStandby = 2; kUnavailable = 3; } - enum WiredCurrentTypeEnum : ENUM8 { + enum WiredCurrentTypeEnum : enum8 { kAC = 0; kDC = 1; } - enum WiredFaultEnum : ENUM8 { + enum WiredFaultEnum : enum8 { kUnspecified = 0; kOverVoltage = 1; kUnderVoltage = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWired = 0x1; kBattery = 0x2; kRechargeable = 0x4; @@ -1425,7 +1425,7 @@ client cluster PowerSource = 47 { /** This cluster is used to manage global aspects of the Commissioning flow. */ client cluster GeneralCommissioning = 48 { - enum CommissioningErrorEnum : ENUM8 { + enum CommissioningErrorEnum : enum8 { kOK = 0; kValueOutsideRange = 1; kInvalidAuthentication = 2; @@ -1433,7 +1433,7 @@ client cluster GeneralCommissioning = 48 { kBusyWithOtherAdmin = 4; } - enum RegulatoryLocationTypeEnum : ENUM8 { + enum RegulatoryLocationTypeEnum : enum8 { kIndoor = 0; kOutdoor = 1; kIndoorOutdoor = 2; @@ -1492,7 +1492,7 @@ client cluster GeneralCommissioning = 48 { /** Functionality to configure, enable, disable network credentials and access on a Matter device. */ client cluster NetworkCommissioning = 49 { - enum NetworkCommissioningStatusEnum : ENUM8 { + enum NetworkCommissioningStatusEnum : enum8 { kSuccess = 0; kOutOfRange = 1; kBoundsExceeded = 2; @@ -1508,7 +1508,7 @@ client cluster NetworkCommissioning = 49 { kUnknownError = 12; } - enum WiFiBandEnum : ENUM8 { + enum WiFiBandEnum : enum8 { k2G4 = 0; k3G65 = 1; k5G = 2; @@ -1517,13 +1517,13 @@ client cluster NetworkCommissioning = 49 { k1G = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWiFiNetworkInterface = 0x1; kThreadNetworkInterface = 0x2; kEthernetNetworkInterface = 0x4; } - bitmap WiFiSecurityBitmap : BITMAP8 { + bitmap WiFiSecurityBitmap : bitmap8 { kUnencrypted = 0x1; kWEP = 0x2; kWPAPersonal = 0x4; @@ -1638,13 +1638,13 @@ client cluster NetworkCommissioning = 49 { /** The cluster provides commands for retrieving unstructured diagnostic logs from a Node that may be used to aid in diagnostics. */ client cluster DiagnosticLogs = 50 { - enum IntentEnum : ENUM8 { + enum IntentEnum : enum8 { kEndUserSupport = 0; kNetworkDiag = 1; kCrashLogs = 2; } - enum StatusEnum : ENUM8 { + enum StatusEnum : enum8 { kSuccess = 0; kExhausted = 1; kNoLogs = 2; @@ -1652,7 +1652,7 @@ client cluster DiagnosticLogs = 50 { kDenied = 4; } - enum TransferProtocolEnum : ENUM8 { + enum TransferProtocolEnum : enum8 { kResponsePayload = 0; kBDX = 1; } @@ -1683,7 +1683,7 @@ client cluster DiagnosticLogs = 50 { /** The General Diagnostics Cluster, along with other diagnostics clusters, provide a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ client cluster GeneralDiagnostics = 51 { - enum BootReasonEnum : ENUM8 { + enum BootReasonEnum : enum8 { kUnspecified = 0; kPowerOnReboot = 1; kBrownOutReset = 2; @@ -1693,7 +1693,7 @@ client cluster GeneralDiagnostics = 51 { kSoftwareReset = 6; } - enum HardwareFaultEnum : ENUM8 { + enum HardwareFaultEnum : enum8 { kUnspecified = 0; kRadio = 1; kSensor = 2; @@ -1707,7 +1707,7 @@ client cluster GeneralDiagnostics = 51 { kTamperDetected = 10; } - enum InterfaceTypeEnum : ENUM8 { + enum InterfaceTypeEnum : enum8 { kUnspecified = 0; kWiFi = 1; kEthernet = 2; @@ -1715,14 +1715,14 @@ client cluster GeneralDiagnostics = 51 { kThread = 4; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kHardwareFailure = 1; kNetworkJammed = 2; kConnectionFailed = 3; } - enum RadioFaultEnum : ENUM8 { + enum RadioFaultEnum : enum8 { kUnspecified = 0; kWiFiFault = 1; kCellularFault = 2; @@ -1790,7 +1790,7 @@ client cluster GeneralDiagnostics = 51 { /** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ client cluster SoftwareDiagnostics = 52 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kWaterMarks = 0x1; } @@ -1825,19 +1825,19 @@ client cluster SoftwareDiagnostics = 52 { /** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */ client cluster ThreadNetworkDiagnostics = 53 { - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum NetworkFaultEnum : ENUM8 { + enum NetworkFaultEnum : enum8 { kUnspecified = 0; kLinkDown = 1; kHardwareFailure = 2; kNetworkJammed = 3; } - enum RoutingRoleEnum : ENUM8 { + enum RoutingRoleEnum : enum8 { kUnspecified = 0; kUnassigned = 1; kSleepyEndDevice = 2; @@ -1847,7 +1847,7 @@ client cluster ThreadNetworkDiagnostics = 53 { kLeader = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; kMLECounts = 0x4; @@ -1989,19 +1989,19 @@ client cluster ThreadNetworkDiagnostics = 53 { /** The Wi-Fi Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */ client cluster WiFiNetworkDiagnostics = 54 { - enum AssociationFailureCauseEnum : ENUM8 { + enum AssociationFailureCauseEnum : enum8 { kUnknown = 0; kAssociationFailed = 1; kAuthenticationFailed = 2; kSsidNotFound = 3; } - enum ConnectionStatusEnum : ENUM8 { + enum ConnectionStatusEnum : enum8 { kConnected = 0; kNotConnected = 1; } - enum SecurityTypeEnum : ENUM8 { + enum SecurityTypeEnum : enum8 { kUnspecified = 0; kNone = 1; kWEP = 2; @@ -2010,7 +2010,7 @@ client cluster WiFiNetworkDiagnostics = 54 { kWPA3 = 5; } - enum WiFiVersionEnum : ENUM8 { + enum WiFiVersionEnum : enum8 { kA = 0; kB = 1; kG = 2; @@ -2020,7 +2020,7 @@ client cluster WiFiNetworkDiagnostics = 54 { kAh = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -2064,7 +2064,7 @@ client cluster WiFiNetworkDiagnostics = 54 { /** 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 Administrative Node in diagnosing potential problems. */ client cluster EthernetNetworkDiagnostics = 55 { - enum PHYRateEnum : ENUM8 { + enum PHYRateEnum : enum8 { kRate10M = 0; kRate100M = 1; kRate1G = 2; @@ -2077,7 +2077,7 @@ client cluster EthernetNetworkDiagnostics = 55 { kRate400G = 9; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPacketCounts = 0x1; kErrorCounts = 0x2; } @@ -2104,7 +2104,7 @@ client cluster EthernetNetworkDiagnostics = 55 { /** Accurate time is required for a number of reasons, including scheduling, display and validating security materials. */ client cluster TimeSynchronization = 56 { - enum GranularityEnum : ENUM8 { + enum GranularityEnum : enum8 { kNoTimeGranularity = 0; kMinutesGranularity = 1; kSecondsGranularity = 2; @@ -2112,11 +2112,11 @@ client cluster TimeSynchronization = 56 { kMicrosecondsGranularity = 4; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kTimeNotAccepted = 2; } - enum TimeSourceEnum : ENUM8 { + enum TimeSourceEnum : enum8 { kNone = 0; kUnknown = 1; kAdmin = 2; @@ -2136,13 +2136,13 @@ client cluster TimeSynchronization = 56 { kGNSS = 16; } - enum TimeZoneDatabaseEnum : ENUM8 { + enum TimeZoneDatabaseEnum : enum8 { kFull = 0; kPartial = 1; kNone = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTimeZone = 0x1; kNTPClient = 0x2; kNTPServer = 0x4; @@ -2253,7 +2253,7 @@ client cluster TimeSynchronization = 56 { collection of attributes that the Node MAY collect to aid in conveying information regarding the Bridged Device to a user, such as the vendor name, the model name, or user-assigned name. */ client cluster BridgedDeviceBasicInformation = 57 { - enum ColorEnum : ENUM8 { + enum ColorEnum : enum8 { kBlack = 0; kNavy = 1; kGreen = 2; @@ -2277,7 +2277,7 @@ client cluster BridgedDeviceBasicInformation = 57 { kGold = 20; } - enum ProductFinishEnum : ENUM8 { + enum ProductFinishEnum : enum8 { kOther = 0; kMatte = 1; kSatin = 2; @@ -2333,7 +2333,7 @@ client cluster BridgedDeviceBasicInformation = 57 { Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */ client cluster Switch = 59 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLatchingSwitch = 0x1; kMomentarySwitch = 0x2; kMomentarySwitchRelease = 0x4; @@ -2384,13 +2384,13 @@ client cluster Switch = 59 { /** Commands to trigger a Node to allow a new Administrator to commission it. */ client cluster AdministratorCommissioning = 60 { - enum CommissioningWindowStatusEnum : ENUM8 { + enum CommissioningWindowStatusEnum : enum8 { kWindowNotOpen = 0; kEnhancedWindowOpen = 1; kBasicWindowOpen = 2; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kBusy = 2; kPAKEParameterError = 3; kWindowNotOpen = 4; @@ -2428,12 +2428,12 @@ client cluster AdministratorCommissioning = 60 { /** This cluster is used to add or remove Operational Credentials on a Commissionee or Node, as well as manage the associated Fabrics. */ client cluster OperationalCredentials = 62 { - enum CertificateChainTypeEnum : ENUM8 { + enum CertificateChainTypeEnum : enum8 { kDACCertificate = 1; kPAICertificate = 2; } - enum NodeOperationalCertStatusEnum : ENUM8 { + enum NodeOperationalCertStatusEnum : enum8 { kOK = 0; kInvalidPublicKey = 1; kInvalidNodeOpId = 2; @@ -2552,12 +2552,12 @@ client cluster OperationalCredentials = 62 { /** The Group Key Management Cluster is the mechanism by which group keys are managed. */ client cluster GroupKeyManagement = 63 { - enum GroupKeySecurityPolicyEnum : ENUM8 { + enum GroupKeySecurityPolicyEnum : enum8 { kTrustFirst = 0; kCacheAndSync = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCacheAndSync = 0x1; } @@ -2706,7 +2706,7 @@ client cluster BooleanState = 69 { /** Allows servers to ensure that listed clients are notified when a server is available for communication. */ client cluster IcdManagement = 70 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCheckInProtocolSupport = 0x1; } @@ -2755,7 +2755,7 @@ client cluster IcdManagement = 70 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster ModeSelect = 80 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2793,14 +2793,14 @@ client cluster ModeSelect = 80 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster LaundryWasherMode = 81 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kNormal = 16384; kDelicate = 16385; kHeavy = 16386; kWhites = 16387; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2842,12 +2842,12 @@ client cluster LaundryWasherMode = 81 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kRapidCool = 16384; kRapidFreeze = 16385; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2889,14 +2889,14 @@ client cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 { /** This cluster supports remotely monitoring and controling the different typs of functionality available to a washing device, such as a washing machine. */ client cluster LaundryWasherControls = 83 { - enum NumberOfRinsesEnum : ENUM8 { + enum NumberOfRinsesEnum : enum8 { kNone = 0; kNormal = 1; kExtra = 2; kMax = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSpin = 0x1; kRinse = 0x2; } @@ -2915,12 +2915,12 @@ client cluster LaundryWasherControls = 83 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster RvcRunMode = 84 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kIdle = 16384; kCleaning = 16385; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kStuck = 65; kDustBinMissing = 66; kDustBinFull = 67; @@ -2931,7 +2931,7 @@ client cluster RvcRunMode = 84 { kBatteryLow = 72; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -2973,17 +2973,17 @@ client cluster RvcRunMode = 84 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster RvcCleanMode = 85 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kDeepClean = 16384; kVacuum = 16385; kMop = 16386; } - enum StatusCode : ENUM8 { + enum StatusCode : enum8 { kCleaningInProgress = 64; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -3025,7 +3025,7 @@ client cluster RvcCleanMode = 85 { /** Attributes and commands for configuring the temperature control, and reporting temperature. */ client cluster TemperatureControl = 86 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kTemperatureNumber = 0x1; kTemperatureLevel = 0x2; kTemperatureStep = 0x4; @@ -3055,7 +3055,7 @@ client cluster TemperatureControl = 86 { /** Attributes and commands for configuring the Refrigerator alarm. */ client cluster RefrigeratorAlarm = 87 { - bitmap AlarmMap : BITMAP32 { + bitmap AlarmMap : bitmap32 { kDoorOpen = 0x1; } @@ -3079,13 +3079,13 @@ client cluster RefrigeratorAlarm = 87 { /** Attributes and commands for selecting a mode from a list of supported options. */ client cluster DishwasherMode = 89 { - enum ModeTag : ENUM16 { + enum ModeTag : enum16 { kNormal = 16384; kHeavy = 16385; kLight = 16386; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kOnOff = 0x1; } @@ -3127,7 +3127,7 @@ client cluster DishwasherMode = 89 { /** Attributes for reporting air quality classification */ client cluster AirQuality = 91 { - enum AirQualityEnum : ENUM8 { + enum AirQualityEnum : enum8 { kUnknown = 0; kGood = 1; kFair = 2; @@ -3137,7 +3137,7 @@ client cluster AirQuality = 91 { kExtremelyPoor = 6; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kFair = 0x1; kModerate = 0x2; kVeryPoor = 0x4; @@ -3155,25 +3155,25 @@ client cluster AirQuality = 91 { /** This cluster provides an interface for observing and managing the state of smoke and CO alarms. */ client cluster SmokeCoAlarm = 92 { - enum AlarmStateEnum : ENUM8 { + enum AlarmStateEnum : enum8 { kNormal = 0; kWarning = 1; kCritical = 2; } - enum ContaminationStateEnum : ENUM8 { + enum ContaminationStateEnum : enum8 { kNormal = 0; kLow = 1; kWarning = 2; kCritical = 3; } - enum EndOfServiceEnum : ENUM8 { + enum EndOfServiceEnum : enum8 { kNormal = 0; kExpired = 1; } - enum ExpressedStateEnum : ENUM8 { + enum ExpressedStateEnum : enum8 { kNormal = 0; kSmokeAlarm = 1; kCOAlarm = 2; @@ -3185,18 +3185,18 @@ client cluster SmokeCoAlarm = 92 { kInterconnectCO = 8; } - enum MuteStateEnum : ENUM8 { + enum MuteStateEnum : enum8 { kNotMuted = 0; kMuted = 1; } - enum SensitivityEnum : ENUM8 { + enum SensitivityEnum : enum8 { kHigh = 0; kStandard = 1; kLow = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kSmokeAlarm = 0x1; kCOAlarm = 0x2; } @@ -3265,7 +3265,7 @@ client cluster SmokeCoAlarm = 92 { /** Attributes and commands for configuring the Dishwasher alarm. */ client cluster DishwasherAlarm = 93 { - bitmap AlarmMap : BITMAP32 { + bitmap AlarmMap : bitmap32 { kInflowError = 0x1; kDrainError = 0x2; kDoorError = 0x4; @@ -3274,7 +3274,7 @@ client cluster DishwasherAlarm = 93 { kWaterLevelError = 0x20; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kReset = 0x1; } @@ -3312,14 +3312,14 @@ client cluster DishwasherAlarm = 93 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of any device where a state machine is a part of the operation. */ client cluster OperationalState = 96 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kNoError = 0; kUnableToStartOrResume = 1; kUnableToCompleteOperation = 2; kCommandInvalidInState = 3; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kStopped = 0; kRunning = 1; kPaused = 2; @@ -3376,7 +3376,7 @@ client cluster OperationalState = 96 { /** This cluster supports remotely monitoring and, where supported, changing the operational state of a Robotic Vacuum. */ client cluster RvcOperationalState = 97 { - enum ErrorStateEnum : ENUM8 { + enum ErrorStateEnum : enum8 { kFailedToFindChargingDock = 64; kStuck = 65; kDustBinMissing = 66; @@ -3387,7 +3387,7 @@ client cluster RvcOperationalState = 97 { kMopCleaningPadMissing = 71; } - enum OperationalStateEnum : ENUM8 { + enum OperationalStateEnum : enum8 { kSeekingCharger = 64; kCharging = 65; kDocked = 66; @@ -3443,18 +3443,18 @@ client cluster RvcOperationalState = 97 { /** Attributes and commands for monitoring HEPA filters in a device */ client cluster HepaFilterMonitoring = 113 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -3462,7 +3462,7 @@ client cluster HepaFilterMonitoring = 113 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -3492,18 +3492,18 @@ client cluster HepaFilterMonitoring = 113 { /** Attributes and commands for monitoring activated carbon filters in a device */ client cluster ActivatedCarbonFilterMonitoring = 114 { - enum ChangeIndicationEnum : ENUM8 { + enum ChangeIndicationEnum : enum8 { kOK = 0; kWarning = 1; kCritical = 2; } - enum DegradationDirectionEnum : ENUM8 { + enum DegradationDirectionEnum : enum8 { kUp = 0; kDown = 1; } - enum ProductIdentifierTypeEnum : ENUM8 { + enum ProductIdentifierTypeEnum : enum8 { kUPC = 0; kGTIN8 = 1; kEAN = 2; @@ -3511,7 +3511,7 @@ client cluster ActivatedCarbonFilterMonitoring = 114 { kOEM = 4; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kCondition = 0x1; kWarning = 0x2; kReplacementProductList = 0x4; @@ -3541,7 +3541,7 @@ client cluster ActivatedCarbonFilterMonitoring = 114 { /** An interface to a generic way to secure a door */ client cluster DoorLock = 257 { - enum AlarmCodeEnum : ENUM8 { + enum AlarmCodeEnum : enum8 { kLockJammed = 0; kLockFactoryReset = 1; kLockRadioPowerCycled = 3; @@ -3552,13 +3552,13 @@ client cluster DoorLock = 257 { kForcedUser = 8; } - enum CredentialRuleEnum : ENUM8 { + enum CredentialRuleEnum : enum8 { kSingle = 0; kDual = 1; kTri = 2; } - enum CredentialTypeEnum : ENUM8 { + enum CredentialTypeEnum : enum8 { kProgrammingPIN = 0; kPIN = 1; kRFID = 2; @@ -3567,20 +3567,20 @@ client cluster DoorLock = 257 { kFace = 5; } - enum DataOperationTypeEnum : ENUM8 { + enum DataOperationTypeEnum : enum8 { kAdd = 0; kClear = 1; kModify = 2; } - enum DlLockState : ENUM8 { + enum DlLockState : enum8 { kNotFullyLocked = 0; kLocked = 1; kUnlocked = 2; kUnlatched = 3; } - enum DlLockType : ENUM8 { + enum DlLockType : enum8 { kDeadBolt = 0; kMagnetic = 1; kOther = 2; @@ -3595,7 +3595,7 @@ client cluster DoorLock = 257 { kEurocylinder = 11; } - enum DlStatus : ENUM8 { + enum DlStatus : enum8 { kSuccess = 0; kFailure = 1; kDuplicate = 2; @@ -3605,7 +3605,7 @@ client cluster DoorLock = 257 { kNotFound = 139; } - enum DoorLockOperationEventCode : ENUM8 { + enum DoorLockOperationEventCode : enum8 { kUnknownOrMfgSpecific = 0; kLock = 1; kUnlock = 2; @@ -3623,7 +3623,7 @@ client cluster DoorLock = 257 { kManualUnlock = 14; } - enum DoorLockProgrammingEventCode : ENUM8 { + enum DoorLockProgrammingEventCode : enum8 { kUnknownOrMfgSpecific = 0; kMasterCodeChanged = 1; kPinAdded = 2; @@ -3633,21 +3633,21 @@ client cluster DoorLock = 257 { kIdDeleted = 6; } - enum DoorLockSetPinOrIdStatus : ENUM8 { + enum DoorLockSetPinOrIdStatus : enum8 { kSuccess = 0; kGeneralFailure = 1; kMemoryFull = 2; kDuplicateCodeError = 3; } - enum DoorLockUserStatus : ENUM8 { + enum DoorLockUserStatus : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; kNotSupported = 255; } - enum DoorLockUserType : ENUM8 { + enum DoorLockUserType : enum8 { kUnrestricted = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3656,7 +3656,7 @@ client cluster DoorLock = 257 { kNotSupported = 255; } - enum DoorStateEnum : ENUM8 { + enum DoorStateEnum : enum8 { kDoorOpen = 0; kDoorClosed = 1; kDoorJammed = 2; @@ -3665,7 +3665,7 @@ client cluster DoorLock = 257 { kDoorAjar = 5; } - enum LockDataTypeEnum : ENUM8 { + enum LockDataTypeEnum : enum8 { kUnspecified = 0; kProgrammingCode = 1; kUserIndex = 2; @@ -3679,7 +3679,7 @@ client cluster DoorLock = 257 { kFace = 10; } - enum LockOperationTypeEnum : ENUM8 { + enum LockOperationTypeEnum : enum8 { kLock = 0; kUnlock = 1; kNonAccessUserEvent = 2; @@ -3687,7 +3687,7 @@ client cluster DoorLock = 257 { kUnlatch = 4; } - enum OperatingModeEnum : ENUM8 { + enum OperatingModeEnum : enum8 { kNormal = 0; kVacation = 1; kPrivacy = 2; @@ -3695,7 +3695,7 @@ client cluster DoorLock = 257 { kPassage = 4; } - enum OperationErrorEnum : ENUM8 { + enum OperationErrorEnum : enum8 { kUnspecified = 0; kInvalidCredential = 1; kDisabledUserDenied = 2; @@ -3703,7 +3703,7 @@ client cluster DoorLock = 257 { kInsufficientBattery = 4; } - enum OperationSourceEnum : ENUM8 { + enum OperationSourceEnum : enum8 { kUnspecified = 0; kManual = 1; kProprietaryRemote = 2; @@ -3716,13 +3716,13 @@ client cluster DoorLock = 257 { kBiometric = 9; } - enum UserStatusEnum : ENUM8 { + enum UserStatusEnum : enum8 { kAvailable = 0; kOccupiedEnabled = 1; kOccupiedDisabled = 3; } - enum UserTypeEnum : ENUM8 { + enum UserTypeEnum : enum8 { kUnrestrictedUser = 0; kYearDayScheduleUser = 1; kWeekDayScheduleUser = 2; @@ -3735,7 +3735,7 @@ client cluster DoorLock = 257 { kRemoteOnlyUser = 9; } - bitmap DaysMaskMap : BITMAP8 { + bitmap DaysMaskMap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3745,19 +3745,19 @@ client cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap DlCredentialRuleMask : BITMAP8 { + bitmap DlCredentialRuleMask : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlCredentialRulesSupport : BITMAP8 { + bitmap DlCredentialRulesSupport : bitmap8 { kSingle = 0x1; kDual = 0x2; kTri = 0x4; } - bitmap DlDefaultConfigurationRegister : BITMAP16 { + bitmap DlDefaultConfigurationRegister : bitmap16 { kEnableLocalProgrammingEnabled = 0x1; kKeypadInterfaceDefaultAccessEnabled = 0x2; kRemoteInterfaceDefaultAccessIsEnabled = 0x4; @@ -3766,7 +3766,7 @@ client cluster DoorLock = 257 { kLEDSettingsSet = 0x80; } - bitmap DlKeypadOperationEventMask : BITMAP16 { + bitmap DlKeypadOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3777,7 +3777,7 @@ client cluster DoorLock = 257 { kNonAccessUserOpEvent = 0x80; } - bitmap DlKeypadProgrammingEventMask : BITMAP16 { + bitmap DlKeypadProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3785,14 +3785,14 @@ client cluster DoorLock = 257 { kPINChanged = 0x10; } - bitmap DlLocalProgrammingFeatures : BITMAP8 { + bitmap DlLocalProgrammingFeatures : bitmap8 { kAddUsersCredentialsSchedulesLocally = 0x1; kModifyUsersCredentialsSchedulesLocally = 0x2; kClearUsersCredentialsSchedulesLocally = 0x4; kAdjustLockSettingsLocally = 0x8; } - bitmap DlManualOperationEventMask : BITMAP16 { + bitmap DlManualOperationEventMask : bitmap16 { kUnknown = 0x1; kThumbturnLock = 0x2; kThumbturnUnlock = 0x4; @@ -3806,7 +3806,7 @@ client cluster DoorLock = 257 { kManualUnlock = 0x400; } - bitmap DlRFIDOperationEventMask : BITMAP16 { + bitmap DlRFIDOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3816,13 +3816,13 @@ client cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRFIDProgrammingEventMask : BITMAP16 { + bitmap DlRFIDProgrammingEventMask : bitmap16 { kUnknown = 0x1; kRFIDCodeAdded = 0x20; kRFIDCodeCleared = 0x40; } - bitmap DlRemoteOperationEventMask : BITMAP16 { + bitmap DlRemoteOperationEventMask : bitmap16 { kUnknown = 0x1; kLock = 0x2; kUnlock = 0x4; @@ -3832,7 +3832,7 @@ client cluster DoorLock = 257 { kUnlockInvalidSchedule = 0x40; } - bitmap DlRemoteProgrammingEventMask : BITMAP16 { + bitmap DlRemoteProgrammingEventMask : bitmap16 { kUnknown = 0x1; kProgrammingPINChanged = 0x2; kPINAdded = 0x4; @@ -3842,7 +3842,7 @@ client cluster DoorLock = 257 { kRFIDCodeCleared = 0x40; } - bitmap DlSupportedOperatingModes : BITMAP16 { + bitmap DlSupportedOperatingModes : bitmap16 { kNormal = 0x1; kVacation = 0x2; kPrivacy = 0x4; @@ -3850,7 +3850,7 @@ client cluster DoorLock = 257 { kPassage = 0x10; } - bitmap DoorLockDayOfWeek : BITMAP8 { + bitmap DoorLockDayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3860,7 +3860,7 @@ client cluster DoorLock = 257 { kSaturday = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kPINCredential = 0x1; kRFIDCredential = 0x2; kFingerCredentials = 0x4; @@ -4161,7 +4161,7 @@ client cluster DoorLock = 257 { /** Provides an interface for controlling and adjusting automatic window coverings. */ client cluster WindowCovering = 258 { - enum EndProductType : ENUM8 { + enum EndProductType : enum8 { kRollerShade = 0; kRomanShade = 1; kBalloonShade = 2; @@ -4189,7 +4189,7 @@ client cluster WindowCovering = 258 { kUnknown = 255; } - enum Type : ENUM8 { + enum Type : enum8 { kRollerShade = 0; kRollerShade2Motor = 1; kRollerShadeExterior = 2; @@ -4203,7 +4203,7 @@ client cluster WindowCovering = 258 { kUnknown = 255; } - bitmap ConfigStatus : BITMAP8 { + bitmap ConfigStatus : bitmap8 { kOperational = 0x1; kOnlineReserved = 0x2; kLiftMovementReversed = 0x4; @@ -4213,7 +4213,7 @@ client cluster WindowCovering = 258 { kTiltEncoderControlled = 0x40; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kLift = 0x1; kTilt = 0x2; kPositionAwareLift = 0x4; @@ -4221,20 +4221,20 @@ client cluster WindowCovering = 258 { kPositionAwareTilt = 0x10; } - bitmap Mode : BITMAP8 { + bitmap Mode : bitmap8 { kMotorDirectionReversed = 0x1; kCalibrationMode = 0x2; kMaintenanceMode = 0x4; kLedFeedback = 0x8; } - bitmap OperationalStatus : BITMAP8 { + bitmap OperationalStatus : bitmap8 { kGlobal = 0x3; kLift = 0xC; kTilt = 0x30; } - bitmap SafetyStatus : BITMAP16 { + bitmap SafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTamperDetection = 0x2; kFailedCommunication = 0x4; @@ -4312,11 +4312,11 @@ client cluster WindowCovering = 258 { /** This cluster provides control of a barrier (garage door). */ client cluster BarrierControl = 259 { - bitmap BarrierControlCapabilities : BITMAP8 { + bitmap BarrierControlCapabilities : bitmap8 { kPartialBarrier = 0x1; } - bitmap BarrierControlSafetyStatus : BITMAP16 { + bitmap BarrierControlSafetyStatus : bitmap16 { kRemoteLockout = 0x1; kTemperDetected = 0x2; kFailedCommunication = 0x4; @@ -4352,7 +4352,7 @@ client cluster BarrierControl = 259 { /** An interface for configuring and controlling pumps. */ client cluster PumpConfigurationAndControl = 512 { - enum ControlModeEnum : ENUM8 { + enum ControlModeEnum : enum8 { kConstantSpeed = 0; kConstantPressure = 1; kProportionalPressure = 2; @@ -4361,14 +4361,14 @@ client cluster PumpConfigurationAndControl = 512 { kAutomatic = 7; } - enum OperationModeEnum : ENUM8 { + enum OperationModeEnum : enum8 { kNormal = 0; kMinimum = 1; kMaximum = 2; kLocal = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kConstantPressure = 0x1; kCompensatedPressure = 0x2; kConstantFlow = 0x4; @@ -4378,7 +4378,7 @@ client cluster PumpConfigurationAndControl = 512 { kLocalOperation = 0x40; } - bitmap PumpStatusBitmap : BITMAP16 { + bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; kSupplyfault = 0x2; kSpeedLow = 0x4; @@ -4474,13 +4474,13 @@ client cluster PumpConfigurationAndControl = 512 { /** An interface for configuring and controlling the functionality of a thermostat. */ client cluster Thermostat = 513 { - enum SetpointAdjustMode : ENUM8 { + enum SetpointAdjustMode : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : ENUM8 { + enum ThermostatControlSequence : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4489,13 +4489,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : ENUM8 { + enum ThermostatRunningMode : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : ENUM8 { + enum ThermostatSystemMode : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4507,7 +4507,7 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : BITMAP8 { + bitmap DayOfWeek : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4518,7 +4518,7 @@ client cluster Thermostat = 513 { kAway = 0x80; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; @@ -4528,7 +4528,7 @@ client cluster Thermostat = 513 { kLocalTemperatureNotExposed = 0x40; } - bitmap ModeForSequence : BITMAP8 { + bitmap ModeForSequence : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } @@ -4631,12 +4631,12 @@ client cluster Thermostat = 513 { /** An interface for controlling a fan in a heating/cooling system. */ provisional client cluster FanControl = 514 { - enum AirflowDirectionEnum : ENUM8 { + enum AirflowDirectionEnum : enum8 { kForward = 0; kReverse = 1; } - enum FanModeEnum : ENUM8 { + enum FanModeEnum : enum8 { kOff = 0; kLow = 1; kMedium = 2; @@ -4646,7 +4646,7 @@ provisional client cluster FanControl = 514 { kSmart = 6; } - enum FanModeSequenceEnum : ENUM8 { + enum FanModeSequenceEnum : enum8 { kOffLowMedHigh = 0; kOffLowHigh = 1; kOffLowMedHighAuto = 2; @@ -4655,12 +4655,12 @@ provisional client cluster FanControl = 514 { kOffOn = 5; } - enum StepDirectionEnum : ENUM8 { + enum StepDirectionEnum : enum8 { kIncrease = 0; kDecrease = 1; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kMultiSpeed = 0x1; kAuto = 0x2; kRocking = 0x4; @@ -4669,13 +4669,13 @@ provisional client cluster FanControl = 514 { kAirflowDirection = 0x20; } - bitmap RockBitmap : BITMAP8 { + bitmap RockBitmap : bitmap8 { kRockLeftRight = 0x1; kRockUpDown = 0x2; kRockRound = 0x4; } - bitmap WindBitmap : BITMAP8 { + bitmap WindBitmap : bitmap8 { kSleepWind = 0x1; kNaturalWind = 0x2; } @@ -4724,53 +4724,53 @@ client cluster ThermostatUserInterfaceConfiguration = 516 { /** Attributes and commands for controlling the color properties of a color-capable light. */ client cluster ColorControl = 768 { - enum ColorLoopAction : ENUM8 { + enum ColorLoopAction : enum8 { kDeactivate = 0; kActivateFromColorLoopStartEnhancedHue = 1; kActivateFromEnhancedCurrentHue = 2; } - enum ColorLoopDirection : ENUM8 { + enum ColorLoopDirection : enum8 { kDecrementHue = 0; kIncrementHue = 1; } - enum ColorMode : ENUM8 { + enum ColorMode : enum8 { kCurrentHueAndCurrentSaturation = 0; kCurrentXAndCurrentY = 1; kColorTemperature = 2; } - enum HueDirection : ENUM8 { + enum HueDirection : enum8 { kShortestDistance = 0; kLongestDistance = 1; kUp = 2; kDown = 3; } - enum HueMoveMode : ENUM8 { + enum HueMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum HueStepMode : ENUM8 { + enum HueStepMode : enum8 { kUp = 1; kDown = 3; } - enum SaturationMoveMode : ENUM8 { + enum SaturationMoveMode : enum8 { kStop = 0; kUp = 1; kDown = 3; } - enum SaturationStepMode : ENUM8 { + enum SaturationStepMode : enum8 { kUp = 1; kDown = 3; } - bitmap ColorCapabilities : BITMAP16 { + bitmap ColorCapabilities : bitmap16 { kHueSaturationSupported = 0x1; kEnhancedHueSupported = 0x2; kColorLoopSupported = 0x4; @@ -4778,14 +4778,14 @@ client cluster ColorControl = 768 { kColorTemperatureSupported = 0x10; } - bitmap ColorLoopUpdateFlags : BITMAP8 { + bitmap ColorLoopUpdateFlags : bitmap8 { kUpdateAction = 0x1; kUpdateDirection = 0x2; kUpdateTime = 0x4; kUpdateStartHue = 0x8; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kHueAndSaturation = 0x1; kEnhancedHue = 0x2; kColorLoop = 0x4; @@ -5042,12 +5042,12 @@ client cluster ColorControl = 768 { /** Attributes and commands for configuring a lighting ballast. */ provisional client cluster BallastConfiguration = 769 { - bitmap BallastStatusBitmap : BITMAP8 { + bitmap BallastStatusBitmap : bitmap8 { kBallastNonOperational = 0x1; kLampFailure = 0x2; } - bitmap LampAlarmModeBitmap : BITMAP8 { + bitmap LampAlarmModeBitmap : bitmap8 { kLampBurnHours = 0x1; } @@ -5075,7 +5075,7 @@ provisional client cluster BallastConfiguration = 769 { /** Attributes and commands for configuring the measurement of illuminance, and reporting illuminance measurements. */ client cluster IlluminanceMeasurement = 1024 { - enum LightSensorTypeEnum : ENUM8 { + enum LightSensorTypeEnum : enum8 { kPhotodiode = 0; kCMOS = 1; } @@ -5109,7 +5109,7 @@ client cluster TemperatureMeasurement = 1026 { /** Attributes and commands for configuring the measurement of pressure, and reporting pressure measurements. */ client cluster PressureMeasurement = 1027 { - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kExtended = 0x1; } @@ -5160,18 +5160,18 @@ client cluster RelativeHumidityMeasurement = 1029 { /** Attributes and commands for configuring occupancy sensing, and reporting occupancy status. */ client cluster OccupancySensing = 1030 { - enum OccupancySensorTypeEnum : ENUM8 { + enum OccupancySensorTypeEnum : enum8 { kPIR = 0; kUltrasonic = 1; kPIRAndUltrasonic = 2; kPhysicalContact = 3; } - bitmap OccupancyBitmap : BITMAP8 { + bitmap OccupancyBitmap : bitmap8 { kOccupied = 0x1; } - bitmap OccupancySensorTypeBitmap : BITMAP8 { + bitmap OccupancySensorTypeBitmap : bitmap8 { kPIR = 0x1; kUltrasonic = 0x2; kPhysicalContact = 0x4; @@ -5199,7 +5199,7 @@ client cluster OccupancySensing = 1030 { /** Attributes for reporting carbon monoxide concentration measurements */ client cluster CarbonMonoxideConcentrationMeasurement = 1036 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5207,13 +5207,13 @@ client cluster CarbonMonoxideConcentrationMeasurement = 1036 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5224,7 +5224,7 @@ client cluster CarbonMonoxideConcentrationMeasurement = 1036 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5254,7 +5254,7 @@ client cluster CarbonMonoxideConcentrationMeasurement = 1036 { /** Attributes for reporting carbon dioxide concentration measurements */ client cluster CarbonDioxideConcentrationMeasurement = 1037 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5262,13 +5262,13 @@ client cluster CarbonDioxideConcentrationMeasurement = 1037 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5279,7 +5279,7 @@ client cluster CarbonDioxideConcentrationMeasurement = 1037 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5309,7 +5309,7 @@ client cluster CarbonDioxideConcentrationMeasurement = 1037 { /** Attributes for reporting nitrogen dioxide concentration measurements */ client cluster NitrogenDioxideConcentrationMeasurement = 1043 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5317,13 +5317,13 @@ client cluster NitrogenDioxideConcentrationMeasurement = 1043 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5334,7 +5334,7 @@ client cluster NitrogenDioxideConcentrationMeasurement = 1043 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5364,7 +5364,7 @@ client cluster NitrogenDioxideConcentrationMeasurement = 1043 { /** Attributes for reporting ozone concentration measurements */ client cluster OzoneConcentrationMeasurement = 1045 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5372,13 +5372,13 @@ client cluster OzoneConcentrationMeasurement = 1045 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5389,7 +5389,7 @@ client cluster OzoneConcentrationMeasurement = 1045 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5419,7 +5419,7 @@ client cluster OzoneConcentrationMeasurement = 1045 { /** Attributes for reporting PM2.5 concentration measurements */ client cluster Pm25ConcentrationMeasurement = 1066 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5427,13 +5427,13 @@ client cluster Pm25ConcentrationMeasurement = 1066 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5444,7 +5444,7 @@ client cluster Pm25ConcentrationMeasurement = 1066 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5474,7 +5474,7 @@ client cluster Pm25ConcentrationMeasurement = 1066 { /** Attributes for reporting formaldehyde concentration measurements */ client cluster FormaldehydeConcentrationMeasurement = 1067 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5482,13 +5482,13 @@ client cluster FormaldehydeConcentrationMeasurement = 1067 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5499,7 +5499,7 @@ client cluster FormaldehydeConcentrationMeasurement = 1067 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5529,7 +5529,7 @@ client cluster FormaldehydeConcentrationMeasurement = 1067 { /** Attributes for reporting PM1 concentration measurements */ client cluster Pm1ConcentrationMeasurement = 1068 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5537,13 +5537,13 @@ client cluster Pm1ConcentrationMeasurement = 1068 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5554,7 +5554,7 @@ client cluster Pm1ConcentrationMeasurement = 1068 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5584,7 +5584,7 @@ client cluster Pm1ConcentrationMeasurement = 1068 { /** Attributes for reporting PM10 concentration measurements */ client cluster Pm10ConcentrationMeasurement = 1069 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5592,13 +5592,13 @@ client cluster Pm10ConcentrationMeasurement = 1069 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5609,7 +5609,7 @@ client cluster Pm10ConcentrationMeasurement = 1069 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5639,7 +5639,7 @@ client cluster Pm10ConcentrationMeasurement = 1069 { /** Attributes for reporting total volatile organic compounds concentration measurements */ client cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5647,13 +5647,13 @@ client cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5664,7 +5664,7 @@ client cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5694,7 +5694,7 @@ client cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 { /** Attributes for reporting radon concentration measurements */ client cluster RadonConcentrationMeasurement = 1071 { - enum LevelValueEnum : ENUM8 { + enum LevelValueEnum : enum8 { kUnknown = 0; kLow = 1; kMedium = 2; @@ -5702,13 +5702,13 @@ client cluster RadonConcentrationMeasurement = 1071 { kCritical = 4; } - enum MeasurementMediumEnum : ENUM8 { + enum MeasurementMediumEnum : enum8 { kAir = 0; kWater = 1; kSoil = 2; } - enum MeasurementUnitEnum : ENUM8 { + enum MeasurementUnitEnum : enum8 { kPPM = 0; kPPB = 1; kPPT = 2; @@ -5719,7 +5719,7 @@ client cluster RadonConcentrationMeasurement = 1071 { kBQM3 = 7; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNumericMeasurement = 0x1; kLevelIndication = 0x2; kMediumLevel = 0x4; @@ -5760,17 +5760,17 @@ client cluster WakeOnLan = 1283 { /** This cluster provides an interface for controlling the current Channel on a device. */ client cluster Channel = 1284 { - enum ChannelStatusEnum : ENUM8 { + enum ChannelStatusEnum : enum8 { kSuccess = 0; kMultipleMatches = 1; kNoMatches = 2; } - enum LineupInfoTypeEnum : ENUM8 { + enum LineupInfoTypeEnum : enum8 { kMSO = 0; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kChannelList = 0x1; kLineupInfo = 0x2; } @@ -5828,7 +5828,7 @@ client cluster Channel = 1284 { /** This cluster provides an interface for UX navigation within a set of targets on a device or endpoint. */ client cluster TargetNavigator = 1285 { - enum TargetNavigatorStatusEnum : ENUM8 { + enum TargetNavigatorStatusEnum : enum8 { kSuccess = 0; kTargetNotFound = 1; kNotAllowed = 2; @@ -5864,7 +5864,7 @@ client cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ client cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : ENUM8 { + enum MediaPlaybackStatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5873,14 +5873,14 @@ client cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : ENUM8 { + enum PlaybackStateEnum : enum8 { kPlaying = 0; kPaused = 1; kNotPlaying = 2; kBuffering = 3; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; } @@ -5947,7 +5947,7 @@ client cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling the Input Selector on a media device such as a TV. */ client cluster MediaInput = 1287 { - enum InputTypeEnum : ENUM8 { + enum InputTypeEnum : enum8 { kInternal = 0; kAux = 1; kCoax = 2; @@ -5962,7 +5962,7 @@ client cluster MediaInput = 1287 { kOther = 11; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -6016,7 +6016,7 @@ client cluster LowPower = 1288 { /** This cluster provides an interface for controlling a device like a TV using action commands such as UP, DOWN, and SELECT. */ client cluster KeypadInput = 1289 { - enum CecKeyCode : ENUM8 { + enum CecKeyCode : enum8 { kSelect = 0; kUp = 1; kDown = 2; @@ -6105,13 +6105,13 @@ client cluster KeypadInput = 1289 { kData = 118; } - enum KeypadInputStatusEnum : ENUM8 { + enum KeypadInputStatusEnum : enum8 { kSuccess = 0; kUnsupportedKey = 1; kInvalidKeyInCurrentState = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNavigationKeyCodes = 0x1; kLocationKeys = 0x2; kNumberKeys = 0x4; @@ -6138,18 +6138,18 @@ client cluster KeypadInput = 1289 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ContentLauncher = 1290 { - enum ContentLaunchStatusEnum : ENUM8 { + enum ContentLaunchStatusEnum : enum8 { kSuccess = 0; kUrlNotAvailable = 1; kAuthFailed = 2; } - enum MetricTypeEnum : ENUM8 { + enum MetricTypeEnum : enum8 { kPixels = 0; kPercentage = 1; } - enum ParameterEnum : ENUM8 { + enum ParameterEnum : enum8 { kActor = 0; kChannel = 1; kCharacter = 2; @@ -6166,12 +6166,12 @@ client cluster ContentLauncher = 1290 { kVideo = 13; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kContentSearch = 0x1; kURLPlayback = 0x2; } - bitmap SupportedStreamingProtocol : BITMAP32 { + bitmap SupportedStreamingProtocol : bitmap32 { kDASH = 0x1; kHLS = 0x2; } @@ -6246,7 +6246,7 @@ client cluster ContentLauncher = 1290 { /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ client cluster AudioOutput = 1291 { - enum OutputTypeEnum : ENUM8 { + enum OutputTypeEnum : enum8 { kHDMI = 0; kBT = 1; kOptical = 2; @@ -6255,7 +6255,7 @@ client cluster AudioOutput = 1291 { kOther = 5; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kNameUpdates = 0x1; } @@ -6291,13 +6291,13 @@ client cluster AudioOutput = 1291 { /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ client cluster ApplicationLauncher = 1292 { - enum ApplicationLauncherStatusEnum : ENUM8 { + enum ApplicationLauncherStatusEnum : enum8 { kSuccess = 0; kAppNotAvailable = 1; kSystemBusy = 2; } - bitmap Feature : BITMAP32 { + bitmap Feature : bitmap32 { kApplicationPlatform = 0x1; } @@ -6348,7 +6348,7 @@ client cluster ApplicationLauncher = 1292 { /** This cluster provides information about an application running on a TV or media player device which is represented as an endpoint. */ client cluster ApplicationBasic = 1293 { - enum ApplicationStatusEnum : ENUM8 { + enum ApplicationStatusEnum : enum8 { kStopped = 0; kActiveVisibleFocus = 1; kActiveHidden = 2; @@ -6573,42 +6573,42 @@ client cluster ElectricalMeasurement = 2820 { /** The Test Cluster is meant to validate the generated code */ internal client cluster UnitTesting = 4294048773 { - enum SimpleEnum : ENUM8 { + enum SimpleEnum : enum8 { kUnspecified = 0; kValueA = 1; kValueB = 2; kValueC = 3; } - bitmap Bitmap16MaskMap : BITMAP16 { + bitmap Bitmap16MaskMap : bitmap16 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x4000; } - bitmap Bitmap32MaskMap : BITMAP32 { + bitmap Bitmap32MaskMap : bitmap32 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x40000000; } - bitmap Bitmap64MaskMap : BITMAP64 { + bitmap Bitmap64MaskMap : bitmap64 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x4000000000000000; } - bitmap Bitmap8MaskMap : BITMAP8 { + bitmap Bitmap8MaskMap : bitmap8 { kMaskVal1 = 0x1; kMaskVal2 = 0x2; kMaskVal3 = 0x4; kMaskVal4 = 0x40; } - bitmap SimpleBitmap : BITMAP8 { + bitmap SimpleBitmap : bitmap8 { kValueA = 0x1; kValueB = 0x2; kValueC = 0x4; @@ -7019,7 +7019,7 @@ internal client cluster UnitTesting = 4294048773 { /** The Fault Injection Cluster provide a means for a test harness to configure faults(for example triggering a fault in the system). */ internal client cluster FaultInjection = 4294048774 { - enum FaultType : ENUM8 { + enum FaultType : enum8 { kUnspecified = 0; kSystemFault = 1; kInetFault = 2;