Skip to content

Commit

Permalink
Add manipulation for last calibration info (#82)
Browse files Browse the repository at this point in the history
Add manipulation for last calibration information

# 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
  • Loading branch information
midttuna authored Jun 21, 2024
1 parent b861dfe commit 8192aaa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- manipulation ProvideInformationAboutLastCalibration for devices
- manipulation ProvideInformationAboutNextCalibration for devices
- manipulation SetSystemContextActivationStateAndContextAssociation for combined settings

Expand Down
12 changes: 11 additions & 1 deletion src/t2iapi/device/device_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,19 @@ message TriggerDescriptorUpdateRequest{
repeated string handle = 1;
}

/*
Request to provide information about the pm:CalibrationInfo/@ComponentCalibrationState for the given descriptor handle.
*/
message ProvideInformationAboutLastCalibrationRequest {
string handle = 1; // handle of the pm:AbstractDeviceComponentDescriptor for which
// the last calibration information shall be provided
CalibrationState calibration_state = 2; // @ComponentCalibrationState value to set as the last calibration
// information
}

/*
Request to provide information about the pm:NextCalibration/@ComponentCalibrationState for the given descriptor handle.
*/
*/
message ProvideInformationAboutNextCalibrationRequest {
string handle = 1; // handle of the pm:AbstractDeviceComponentDescriptor for which
// the next calibration information shall be provided
Expand Down
7 changes: 7 additions & 0 deletions src/t2iapi/device/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ service DeviceService {
*/
rpc SetBatteryUsage (t2iapi.device.SetBatteryUsageRequest) returns (BasicResponse);

/*
Provide information about the pm:CalibrationInfo for the given pm:AbstractDeviceComponentDescriptor.
If the device is not able to provide the information, it shall return RESULT_NOT_SUPPORTED.
*/
rpc ProvideInformationAboutLastCalibration (t2iapi.device.ProvideInformationAboutLastCalibrationRequest)
returns (BasicResponse);

/*
Provide information about the pm:NextCalibration for the given pm:AbstractDeviceComponentDescriptor.
If the device is not able to provide the information, it shall return RESULT_NOT_SUPPORTED.
Expand Down
1 change: 0 additions & 1 deletion src/t2iapi/device/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ enum CalibrationState{
CALIBRATION_STATE_CALIBRATED = 3;
CALIBRATION_STATE_OTHER = 4;
}

0 comments on commit 8192aaa

Please sign in to comment.