From f2daf600c24446e347aca5752d10fd3c2727aaca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Grebe-L=C3=BCth?= <104556762+belagertem@users.noreply.github.com> Date: Fri, 24 May 2024 10:30:19 +0200 Subject: [PATCH] SetSystemContextActivationStateAndContextAssociation manipulation (#77) new manipulation SetSystemContextActivationStateAndContextAssociation added # Checklist The following aspects have been respected by the author of this pull request, confirmed by both pull request assignee **and** reviewer: * Changelog update (necessity checked and entry added or not added respectively) * [x] Pull Request Assignee * [x] Reviewer * README update (necessity checked and entry added or not added respectively) * [x] Pull Request Assignee * [x] Reviewer --------- Co-authored-by: Lukas Deichmann <8513777+ldeichmann@users.noreply.github.com> --- CHANGELOG.md | 4 ++++ src/t2iapi/combined/combined_requests.proto | 11 +++++++++++ src/t2iapi/combined/service.proto | 11 +++++++++++ 3 files changed, 26 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c8e680..738a234 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- manipulation SetSystemContextActivationStateAndContextAssociation for combined settings + ## [4.1.0] - 2024-02-22 ### Changed diff --git a/src/t2iapi/combined/combined_requests.proto b/src/t2iapi/combined/combined_requests.proto index 67929a2..834cad3 100644 --- a/src/t2iapi/combined/combined_requests.proto +++ b/src/t2iapi/combined/combined_requests.proto @@ -70,3 +70,14 @@ message SetModeOfOperationAndSetOperatingModeRequest { // shall be set t2iapi.operation.OperatingMode operating_mode = 4; // OperatingMode value to be set for the operation } + +/* +Request to set the @ActivationState of the pm:SystemContextState with the specified HANDLE to the requested value and to +create or adapt a pm:AbstractContextState with the requested @ContextAssociation for the pm:AbstractContextDescriptor with the given HANDLE. +*/ +message SetSystemContextActivationStateAndContextAssociationRequest { + string system_context_handle = 1; // HANDLE of the pm:SystemContextState for which the @ActivationState shall be set + t2iapi.activation_state.ComponentActivation system_context_activation = 2; // the requested pm:ComponentActivation value to set for the system context + string context_descriptor_handle = 3; // HANDLE of the pm:AbstractContextDescriptor for which one of its pm:AbstractContextStates shall be created or adapted with the given @ContextAssociation + t2iapi.context.ContextAssociation context_association = 4; // the @ContextAssociation to be set for the created or adapted pm:AbstractContextState of the requested pm:AbstractContextDescriptor +} diff --git a/src/t2iapi/combined/service.proto b/src/t2iapi/combined/service.proto index cb7c7d7..8b9861d 100644 --- a/src/t2iapi/combined/service.proto +++ b/src/t2iapi/combined/service.proto @@ -62,4 +62,15 @@ service CombinedService { rpc SetModeOfOperationAndSetOperatingMode ( t2iapi.combined.SetModeOfOperationAndSetOperatingModeRequest) returns (BasicResponse); + + /* + Request to set the @ActivationState of the pm:SystemContextState with the specified HANDLE to the requested value and to + create or adapt a pm:AbstractContextState with the requested @ContextAssociation for the pm:AbstractContextDescriptor with the given + HANDLE. + The manipulated states shall be persistent until a next manipulation call or an SDC operation invocation. + If the device is not able to maintain the static states, it shall return RESULT_NOT_SUPPORTED. + */ + rpc SetSystemContextActivationStateAndContextAssociation ( + t2iapi.combined.SetSystemContextActivationStateAndContextAssociationRequest) + returns (BasicResponse); }