aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Hardware
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-08-04 14:35:57 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-08-04 14:35:57 +0300
commitdb9119d86fa9e2efd2c3dfab8ac2c49c2ee4da70 (patch)
tree6edfb51c6fde983291a415b8b19a972b2aa78548 /Software/Visual_Studio/Tango.PMR/Hardware
parent76d311ad4690b9f88ae71ff097c6592190b65012 (diff)
downloadTango-db9119d86fa9e2efd2c3dfab8ac2c49c2ee4da70.tar.gz
Tango-db9119d86fa9e2efd2c3dfab8ac2c49c2ee4da70.zip
Added DB, Observables, PMR Hardware Break Sensors & Break Sensors.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Hardware')
-rw-r--r--Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlower.cs189
-rw-r--r--Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlowerType.cs47
-rw-r--r--Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensor.cs218
-rw-r--r--Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensorType.cs48
4 files changed, 502 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlower.cs b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlower.cs
new file mode 100644
index 000000000..785e57ce4
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlower.cs
@@ -0,0 +1,189 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: HardwareBlower.proto
+#pragma warning disable 1591, 0612, 3021
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Tango.PMR.Hardware {
+
+ /// <summary>Holder for reflection information generated from HardwareBlower.proto</summary>
+ public static partial class HardwareBlowerReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for HardwareBlower.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static HardwareBlowerReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChRIYXJkd2FyZUJsb3dlci5wcm90bxISVGFuZ28uUE1SLkhhcmR3YXJlGhhI",
+ "YXJkd2FyZUJsb3dlclR5cGUucHJvdG8iYgoOSGFyZHdhcmVCbG93ZXISQgoS",
+ "SGFyZHdhcmVCbG93ZXJUeXBlGAEgASgOMiYuVGFuZ28uUE1SLkhhcmR3YXJl",
+ "LkhhcmR3YXJlQmxvd2VyVHlwZRIMCgRDb2RlGAIgASgFQh4KHGNvbS50d2lu",
+ "ZS50YW5nby5wbXIuaGFyZHdhcmViBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareBlowerTypeReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareBlower), global::Tango.PMR.Hardware.HardwareBlower.Parser, new[]{ "HardwareBlowerType", "Code" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class HardwareBlower : pb::IMessage<HardwareBlower> {
+ private static readonly pb::MessageParser<HardwareBlower> _parser = new pb::MessageParser<HardwareBlower>(() => new HardwareBlower());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<HardwareBlower> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Hardware.HardwareBlowerReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public HardwareBlower() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public HardwareBlower(HardwareBlower other) : this() {
+ hardwareBlowerType_ = other.hardwareBlowerType_;
+ code_ = other.code_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public HardwareBlower Clone() {
+ return new HardwareBlower(this);
+ }
+
+ /// <summary>Field number for the "HardwareBlowerType" field.</summary>
+ public const int HardwareBlowerTypeFieldNumber = 1;
+ private global::Tango.PMR.Hardware.HardwareBlowerType hardwareBlowerType_ = 0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Hardware.HardwareBlowerType HardwareBlowerType {
+ get { return hardwareBlowerType_; }
+ set {
+ hardwareBlowerType_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Code" field.</summary>
+ public const int CodeFieldNumber = 2;
+ private int code_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int Code {
+ get { return code_; }
+ set {
+ code_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as HardwareBlower);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(HardwareBlower other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (HardwareBlowerType != other.HardwareBlowerType) return false;
+ if (Code != other.Code) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HardwareBlowerType != 0) hash ^= HardwareBlowerType.GetHashCode();
+ if (Code != 0) hash ^= Code.GetHashCode();
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(pb::CodedOutputStream output) {
+ if (HardwareBlowerType != 0) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) HardwareBlowerType);
+ }
+ if (Code != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Code);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (HardwareBlowerType != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HardwareBlowerType);
+ }
+ if (Code != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(HardwareBlower other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HardwareBlowerType != 0) {
+ HardwareBlowerType = other.HardwareBlowerType;
+ }
+ if (other.Code != 0) {
+ Code = other.Code;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(pb::CodedInputStream input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ input.SkipLastField();
+ break;
+ case 8: {
+ hardwareBlowerType_ = (global::Tango.PMR.Hardware.HardwareBlowerType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ Code = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlowerType.cs b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlowerType.cs
new file mode 100644
index 000000000..24e1e612e
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBlowerType.cs
@@ -0,0 +1,47 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: HardwareBlowerType.proto
+#pragma warning disable 1591, 0612, 3021
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Tango.PMR.Hardware {
+
+ /// <summary>Holder for reflection information generated from HardwareBlowerType.proto</summary>
+ public static partial class HardwareBlowerTypeReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for HardwareBlowerType.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static HardwareBlowerTypeReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChhIYXJkd2FyZUJsb3dlclR5cGUucHJvdG8SElRhbmdvLlBNUi5IYXJkd2Fy",
+ "ZSooChJIYXJkd2FyZUJsb3dlclR5cGUSEgoOU3RhbmRhcmRCbG93ZXIQAEIe",
+ "Chxjb20udHdpbmUudGFuZ28ucG1yLmhhcmR3YXJlYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Hardware.HardwareBlowerType), }, null));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum HardwareBlowerType {
+ /// <summary>
+ ///Standard Blower
+ /// </summary>
+ [pbr::OriginalName("StandardBlower")] StandardBlower = 0,
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensor.cs b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensor.cs
new file mode 100644
index 000000000..09958498a
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensor.cs
@@ -0,0 +1,218 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: HardwareBreakSensor.proto
+#pragma warning disable 1591, 0612, 3021
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Tango.PMR.Hardware {
+
+ /// <summary>Holder for reflection information generated from HardwareBreakSensor.proto</summary>
+ public static partial class HardwareBreakSensorReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for HardwareBreakSensor.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static HardwareBreakSensorReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChlIYXJkd2FyZUJyZWFrU2Vuc29yLnByb3RvEhJUYW5nby5QTVIuSGFyZHdh",
+ "cmUaHUhhcmR3YXJlQnJlYWtTZW5zb3JUeXBlLnByb3RvIo8BChNIYXJkd2Fy",
+ "ZUJyZWFrU2Vuc29yEkwKF0hhcmR3YXJlQnJlYWtTZW5zb3JUeXBlGAEgASgO",
+ "MisuVGFuZ28uUE1SLkhhcmR3YXJlLkhhcmR3YXJlQnJlYWtTZW5zb3JUeXBl",
+ "Eg8KB0VuYWJsZWQYAiABKAgSGQoRRGVCb3VuY2VUaW1lTWlsbGkYAyABKAVC",
+ "HgocY29tLnR3aW5lLnRhbmdvLnBtci5oYXJkd2FyZWIGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareBreakSensorTypeReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareBreakSensor), global::Tango.PMR.Hardware.HardwareBreakSensor.Parser, new[]{ "HardwareBreakSensorType", "Enabled", "DeBounceTimeMilli" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class HardwareBreakSensor : pb::IMessage<HardwareBreakSensor> {
+ private static readonly pb::MessageParser<HardwareBreakSensor> _parser = new pb::MessageParser<HardwareBreakSensor>(() => new HardwareBreakSensor());
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser<HardwareBreakSensor> Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Tango.PMR.Hardware.HardwareBreakSensorReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public HardwareBreakSensor() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public HardwareBreakSensor(HardwareBreakSensor other) : this() {
+ hardwareBreakSensorType_ = other.hardwareBreakSensorType_;
+ enabled_ = other.enabled_;
+ deBounceTimeMilli_ = other.deBounceTimeMilli_;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public HardwareBreakSensor Clone() {
+ return new HardwareBreakSensor(this);
+ }
+
+ /// <summary>Field number for the "HardwareBreakSensorType" field.</summary>
+ public const int HardwareBreakSensorTypeFieldNumber = 1;
+ private global::Tango.PMR.Hardware.HardwareBreakSensorType hardwareBreakSensorType_ = 0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.Hardware.HardwareBreakSensorType HardwareBreakSensorType {
+ get { return hardwareBreakSensorType_; }
+ set {
+ hardwareBreakSensorType_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "Enabled" field.</summary>
+ public const int EnabledFieldNumber = 2;
+ private bool enabled_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Enabled {
+ get { return enabled_; }
+ set {
+ enabled_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "DeBounceTimeMilli" field.</summary>
+ public const int DeBounceTimeMilliFieldNumber = 3;
+ private int deBounceTimeMilli_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int DeBounceTimeMilli {
+ get { return deBounceTimeMilli_; }
+ set {
+ deBounceTimeMilli_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override bool Equals(object other) {
+ return Equals(other as HardwareBreakSensor);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Equals(HardwareBreakSensor other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (HardwareBreakSensorType != other.HardwareBreakSensorType) return false;
+ if (Enabled != other.Enabled) return false;
+ if (DeBounceTimeMilli != other.DeBounceTimeMilli) return false;
+ return true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HardwareBreakSensorType != 0) hash ^= HardwareBreakSensorType.GetHashCode();
+ if (Enabled != false) hash ^= Enabled.GetHashCode();
+ if (DeBounceTimeMilli != 0) hash ^= DeBounceTimeMilli.GetHashCode();
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(pb::CodedOutputStream output) {
+ if (HardwareBreakSensorType != 0) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) HardwareBreakSensorType);
+ }
+ if (Enabled != false) {
+ output.WriteRawTag(16);
+ output.WriteBool(Enabled);
+ }
+ if (DeBounceTimeMilli != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(DeBounceTimeMilli);
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int CalculateSize() {
+ int size = 0;
+ if (HardwareBreakSensorType != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HardwareBreakSensorType);
+ }
+ if (Enabled != false) {
+ size += 1 + 1;
+ }
+ if (DeBounceTimeMilli != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeBounceTimeMilli);
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(HardwareBreakSensor other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HardwareBreakSensorType != 0) {
+ HardwareBreakSensorType = other.HardwareBreakSensorType;
+ }
+ if (other.Enabled != false) {
+ Enabled = other.Enabled;
+ }
+ if (other.DeBounceTimeMilli != 0) {
+ DeBounceTimeMilli = other.DeBounceTimeMilli;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(pb::CodedInputStream input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ input.SkipLastField();
+ break;
+ case 8: {
+ hardwareBreakSensorType_ = (global::Tango.PMR.Hardware.HardwareBreakSensorType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ Enabled = input.ReadBool();
+ break;
+ }
+ case 24: {
+ DeBounceTimeMilli = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensorType.cs b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensorType.cs
new file mode 100644
index 000000000..b831b5e19
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensorType.cs
@@ -0,0 +1,48 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: HardwareBreakSensorType.proto
+#pragma warning disable 1591, 0612, 3021
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Tango.PMR.Hardware {
+
+ /// <summary>Holder for reflection information generated from HardwareBreakSensorType.proto</summary>
+ public static partial class HardwareBreakSensorTypeReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for HardwareBreakSensorType.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static HardwareBreakSensorTypeReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Ch1IYXJkd2FyZUJyZWFrU2Vuc29yVHlwZS5wcm90bxISVGFuZ28uUE1SLkhh",
+ "cmR3YXJlKjIKF0hhcmR3YXJlQnJlYWtTZW5zb3JUeXBlEhcKE1N0YW5kYXJk",
+ "QnJlYWtTZW5zb3IQAEIeChxjb20udHdpbmUudGFuZ28ucG1yLmhhcmR3YXJl",
+ "YgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Hardware.HardwareBreakSensorType), }, null));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum HardwareBreakSensorType {
+ /// <summary>
+ ///Standard Break Sensor
+ /// </summary>
+ [pbr::OriginalName("StandardBreakSensor")] StandardBreakSensor = 0,
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code