-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from SiliconLabs/release-2.9.2
Release 2.9.2
- Loading branch information
Showing
96 changed files
with
47,792 additions
and
60,713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/** | ||
* Copyright (c) 2024 Project CHIP Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <Matter/MTRBaseClusters.h> | ||
#import <Matter/MTRDefines.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* An access grant, which can be represented as an entry in the Matter Access | ||
* Control cluster. | ||
*/ | ||
NS_SWIFT_SENDABLE | ||
MTR_NEWLY_AVAILABLE | ||
@interface MTRAccessGrant : NSObject <NSCopying> | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
+ (instancetype)new NS_UNAVAILABLE; | ||
|
||
/** | ||
* Grant access at the provided level to a specific node on the fabric. The | ||
* provided nodeID must be an operational node identifier. | ||
*/ | ||
+ (nullable MTRAccessGrant *)accessGrantForNodeID:(NSNumber *)nodeID privilege:(MTRAccessControlEntryPrivilege)privilege; | ||
|
||
/** | ||
* Grant access to any node on the fabric that has a matching CASE Authenticated | ||
* Tag in its operational certificate. The provided caseAuthenticatedTag must | ||
* be a 32-bit unsigned integer with lower 16 bits not 0, per the Matter | ||
* specification. | ||
*/ | ||
+ (nullable MTRAccessGrant *)accessGrantForCASEAuthenticatedTag:(NSNumber *)caseAuthenticatedTag privilege:(MTRAccessControlEntryPrivilege)privilege; | ||
|
||
/** | ||
* Grant access to any node on the fabric that is communicating with us via | ||
* group messages sent to the given group. The provided groupID must be a valid | ||
* group identifier in the range 1-65535. | ||
*/ | ||
+ (nullable MTRAccessGrant *)accessGrantForGroupID:(NSNumber *)groupID privilege:(MTRAccessControlEntryPrivilege)privilege; | ||
|
||
/** | ||
* Grant access to any node on the fabric, as long as it's communicating with us | ||
* over a unicast authenticated channel. | ||
*/ | ||
+ (MTRAccessGrant *)accessGrantForAllNodesWithPrivilege:(MTRAccessControlEntryPrivilege)privilege; | ||
|
||
/** | ||
* The matter access control subject ID that access has been granted for. Nil | ||
* when access has been granted for all subjects (e.g. via initForAllNodesWithPrivilege). | ||
*/ | ||
@property (nonatomic, copy, readonly, nullable) NSNumber * subjectID; | ||
|
||
/** | ||
* The privilege that has been granted | ||
*/ | ||
@property (nonatomic, assign, readonly) MTRAccessControlEntryPrivilege grantedPrivilege; | ||
|
||
/** | ||
* The type of authentication mode the access grant is | ||
* for. MTRAccessControlEntryAuthModeCASE for unicast messages and | ||
* MTRAccessControlEntryAuthModeGroup for groupcast ones. | ||
*/ | ||
@property (nonatomic, assign, readonly) MTRAccessControlEntryAuthMode authenticationMode; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
/** | ||
* Copyright (c) 2023 Project CHIP Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import <Matter/MTRCommandPayloadsObjc.h> | ||
#import <Matter/MTRDefines.h> | ||
#import <Matter/MTRStructsObjc.h> | ||
|
||
/** | ||
* This file defines manual backwards-compat shims of various sorts to handle | ||
* API changes that happened. | ||
*/ | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface MTRGroupKeyManagementClusterKeySetReadAllIndicesParams () | ||
/** | ||
* This command used to incorrectly have a groupKeySetIDs field. | ||
*/ | ||
@property (nonatomic, copy) NSArray * groupKeySetIDs MTR_DEPRECATED( | ||
"This field has been removed", ios(16.1, 17.0), macos(13.0, 14.0), watchos(9.1, 10.0), tvos(16.1, 17.0)); | ||
|
||
@end | ||
|
||
/** | ||
* FanControl used to have WindSettingMask and WindSupportMask that had | ||
* identical values. Those got replaced with a single WindBitmap. We codegen | ||
* WindSupportMask as an alias of WindBitmap, but we need a manual shim for | ||
* WindSettingMask. | ||
*/ | ||
typedef NS_OPTIONS(uint8_t, MTRFanControlWindSettingMask) { | ||
MTRFanControlWindSettingMaskSleepWind MTR_DEPRECATED( | ||
"Please use MTRFanControlWindBitmapSleepWind", ios(16.1, 17.0), macos(13.0, 14.0), watchos(9.1, 10.0), tvos(16.1, 17.0)) | ||
= 0x1, | ||
MTRFanControlWindSettingMaskNaturalWind MTR_DEPRECATED( | ||
"Please use MTRFanControlWindBitmapNaturalWind", ios(16.1, 17.0), macos(13.0, 14.0), watchos(9.1, 10.0), tvos(16.1, 17.0)) | ||
= 0x2, | ||
} MTR_DEPRECATED("Please use MTRFanControlWindBitmap", ios(16.1, 17.0), macos(13.0, 14.0), watchos(9.1, 10.0), tvos(16.1, 17.0)); | ||
|
||
/** | ||
* For the OTA clusters, first we changed the names of the clusters, and then we | ||
* changed the names of the enums. That means we now have three names for the | ||
* enums (newest name, name before enum name change, name before cluster name | ||
* change). We can only track one old name for things, so just manually add the | ||
* intermediate names. | ||
*/ | ||
typedef NS_ENUM(uint8_t, MTROTASoftwareUpdateProviderOTAApplyUpdateAction) { | ||
MTROTASoftwareUpdateProviderOTAApplyUpdateActionProceed MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderApplyUpdateActionProceed", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x00, | ||
MTROTASoftwareUpdateProviderOTAApplyUpdateActionAwaitNextAction | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderApplyUpdateActionAwaitNextAction", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x01, | ||
MTROTASoftwareUpdateProviderOTAApplyUpdateActionDiscontinue | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderApplyUpdateActionDiscontinue", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x02, | ||
} MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderApplyUpdateAction", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)); | ||
|
||
typedef NS_ENUM(uint8_t, MTROTASoftwareUpdateProviderOTADownloadProtocol) { | ||
MTROTASoftwareUpdateProviderOTADownloadProtocolBDXSynchronous | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderDownloadProtocolBDXSynchronous", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x00, | ||
MTROTASoftwareUpdateProviderOTADownloadProtocolBDXAsynchronous | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderDownloadProtocolBDXAsynchronous", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x01, | ||
MTROTASoftwareUpdateProviderOTADownloadProtocolHTTPS | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderDownloadProtocolHTTPS", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x02, | ||
MTROTASoftwareUpdateProviderOTADownloadProtocolVendorSpecific | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderDownloadProtocolVendorSpecific", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x03, | ||
} MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderDownloadProtocol", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)); | ||
|
||
typedef NS_ENUM(uint8_t, MTROTASoftwareUpdateProviderOTAQueryStatus) { | ||
MTROTASoftwareUpdateProviderOTAQueryStatusUpdateAvailable | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderStatusUpdateAvailable", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x00, | ||
MTROTASoftwareUpdateProviderOTAQueryStatusBusy | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderStatusBusy", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x01, | ||
MTROTASoftwareUpdateProviderOTAQueryStatusNotAvailable | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderStatusNotAvailable", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x02, | ||
MTROTASoftwareUpdateProviderOTAQueryStatusDownloadProtocolNotSupported | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderStatusDownloadProtocolNotSupported", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x03, | ||
} MTR_DEPRECATED("Please use MTROTASoftwareUpdateProviderStatus", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)); | ||
|
||
typedef NS_ENUM(uint8_t, MTROTASoftwareUpdateRequestorOTAAnnouncementReason) { | ||
MTROTASoftwareUpdateRequestorOTAAnnouncementReasonSimpleAnnouncement | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorAnnouncementReasonSimpleAnnouncement", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x00, | ||
MTROTASoftwareUpdateRequestorOTAAnnouncementReasonUpdateAvailable | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorAnnouncementReasonUpdateAvailable", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x01, | ||
MTROTASoftwareUpdateRequestorOTAAnnouncementReasonUrgentUpdateAvailable | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorAnnouncementReasonUrgentUpdateAvailable", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x02, | ||
} MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorAnnouncementReason", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)); | ||
|
||
typedef NS_ENUM(uint8_t, MTROTASoftwareUpdateRequestorOTAChangeReason) { | ||
MTROTASoftwareUpdateRequestorOTAChangeReasonUnknown | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorChangeReasonUnknown", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x00, | ||
MTROTASoftwareUpdateRequestorOTAChangeReasonSuccess | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorChangeReasonSuccess", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x01, | ||
MTROTASoftwareUpdateRequestorOTAChangeReasonFailure | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorChangeReasonFailure", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x02, | ||
MTROTASoftwareUpdateRequestorOTAChangeReasonTimeOut | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorChangeReasonTimeOut", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x03, | ||
MTROTASoftwareUpdateRequestorOTAChangeReasonDelayByProvider | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorChangeReasonDelayByProvider", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x04, | ||
} MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorChangeReason", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)); | ||
|
||
typedef NS_ENUM(uint8_t, MTROTASoftwareUpdateRequestorOTAUpdateState) { | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateUnknown | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateUnknown", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x00, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateIdle | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateIdle", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x01, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateQuerying | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateQuerying", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x02, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateDelayedOnQuery | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateDelayedOnQuery", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x03, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateDownloading | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateDownloading", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x04, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateApplying | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateApplying", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x05, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateDelayedOnApply | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateDelayedOnApply", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x06, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateRollingBack | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateRollingBack", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x07, | ||
MTROTASoftwareUpdateRequestorOTAUpdateStateDelayedOnUserConsent | ||
MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateStateDelayedOnUserConsent", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)) | ||
= 0x08, | ||
} MTR_DEPRECATED("Please use MTROTASoftwareUpdateRequestorUpdateState", ios(16.4, 17.2), macos(13.3, 14.2), watchos(9.4, 10.2), tvos(16.4, 17.2)); | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.