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 new device response for indicate next cal time #99

Merged
Merged
Show file tree
Hide file tree
Changes from 3 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
12 changes: 11 additions & 1 deletion src/t2iapi/device/device_responses.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This Source Code Form is subject to the terms of the MIT License.
Copyright (c) 2022 Draegerwerk AG & Co. KGaA.
Copyright (c) 2022, 2024 Draegerwerk AG & Co. KGaA.

SPDX-License-Identifier: MIT
*/
Expand All @@ -11,6 +11,7 @@ package t2iapi.device;

import "t2iapi/basic_responses.proto";
import "t2iapi/biceps/metadata.proto";
import "t2iapi/device/types.proto";

option java_package = "com.draeger.medical.t2iapi.device";
option java_outer_classname = "DeviceResponses";
Expand Down Expand Up @@ -73,3 +74,12 @@ message InsertContainmentTreeEntryForSequenceIdResponse{
string handle = 2; // descriptor handle which is representing the requested BICEPS CONTAINMENT TREE ENTRY
// in the device's current MDIB
}

/*
Response containing the BasicResponse and the MdibVersion for the requested
pm:AbstractDeviceComponentDescriptor handle to indicate the time of the next calibration to the USER.
*/
message IndicateTimeOfNextCalibrationToUserResponse{
BasicResponse status = 1; // status of the rpc
MdibVersion mdib_version = 2; // MdibVersion container when finishing the rpc
}
2 changes: 1 addition & 1 deletion src/t2iapi/device/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ service DeviceService {
Indicate the time of the next calibration to the USER for the given pm:AbstractDeviceComponentDescriptor handle.
*/
rpc IndicateTimeOfNextCalibrationToUser (BasicHandleRequest)
returns (BasicResponse);
returns (t2iapi.device.IndicateTimeOfNextCalibrationToUserResponse);

/*
Make available the BICEPS CONTAINMENT TREE ENTRY (as defined in IEEE Std 11073-10700-2022) that was previously
Expand Down
9 changes: 9 additions & 0 deletions src/t2iapi/device/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,12 @@ enum CalibrationState{
CALIBRATION_STATE_CALIBRATED = 3;
CALIBRATION_STATE_OTHER = 4;
}

/*
Represents a container for MDIB version attributes.
*/
message MdibVersion {
ldeichmann marked this conversation as resolved.
Show resolved Hide resolved
string sequence_id = 1; // SequenceId when finishing the rpc
uint64 instance_id = 2; // InstanceId when finishing the rpc
ldeichmann marked this conversation as resolved.
Show resolved Hide resolved
uint64 mdib_version = 3; // MdibVersion when finishing the rpc
}
Loading