aboutsummaryrefslogtreecommitdiffstats
path: root/Software/PMR
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-05-23 17:43:41 +0300
committerAvi Levkovich <avi@twine-s.com>2018-05-23 17:43:41 +0300
commitc62e70f59cd337aa71ddaa00a5259d8bdf436275 (patch)
treeec2f951f6a2677f980a3d371d0cb5b6f7d84ff76 /Software/PMR
parentb9c99b358ba0124e32a12f401b7054ce1f85f18c (diff)
downloadTango-c62e70f59cd337aa71ddaa00a5259d8bdf436275.tar.gz
Tango-c62e70f59cd337aa71ddaa00a5259d8bdf436275.zip
Add Internal ADC support
Diffstat (limited to 'Software/PMR')
-rw-r--r--Software/PMR/Messages/Common/MessageType.proto2
-rw-r--r--Software/PMR/Messages/Stubs/StubIntADCReadRequest.proto9
-rw-r--r--Software/PMR/Messages/Stubs/StubIntADCReadResponse.proto13
3 files changed, 24 insertions, 0 deletions
diff --git a/Software/PMR/Messages/Common/MessageType.proto b/Software/PMR/Messages/Common/MessageType.proto
index 993d48401..12d6632c6 100644
--- a/Software/PMR/Messages/Common/MessageType.proto
+++ b/Software/PMR/Messages/Common/MessageType.proto
@@ -92,6 +92,8 @@ enum MessageType
StubDancerPositionResponse = 82;
StubSpeedSensorRequest = 83;
StubSpeedSensorResponse = 84;
+ StubIntADCReadRequest = 85;
+ StubIntADCReadResponse = 86;
//Integration
diff --git a/Software/PMR/Messages/Stubs/StubIntADCReadRequest.proto b/Software/PMR/Messages/Stubs/StubIntADCReadRequest.proto
new file mode 100644
index 000000000..aab1e6cc3
--- /dev/null
+++ b/Software/PMR/Messages/Stubs/StubIntADCReadRequest.proto
@@ -0,0 +1,9 @@
+syntax = "proto3";
+
+package Tango.PMR.Stubs;
+option java_package = "com.twine.tango.pmr.stubs";
+
+message StubIntADCReadRequest
+{
+ uint32 ADC_Device = 1; //
+} \ No newline at end of file
diff --git a/Software/PMR/Messages/Stubs/StubIntADCReadResponse.proto b/Software/PMR/Messages/Stubs/StubIntADCReadResponse.proto
new file mode 100644
index 000000000..19b419cb7
--- /dev/null
+++ b/Software/PMR/Messages/Stubs/StubIntADCReadResponse.proto
@@ -0,0 +1,13 @@
+syntax = "proto3";
+
+package Tango.PMR.Stubs;
+option java_package = "com.twine.tango.pmr.stubs";
+
+message StubIntADCReadResponse
+{
+ uint32 ADC_Device = 1; //
+ int32 Sampling_in_Bits = 2; //
+ int32 Voltage_Sampling_mv = 3; //
+ string Status = 4; // Passed/Failed
+ uint32 StatusWord = 5; // Error number/bit when the status is Failed
+} \ No newline at end of file