Skip to content

Commit

Permalink
SetSystemContextActivationStateAndContextAssociation manipulation (#77)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
belagertem and ldeichmann authored May 24, 2024
1 parent 0c1fb28 commit f2daf60
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions src/t2iapi/combined/combined_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
11 changes: 11 additions & 0 deletions src/t2iapi/combined/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit f2daf60

Please sign in to comment.