aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensor.cs
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/HardwareBreakSensor.cs
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/HardwareBreakSensor.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/Hardware/HardwareBreakSensor.cs218
1 files changed, 218 insertions, 0 deletions
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