Skip to content

Commit b861dfe

Browse files
authored
add manipulation ProvideInformationAboutNextCalibration (#81)
Add new manipulation ProvideInformationAboutNextCalibration for devices # 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
1 parent d56c313 commit b861dfe

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- manipulation ProvideInformationAboutNextCalibration for devices
1112
- manipulation SetSystemContextActivationStateAndContextAssociation for combined settings
1213

1314
## [4.1.0] - 2024-02-22

Diff for: src/t2iapi/device/device_requests.proto

+10
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ Note that when no handle is given, every DescriptionModificationReport fulfills
6565
message TriggerDescriptorUpdateRequest{
6666
repeated string handle = 1;
6767
}
68+
69+
/*
70+
Request to provide information about the pm:NextCalibration/@ComponentCalibrationState for the given descriptor handle.
71+
*/
72+
message ProvideInformationAboutNextCalibrationRequest {
73+
string handle = 1; // handle of the pm:AbstractDeviceComponentDescriptor for which
74+
// the next calibration information shall be provided
75+
CalibrationState calibration_state = 2; // ComponentCalibrationState value to set as the next calibration
76+
// information
77+
}

Diff for: src/t2iapi/device/service.proto

+7
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,11 @@ service DeviceService {
121121
not able to maintain the static state, it shall return RESULT_NOT_SUPPORTED.
122122
*/
123123
rpc SetBatteryUsage (t2iapi.device.SetBatteryUsageRequest) returns (BasicResponse);
124+
125+
/*
126+
Provide information about the pm:NextCalibration for the given pm:AbstractDeviceComponentDescriptor.
127+
If the device is not able to provide the information, it shall return RESULT_NOT_SUPPORTED.
128+
*/
129+
rpc ProvideInformationAboutNextCalibration (t2iapi.device.ProvideInformationAboutNextCalibrationRequest)
130+
returns (BasicResponse);
124131
}

Diff for: src/t2iapi/device/types.proto

+11
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,14 @@ message ExpandedName {
6969
string local_name = 2;
7070
}
7171

72+
/*
73+
Represents pm:CalibrationState from the IEEE Std 11073-10207-2017.
74+
*/
75+
enum CalibrationState{
76+
CALIBRATION_STATE_NOT_CALIBRATED = 0;
77+
CALIBRATION_STATE_CALIBRATION_REQUIRED = 1;
78+
CALIBRATION_STATE_RUNNING = 2;
79+
CALIBRATION_STATE_CALIBRATED = 3;
80+
CALIBRATION_STATE_OTHER = 4;
81+
}
82+

0 commit comments

Comments
 (0)