Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manipulation for last calibration info #82

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
jannast marked this conversation as resolved.
Show resolved Hide resolved
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;
}

Loading