Skip to content

Commit

Permalink
rework mdib_version
Browse files Browse the repository at this point in the history
  • Loading branch information
jannast committed Nov 25, 2024
1 parent 0791bb2 commit 8e8c270
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
24 changes: 24 additions & 0 deletions src/t2iapi/biceps/mdibversiongroup.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This Source Code Form is subject to the terms of the MIT License.
Copyright (c) 2024 Draegerwerk AG & Co. KGaA.
SPDX-License-Identifier: MIT
*/

syntax = "proto3";

package t2iapi.biceps;

option java_package = "com.draeger.medical.t2iapi.biceps";
option java_outer_classname = "MdibVersionGroupProto";

import "google/protobuf/wrappers.proto";

/*
Represents the attributeGroup MdibVersionGroup (defined in IEEE Std 11073-10207-2017).
*/
message MdibVersionGroup {
google.protobuf.UInt64Value mdib_version = 1; // optional MdibVersion when finishing the rpc
google.protobuf.StringValue sequence_id = 2; // SequenceId when finishing the rpc
google.protobuf.UInt64Value instance_id = 3; // optional InstanceId when finishing the rpc
}
6 changes: 3 additions & 3 deletions src/t2iapi/device/device_responses.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package t2iapi.device;

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

option java_package = "com.draeger.medical.t2iapi.device";
option java_outer_classname = "DeviceResponses";
Expand Down Expand Up @@ -76,10 +76,10 @@ message InsertContainmentTreeEntryForSequenceIdResponse{
}

/*
Response containing the BasicResponse and the MdibVersion for the requested
Response containing the BasicResponse and the MdibVersionGroup 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
MdibVersionGroup mdib_version_group = 2; // MdibVersion attributes when finishing the rpc

Check failure on line 84 in src/t2iapi/device/device_responses.proto

View workflow job for this annotation

GitHub Actions / lint-protos

field t2iapi.device.IndicateTimeOfNextCalibrationToUserResponse.mdib_version_group: unknown type MdibVersionGroup
}
11 changes: 1 addition & 10 deletions src/t2iapi/device/types.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, 2024 Draegerwerk AG & Co. KGaA.
Copyright (c) 2022 - 2024 Draegerwerk AG & Co. KGaA.
SPDX-License-Identifier: MIT
*/
Expand Down Expand Up @@ -79,12 +79,3 @@ enum CalibrationState{
CALIBRATION_STATE_CALIBRATED = 3;
CALIBRATION_STATE_OTHER = 4;
}

/*
Represents a container for MDIB version attributes.
*/
message MdibVersion {
string sequence_id = 1; // SequenceId when finishing the rpc
uint64 mdib_version = 2; // MdibVersion when finishing the rpc
optional google.protobuf.UInt64Value instance_id = 3; // InstanceId when finishing the rpc
}

0 comments on commit 8e8c270

Please sign in to comment.