aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Stubs/StubGPIOReadBitRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Stubs/StubGPIOReadBitRequest.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/Stubs/StubGPIOReadBitRequest.cs96
1 files changed, 79 insertions, 17 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Stubs/StubGPIOReadBitRequest.cs b/Software/Visual_Studio/Tango.PMR/Stubs/StubGPIOReadBitRequest.cs
index 1228d9300..42d7cc10e 100644
--- a/Software/Visual_Studio/Tango.PMR/Stubs/StubGPIOReadBitRequest.cs
+++ b/Software/Visual_Studio/Tango.PMR/Stubs/StubGPIOReadBitRequest.cs
@@ -23,13 +23,13 @@ namespace Tango.PMR.Stubs {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChxTdHViR1BJT1JlYWRCaXRSZXF1ZXN0LnByb3RvEg9UYW5nby5QTVIuU3R1",
- "YnMiNwoWU3R1YkdQSU9SZWFkQml0UmVxdWVzdBIOCgZQb3J0SWQYASABKA0S",
- "DQoFUGluSWQYAiABKA1CGwoZY29tLnR3aW5lLnRhbmdvLnBtci5zdHVic2IG",
- "cHJvdG8z"));
+ "YnMiXgoWU3R1YkdQSU9SZWFkQml0UmVxdWVzdBIOCgZQb3J0SWQYASABKAkS",
+ "DQoFUGluSWQYAiABKA0SDwoHUG9sbGluZxgDIAEoCBIUCgxQb2xsRXhwVmFs",
+ "dWUYBCABKAhCGwoZY29tLnR3aW5lLnRhbmdvLnBtci5zdHVic2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.StubGPIOReadBitRequest), global::Tango.PMR.Stubs.StubGPIOReadBitRequest.Parser, new[]{ "PortId", "PinId" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.StubGPIOReadBitRequest), global::Tango.PMR.Stubs.StubGPIOReadBitRequest.Parser, new[]{ "PortId", "PinId", "Polling", "PollExpValue" }, null, null, null)
}));
}
#endregion
@@ -62,6 +62,8 @@ namespace Tango.PMR.Stubs {
public StubGPIOReadBitRequest(StubGPIOReadBitRequest other) : this() {
portId_ = other.portId_;
pinId_ = other.pinId_;
+ polling_ = other.polling_;
+ pollExpValue_ = other.pollExpValue_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -71,15 +73,15 @@ namespace Tango.PMR.Stubs {
/// <summary>Field number for the "PortId" field.</summary>
public const int PortIdFieldNumber = 1;
- private uint portId_;
+ private string portId_ = "";
/// <summary>
- /// 0..119
+ /// A..
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint PortId {
+ public string PortId {
get { return portId_; }
set {
- portId_ = value;
+ portId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
@@ -97,6 +99,34 @@ namespace Tango.PMR.Stubs {
}
}
+ /// <summary>Field number for the "Polling" field.</summary>
+ public const int PollingFieldNumber = 3;
+ private bool polling_;
+ /// <summary>
+ /// 1 - Polling
+ /// </summary>
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool Polling {
+ get { return polling_; }
+ set {
+ polling_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "PollExpValue" field.</summary>
+ public const int PollExpValueFieldNumber = 4;
+ private bool pollExpValue_;
+ /// <summary>
+ /// 0/1
+ /// </summary>
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool PollExpValue {
+ get { return pollExpValue_; }
+ set {
+ pollExpValue_ = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StubGPIOReadBitRequest);
@@ -112,14 +142,18 @@ namespace Tango.PMR.Stubs {
}
if (PortId != other.PortId) return false;
if (PinId != other.PinId) return false;
+ if (Polling != other.Polling) return false;
+ if (PollExpValue != other.PollExpValue) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
- if (PortId != 0) hash ^= PortId.GetHashCode();
+ if (PortId.Length != 0) hash ^= PortId.GetHashCode();
if (PinId != 0) hash ^= PinId.GetHashCode();
+ if (Polling != false) hash ^= Polling.GetHashCode();
+ if (PollExpValue != false) hash ^= PollExpValue.GetHashCode();
return hash;
}
@@ -130,25 +164,39 @@ namespace Tango.PMR.Stubs {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
- if (PortId != 0) {
- output.WriteRawTag(8);
- output.WriteUInt32(PortId);
+ if (PortId.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(PortId);
}
if (PinId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(PinId);
}
+ if (Polling != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(Polling);
+ }
+ if (PollExpValue != false) {
+ output.WriteRawTag(32);
+ output.WriteBool(PollExpValue);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
- if (PortId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PortId);
+ if (PortId.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(PortId);
}
if (PinId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PinId);
}
+ if (Polling != false) {
+ size += 1 + 1;
+ }
+ if (PollExpValue != false) {
+ size += 1 + 1;
+ }
return size;
}
@@ -157,12 +205,18 @@ namespace Tango.PMR.Stubs {
if (other == null) {
return;
}
- if (other.PortId != 0) {
+ if (other.PortId.Length != 0) {
PortId = other.PortId;
}
if (other.PinId != 0) {
PinId = other.PinId;
}
+ if (other.Polling != false) {
+ Polling = other.Polling;
+ }
+ if (other.PollExpValue != false) {
+ PollExpValue = other.PollExpValue;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -173,14 +227,22 @@ namespace Tango.PMR.Stubs {
default:
input.SkipLastField();
break;
- case 8: {
- PortId = input.ReadUInt32();
+ case 10: {
+ PortId = input.ReadString();
break;
}
case 16: {
PinId = input.ReadUInt32();
break;
}
+ case 24: {
+ Polling = input.ReadBool();
+ break;
+ }
+ case 32: {
+ PollExpValue = input.ReadBool();
+ break;
+ }
}
}
}