Skip to content

Commit

Permalink
matter idl: use lowercase types for enum and bitmap base types (#29832)
Browse files Browse the repository at this point in the history
* Make IDL templates use lowercase for bitmap and enum types

* Zap regen

* Undo submodule update

---------

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
andy31415 and andreilitvin authored Oct 18, 2023
1 parent 2af62c5 commit 4f65f6c
Show file tree
Hide file tree
Showing 72 changed files with 5,013 additions and 5,013 deletions.

Large diffs are not rendered by default.

524 changes: 262 additions & 262 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.matter

Large diffs are not rendered by default.

Large diffs are not rendered by default.

130 changes: 65 additions & 65 deletions examples/bridge-app/bridge-common/bridge-app.matter

Large diffs are not rendered by default.

122 changes: 61 additions & 61 deletions examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter

Large diffs are not rendered by default.

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter

Large diffs are not rendered by default.

112 changes: 56 additions & 56 deletions examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter

Large diffs are not rendered by default.

118 changes: 59 additions & 59 deletions examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -164,21 +164,21 @@ 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;
kManage = 4;
kAdminister = 5;
}

enum ChangeTypeEnum : ENUM8 {
enum ChangeTypeEnum : enum8 {
kChanged = 0;
kAdded = 1;
kRemoved = 2;
Expand Down Expand Up @@ -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;
Expand All @@ -260,7 +260,7 @@ server cluster BasicInformation = 40 {
kGold = 20;
}

enum ProductFinishEnum : ENUM8 {
enum ProductFinishEnum : enum8 {
kOther = 0;
kMatte = 1;
kSatin = 2;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -397,21 +397,21 @@ 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;
kTimeOut = 3;
kDelayByProvider = 4;
}

enum UpdateStateEnum : ENUM8 {
enum UpdateStateEnum : enum8 {
kUnknown = 0;
kIdle = 1;
kQuerying = 2;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}

Expand All @@ -527,15 +527,15 @@ 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;
kNoFailSafe = 3;
kBusyWithOtherAdmin = 4;
}

enum RegulatoryLocationTypeEnum : ENUM8 {
enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
kIndoorOutdoor = 2;
Expand Down Expand Up @@ -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;
Expand All @@ -607,7 +607,7 @@ server cluster NetworkCommissioning = 49 {
kUnknownError = 12;
}

enum WiFiBandEnum : ENUM8 {
enum WiFiBandEnum : enum8 {
k2G4 = 0;
k3G65 = 1;
k5G = 2;
Expand All @@ -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;
Expand Down Expand Up @@ -731,21 +731,21 @@ 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;
kBusy = 3;
kDenied = 4;
}

enum TransferProtocolEnum : ENUM8 {
enum TransferProtocolEnum : enum8 {
kResponsePayload = 0;
kBDX = 1;
}
Expand All @@ -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;
Expand All @@ -778,7 +778,7 @@ server cluster GeneralDiagnostics = 51 {
kSoftwareReset = 6;
}

enum HardwareFaultEnum : ENUM8 {
enum HardwareFaultEnum : enum8 {
kUnspecified = 0;
kRadio = 1;
kSensor = 2;
Expand All @@ -792,22 +792,22 @@ server cluster GeneralDiagnostics = 51 {
kTamperDetected = 10;
}

enum InterfaceTypeEnum : ENUM8 {
enum InterfaceTypeEnum : enum8 {
kUnspecified = 0;
kWiFi = 1;
kEthernet = 2;
kCellular = 3;
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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down
Loading

0 comments on commit 4f65f6c

Please sign in to comment.