aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication
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/Embedded_SW/Embedded/Communication
parentb9c99b358ba0124e32a12f401b7054ce1f85f18c (diff)
downloadTango-c62e70f59cd337aa71ddaa00a5259d8bdf436275.tar.gz
Tango-c62e70f59cd337aa71ddaa00a5259d8bdf436275.zip
Add Internal ADC support
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c128
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h26
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c118
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h77
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c35
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h45
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.c92
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.h74
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.c144
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.h91
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h3
11 files changed, 771 insertions, 62 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c
index fb7c0361f..7b0420455 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c
@@ -7,7 +7,7 @@
#endif
#include "MessageType.pb-c.h"
-static const ProtobufCEnumValue message_type__enum_values_by_number[140] =
+static const ProtobufCEnumValue message_type__enum_values_by_number[142] =
{
{ "None", "MESSAGE_TYPE__None", 0 },
{ "CalculateRequest", "MESSAGE_TYPE__CalculateRequest", 3 },
@@ -92,6 +92,8 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[140] =
{ "StubDancerPositionResponse", "MESSAGE_TYPE__StubDancerPositionResponse", 82 },
{ "StubSpeedSensorRequest", "MESSAGE_TYPE__StubSpeedSensorRequest", 83 },
{ "StubSpeedSensorResponse", "MESSAGE_TYPE__StubSpeedSensorResponse", 84 },
+ { "StubIntADCReadRequest", "MESSAGE_TYPE__StubIntADCReadRequest", 85 },
+ { "StubIntADCReadResponse", "MESSAGE_TYPE__StubIntADCReadResponse", 86 },
{ "ExternalBridgeUdpDiscoveryPacket", "MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket", 1000 },
{ "ExternalClientLoginRequest", "MESSAGE_TYPE__ExternalClientLoginRequest", 1001 },
{ "ExternalClientLoginResponse", "MESSAGE_TYPE__ExternalClientLoginResponse", 1002 },
@@ -151,62 +153,62 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[140] =
{ "DisconnectResponse", "MESSAGE_TYPE__DisconnectResponse", 6005 },
};
static const ProtobufCIntRange message_type__value_ranges[] = {
-{0, 0},{3, 1},{1000, 83},{2000, 90},{3000, 120},{4000, 126},{5000, 130},{6000, 134},{0, 140}
+{0, 0},{3, 1},{1000, 85},{2000, 92},{3000, 122},{4000, 128},{5000, 132},{6000, 136},{0, 142}
};
-static const ProtobufCEnumValueIndex message_type__enum_values_by_name[140] =
+static const ProtobufCEnumValueIndex message_type__enum_values_by_name[142] =
{
- { "AbortJobRequest", 122 },
- { "AbortJobResponse", 123 },
+ { "AbortJobRequest", 124 },
+ { "AbortJobResponse", 125 },
{ "CalculateRequest", 1 },
{ "CalculateResponse", 2 },
- { "ConnectRequest", 136 },
- { "ConnectResponse", 137 },
- { "DirectSynchronizationRequest", 86 },
- { "DirectSynchronizationResponse", 87 },
- { "DisconnectRequest", 138 },
- { "DisconnectResponse", 139 },
- { "DispenserAbortHomingRequest", 100 },
- { "DispenserAbortHomingResponse", 101 },
- { "DispenserAbortJoggingRequest", 106 },
- { "DispenserAbortJoggingResponse", 107 },
- { "DispenserHomingRequest", 102 },
- { "DispenserHomingResponse", 103 },
- { "DispenserJoggingRequest", 104 },
- { "DispenserJoggingResponse", 105 },
- { "ExternalBridgeUdpDiscoveryPacket", 83 },
- { "ExternalClientLoginRequest", 84 },
- { "ExternalClientLoginResponse", 85 },
- { "JobRequest", 120 },
- { "JobResponse", 121 },
- { "KeepAliveRequest", 134 },
- { "KeepAliveResponse", 135 },
- { "MotorAbortHomingRequest", 92 },
- { "MotorAbortHomingResponse", 93 },
- { "MotorAbortJoggingRequest", 98 },
- { "MotorAbortJoggingResponse", 99 },
- { "MotorHomingRequest", 94 },
- { "MotorHomingResponse", 95 },
- { "MotorJoggingRequest", 96 },
- { "MotorJoggingResponse", 97 },
+ { "ConnectRequest", 138 },
+ { "ConnectResponse", 139 },
+ { "DirectSynchronizationRequest", 88 },
+ { "DirectSynchronizationResponse", 89 },
+ { "DisconnectRequest", 140 },
+ { "DisconnectResponse", 141 },
+ { "DispenserAbortHomingRequest", 102 },
+ { "DispenserAbortHomingResponse", 103 },
+ { "DispenserAbortJoggingRequest", 108 },
+ { "DispenserAbortJoggingResponse", 109 },
+ { "DispenserHomingRequest", 104 },
+ { "DispenserHomingResponse", 105 },
+ { "DispenserJoggingRequest", 106 },
+ { "DispenserJoggingResponse", 107 },
+ { "ExternalBridgeUdpDiscoveryPacket", 85 },
+ { "ExternalClientLoginRequest", 86 },
+ { "ExternalClientLoginResponse", 87 },
+ { "JobRequest", 122 },
+ { "JobResponse", 123 },
+ { "KeepAliveRequest", 136 },
+ { "KeepAliveResponse", 137 },
+ { "MotorAbortHomingRequest", 94 },
+ { "MotorAbortHomingResponse", 95 },
+ { "MotorAbortJoggingRequest", 100 },
+ { "MotorAbortJoggingResponse", 101 },
+ { "MotorHomingRequest", 96 },
+ { "MotorHomingResponse", 97 },
+ { "MotorJoggingRequest", 98 },
+ { "MotorJoggingResponse", 99 },
{ "None", 0 },
- { "OverrideDataBaseRequest", 88 },
- { "OverrideDataBaseResponse", 89 },
+ { "OverrideDataBaseRequest", 90 },
+ { "OverrideDataBaseResponse", 91 },
{ "ProgressRequest", 3 },
{ "ProgressResponse", 4 },
- { "ResolveEventRequest", 116 },
- { "ResolveEventResponse", 117 },
- { "SetComponentValueRequest", 114 },
- { "SetComponentValueResponse", 115 },
- { "SetDigitalOutRequest", 108 },
- { "SetDigitalOutResponse", 109 },
- { "StartDebugLogRequest", 126 },
- { "StartDebugLogResponse", 127 },
- { "StartDiagnosticsRequest", 90 },
- { "StartDiagnosticsResponse", 91 },
- { "StopDebugLogRequest", 128 },
- { "StopDebugLogResponse", 129 },
- { "StopDiagnosticsRequest", 118 },
- { "StopDiagnosticsResponse", 119 },
+ { "ResolveEventRequest", 118 },
+ { "ResolveEventResponse", 119 },
+ { "SetComponentValueRequest", 116 },
+ { "SetComponentValueResponse", 117 },
+ { "SetDigitalOutRequest", 110 },
+ { "SetDigitalOutResponse", 111 },
+ { "StartDebugLogRequest", 128 },
+ { "StartDebugLogResponse", 129 },
+ { "StartDiagnosticsRequest", 92 },
+ { "StartDiagnosticsResponse", 93 },
+ { "StopDebugLogRequest", 130 },
+ { "StopDebugLogResponse", 131 },
+ { "StopDiagnosticsRequest", 120 },
+ { "StopDiagnosticsResponse", 121 },
{ "StubCartridgeReadRequest", 5 },
{ "StubCartridgeReadResponse", 6 },
{ "StubCartridgeWriteRequest", 7 },
@@ -247,6 +249,8 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[140] =
{ "StubHeatingTestPollResponse", 62 },
{ "StubHeatingTestRequest", 59 },
{ "StubHeatingTestResponse", 60 },
+ { "StubIntADCReadRequest", 83 },
+ { "StubIntADCReadResponse", 84 },
{ "StubL6470DriverRequest", 39 },
{ "StubL6470DriverResponse", 40 },
{ "StubMotorEncoderRequest", 23 },
@@ -285,16 +289,16 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[140] =
{ "StubTivaWriteRegResponse", 78 },
{ "StubValveRequest", 29 },
{ "StubValveResponse", 30 },
- { "SystemResetRequest", 132 },
- { "SystemResetResponse", 133 },
- { "ThreadAbortJoggingRequest", 112 },
- { "ThreadAbortJoggingResponse", 113 },
- { "ThreadJoggingRequest", 110 },
- { "ThreadJoggingResponse", 111 },
- { "UploadHardwareConfigurationRequest", 130 },
- { "UploadHardwareConfigurationResponse", 131 },
- { "UploadProcessParametersRequest", 124 },
- { "UploadProcessParametersResponse", 125 },
+ { "SystemResetRequest", 134 },
+ { "SystemResetResponse", 135 },
+ { "ThreadAbortJoggingRequest", 114 },
+ { "ThreadAbortJoggingResponse", 115 },
+ { "ThreadJoggingRequest", 112 },
+ { "ThreadJoggingResponse", 113 },
+ { "UploadHardwareConfigurationRequest", 132 },
+ { "UploadHardwareConfigurationResponse", 133 },
+ { "UploadProcessParametersRequest", 126 },
+ { "UploadProcessParametersResponse", 127 },
};
const ProtobufCEnumDescriptor message_type__descriptor =
{
@@ -303,9 +307,9 @@ const ProtobufCEnumDescriptor message_type__descriptor =
"MessageType",
"MessageType",
"",
- 140,
+ 142,
message_type__enum_values_by_number,
- 140,
+ 142,
message_type__enum_values_by_name,
8,
message_type__value_ranges,
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h
index 950bfcbdc..0eefb9df8 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h
@@ -20,7 +20,13 @@ PROTOBUF_C__BEGIN_DECLS
/* --- enums --- */
typedef enum _MessageType {
+ /*
+ *The first enumeration value must be zero so..
+ */
MESSAGE_TYPE__None = 0,
+ /*
+ *Stubs
+ */
MESSAGE_TYPE__CalculateRequest = 3,
MESSAGE_TYPE__CalculateResponse = 4,
MESSAGE_TYPE__ProgressRequest = 5,
@@ -103,6 +109,11 @@ typedef enum _MessageType {
MESSAGE_TYPE__StubDancerPositionResponse = 82,
MESSAGE_TYPE__StubSpeedSensorRequest = 83,
MESSAGE_TYPE__StubSpeedSensorResponse = 84,
+ MESSAGE_TYPE__StubIntADCReadRequest = 85,
+ MESSAGE_TYPE__StubIntADCReadResponse = 86,
+ /*
+ *Integration
+ */
MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket = 1000,
MESSAGE_TYPE__ExternalClientLoginRequest = 1001,
MESSAGE_TYPE__ExternalClientLoginResponse = 1002,
@@ -110,6 +121,9 @@ typedef enum _MessageType {
MESSAGE_TYPE__DirectSynchronizationResponse = 1004,
MESSAGE_TYPE__OverrideDataBaseRequest = 1005,
MESSAGE_TYPE__OverrideDataBaseResponse = 1006,
+ /*
+ *Diagnostics
+ */
MESSAGE_TYPE__StartDiagnosticsRequest = 2000,
MESSAGE_TYPE__StartDiagnosticsResponse = 2001,
MESSAGE_TYPE__MotorAbortHomingRequest = 2002,
@@ -140,20 +154,32 @@ typedef enum _MessageType {
MESSAGE_TYPE__ResolveEventResponse = 2027,
MESSAGE_TYPE__StopDiagnosticsRequest = 2028,
MESSAGE_TYPE__StopDiagnosticsResponse = 2029,
+ /*
+ *Printing
+ */
MESSAGE_TYPE__JobRequest = 3000,
MESSAGE_TYPE__JobResponse = 3001,
MESSAGE_TYPE__AbortJobRequest = 3002,
MESSAGE_TYPE__AbortJobResponse = 3003,
MESSAGE_TYPE__UploadProcessParametersRequest = 3004,
MESSAGE_TYPE__UploadProcessParametersResponse = 3005,
+ /*
+ *Debugging
+ */
MESSAGE_TYPE__StartDebugLogRequest = 4000,
MESSAGE_TYPE__StartDebugLogResponse = 4001,
MESSAGE_TYPE__StopDebugLogRequest = 4002,
MESSAGE_TYPE__StopDebugLogResponse = 4003,
+ /*
+ *Hardware
+ */
MESSAGE_TYPE__UploadHardwareConfigurationRequest = 5000,
MESSAGE_TYPE__UploadHardwareConfigurationResponse = 5001,
MESSAGE_TYPE__SystemResetRequest = 5002,
MESSAGE_TYPE__SystemResetResponse = 5003,
+ /*
+ *Connection
+ */
MESSAGE_TYPE__KeepAliveRequest = 6000,
MESSAGE_TYPE__KeepAliveResponse = 6001,
MESSAGE_TYPE__ConnectRequest = 6002,
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c
new file mode 100644
index 000000000..a0f34fe31
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c
@@ -0,0 +1,118 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensor.proto */
+
+/* Do not generate deprecated warnings for self */
+#ifndef PROTOBUF_C__NO_DEPRECATED
+#define PROTOBUF_C__NO_DEPRECATED
+#endif
+
+#include "HardwareSpeedSensor.pb-c.h"
+void hardware_speed_sensor__init
+ (HardwareSpeedSensor *message)
+{
+ static const HardwareSpeedSensor init_value = HARDWARE_SPEED_SENSOR__INIT;
+ *message = init_value;
+}
+size_t hardware_speed_sensor__get_packed_size
+ (const HardwareSpeedSensor *message)
+{
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t hardware_speed_sensor__pack
+ (const HardwareSpeedSensor *message,
+ uint8_t *out)
+{
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t hardware_speed_sensor__pack_to_buffer
+ (const HardwareSpeedSensor *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+HardwareSpeedSensor *
+ hardware_speed_sensor__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (HardwareSpeedSensor *)
+ protobuf_c_message_unpack (&hardware_speed_sensor__descriptor,
+ allocator, len, data);
+}
+void hardware_speed_sensor__free_unpacked
+ (HardwareSpeedSensor *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+static const ProtobufCFieldDescriptor hardware_speed_sensor__field_descriptors[3] =
+{
+ {
+ "HardwareSpeedSensorType",
+ 1,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_ENUM,
+ offsetof(HardwareSpeedSensor, has_hardwarespeedsensortype),
+ offsetof(HardwareSpeedSensor, hardwarespeedsensortype),
+ &hardware_speed_sensor_type__descriptor,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "ResolutionBits",
+ 2,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_INT32,
+ offsetof(HardwareSpeedSensor, has_resolutionbits),
+ offsetof(HardwareSpeedSensor, resolutionbits),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "Perimeter",
+ 3,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_DOUBLE,
+ offsetof(HardwareSpeedSensor, has_perimeter),
+ offsetof(HardwareSpeedSensor, perimeter),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned hardware_speed_sensor__field_indices_by_name[] = {
+ 0, /* field[0] = HardwareSpeedSensorType */
+ 2, /* field[2] = Perimeter */
+ 1, /* field[1] = ResolutionBits */
+};
+static const ProtobufCIntRange hardware_speed_sensor__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 3 }
+};
+const ProtobufCMessageDescriptor hardware_speed_sensor__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "HardwareSpeedSensor",
+ "HardwareSpeedSensor",
+ "HardwareSpeedSensor",
+ "",
+ sizeof(HardwareSpeedSensor),
+ 3,
+ hardware_speed_sensor__field_descriptors,
+ hardware_speed_sensor__field_indices_by_name,
+ 1, hardware_speed_sensor__number_ranges,
+ (ProtobufCMessageInit) hardware_speed_sensor__init,
+ NULL,NULL,NULL /* reserved[123] */
+};
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h
new file mode 100644
index 000000000..8c46e86c0
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h
@@ -0,0 +1,77 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensor.proto */
+
+#ifndef PROTOBUF_C_HardwareSpeedSensor_2eproto__INCLUDED
+#define PROTOBUF_C_HardwareSpeedSensor_2eproto__INCLUDED
+
+#include <protobuf-c/protobuf-c.h>
+
+PROTOBUF_C__BEGIN_DECLS
+
+#if PROTOBUF_C_VERSION_NUMBER < 1003000
+# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
+#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
+# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
+#endif
+
+#include "HardwareSpeedSensorType.pb-c.h"
+
+typedef struct _HardwareSpeedSensor HardwareSpeedSensor;
+
+
+/* --- enums --- */
+
+
+/* --- messages --- */
+
+struct _HardwareSpeedSensor
+{
+ ProtobufCMessage base;
+ protobuf_c_boolean has_hardwarespeedsensortype;
+ HardwareSpeedSensorType hardwarespeedsensortype;
+ protobuf_c_boolean has_resolutionbits;
+ int32_t resolutionbits;
+ protobuf_c_boolean has_perimeter;
+ double perimeter;
+};
+#define HARDWARE_SPEED_SENSOR__INIT \
+ { PROTOBUF_C_MESSAGE_INIT (&hardware_speed_sensor__descriptor) \
+ , 0, HARDWARE_SPEED_SENSOR_TYPE__DefaultSpeedSensor, 0, 0, 0, 0 }
+
+
+/* HardwareSpeedSensor methods */
+void hardware_speed_sensor__init
+ (HardwareSpeedSensor *message);
+size_t hardware_speed_sensor__get_packed_size
+ (const HardwareSpeedSensor *message);
+size_t hardware_speed_sensor__pack
+ (const HardwareSpeedSensor *message,
+ uint8_t *out);
+size_t hardware_speed_sensor__pack_to_buffer
+ (const HardwareSpeedSensor *message,
+ ProtobufCBuffer *buffer);
+HardwareSpeedSensor *
+ hardware_speed_sensor__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void hardware_speed_sensor__free_unpacked
+ (HardwareSpeedSensor *message,
+ ProtobufCAllocator *allocator);
+/* --- per-message closures --- */
+
+typedef void (*HardwareSpeedSensor_Closure)
+ (const HardwareSpeedSensor *message,
+ void *closure_data);
+
+/* --- services --- */
+
+
+/* --- descriptors --- */
+
+extern const ProtobufCMessageDescriptor hardware_speed_sensor__descriptor;
+
+PROTOBUF_C__END_DECLS
+
+
+#endif /* PROTOBUF_C_HardwareSpeedSensor_2eproto__INCLUDED */
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c
new file mode 100644
index 000000000..20c66aff3
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c
@@ -0,0 +1,35 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensorType.proto */
+
+/* Do not generate deprecated warnings for self */
+#ifndef PROTOBUF_C__NO_DEPRECATED
+#define PROTOBUF_C__NO_DEPRECATED
+#endif
+
+#include "HardwareSpeedSensorType.pb-c.h"
+static const ProtobufCEnumValue hardware_speed_sensor_type__enum_values_by_number[1] =
+{
+ { "DefaultSpeedSensor", "HARDWARE_SPEED_SENSOR_TYPE__DefaultSpeedSensor", 0 },
+};
+static const ProtobufCIntRange hardware_speed_sensor_type__value_ranges[] = {
+{0, 0},{0, 1}
+};
+static const ProtobufCEnumValueIndex hardware_speed_sensor_type__enum_values_by_name[1] =
+{
+ { "DefaultSpeedSensor", 0 },
+};
+const ProtobufCEnumDescriptor hardware_speed_sensor_type__descriptor =
+{
+ PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
+ "HardwareSpeedSensorType",
+ "HardwareSpeedSensorType",
+ "HardwareSpeedSensorType",
+ "",
+ 1,
+ hardware_speed_sensor_type__enum_values_by_number,
+ 1,
+ hardware_speed_sensor_type__enum_values_by_name,
+ 1,
+ hardware_speed_sensor_type__value_ranges,
+ NULL,NULL,NULL,NULL /* reserved[1234] */
+};
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h
new file mode 100644
index 000000000..567c2246e
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h
@@ -0,0 +1,45 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensorType.proto */
+
+#ifndef PROTOBUF_C_HardwareSpeedSensorType_2eproto__INCLUDED
+#define PROTOBUF_C_HardwareSpeedSensorType_2eproto__INCLUDED
+
+#include <protobuf-c/protobuf-c.h>
+
+PROTOBUF_C__BEGIN_DECLS
+
+#if PROTOBUF_C_VERSION_NUMBER < 1003000
+# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
+#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
+# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
+#endif
+
+
+
+
+/* --- enums --- */
+
+typedef enum _HardwareSpeedSensorType {
+ /*
+ *Default Speed Sensor
+ */
+ HARDWARE_SPEED_SENSOR_TYPE__DefaultSpeedSensor = 0
+ PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(HARDWARE_SPEED_SENSOR_TYPE)
+} HardwareSpeedSensorType;
+
+/* --- messages --- */
+
+/* --- per-message closures --- */
+
+
+/* --- services --- */
+
+
+/* --- descriptors --- */
+
+extern const ProtobufCEnumDescriptor hardware_speed_sensor_type__descriptor;
+
+PROTOBUF_C__END_DECLS
+
+
+#endif /* PROTOBUF_C_HardwareSpeedSensorType_2eproto__INCLUDED */
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.c
new file mode 100644
index 000000000..3537ec062
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.c
@@ -0,0 +1,92 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: StubIntADCReadRequest.proto */
+
+/* Do not generate deprecated warnings for self */
+#ifndef PROTOBUF_C__NO_DEPRECATED
+#define PROTOBUF_C__NO_DEPRECATED
+#endif
+
+#include "StubIntADCReadRequest.pb-c.h"
+void stub_int_adcread_request__init
+ (StubIntADCReadRequest *message)
+{
+ static const StubIntADCReadRequest init_value = STUB_INT_ADCREAD_REQUEST__INIT;
+ *message = init_value;
+}
+size_t stub_int_adcread_request__get_packed_size
+ (const StubIntADCReadRequest *message)
+{
+ assert(message->base.descriptor == &stub_int_adcread_request__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t stub_int_adcread_request__pack
+ (const StubIntADCReadRequest *message,
+ uint8_t *out)
+{
+ assert(message->base.descriptor == &stub_int_adcread_request__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t stub_int_adcread_request__pack_to_buffer
+ (const StubIntADCReadRequest *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->base.descriptor == &stub_int_adcread_request__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+StubIntADCReadRequest *
+ stub_int_adcread_request__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (StubIntADCReadRequest *)
+ protobuf_c_message_unpack (&stub_int_adcread_request__descriptor,
+ allocator, len, data);
+}
+void stub_int_adcread_request__free_unpacked
+ (StubIntADCReadRequest *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->base.descriptor == &stub_int_adcread_request__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+static const ProtobufCFieldDescriptor stub_int_adcread_request__field_descriptors[1] =
+{
+ {
+ "ADC_Device",
+ 1,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(StubIntADCReadRequest, has_adc_device),
+ offsetof(StubIntADCReadRequest, adc_device),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned stub_int_adcread_request__field_indices_by_name[] = {
+ 0, /* field[0] = ADC_Device */
+};
+static const ProtobufCIntRange stub_int_adcread_request__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 1 }
+};
+const ProtobufCMessageDescriptor stub_int_adcread_request__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "StubIntADCReadRequest",
+ "StubIntADCReadRequest",
+ "StubIntADCReadRequest",
+ "",
+ sizeof(StubIntADCReadRequest),
+ 1,
+ stub_int_adcread_request__field_descriptors,
+ stub_int_adcread_request__field_indices_by_name,
+ 1, stub_int_adcread_request__number_ranges,
+ (ProtobufCMessageInit) stub_int_adcread_request__init,
+ NULL,NULL,NULL /* reserved[123] */
+};
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.h
new file mode 100644
index 000000000..cbf4116a6
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.h
@@ -0,0 +1,74 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: StubIntADCReadRequest.proto */
+
+#ifndef PROTOBUF_C_StubIntADCReadRequest_2eproto__INCLUDED
+#define PROTOBUF_C_StubIntADCReadRequest_2eproto__INCLUDED
+
+#include <protobuf-c/protobuf-c.h>
+
+PROTOBUF_C__BEGIN_DECLS
+
+#if PROTOBUF_C_VERSION_NUMBER < 1003000
+# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
+#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
+# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
+#endif
+
+
+typedef struct _StubIntADCReadRequest StubIntADCReadRequest;
+
+
+/* --- enums --- */
+
+
+/* --- messages --- */
+
+struct _StubIntADCReadRequest
+{
+ ProtobufCMessage base;
+ /*
+ */
+ protobuf_c_boolean has_adc_device;
+ uint32_t adc_device;
+};
+#define STUB_INT_ADCREAD_REQUEST__INIT \
+ { PROTOBUF_C_MESSAGE_INIT (&stub_int_adcread_request__descriptor) \
+ , 0, 0 }
+
+
+/* StubIntADCReadRequest methods */
+void stub_int_adcread_request__init
+ (StubIntADCReadRequest *message);
+size_t stub_int_adcread_request__get_packed_size
+ (const StubIntADCReadRequest *message);
+size_t stub_int_adcread_request__pack
+ (const StubIntADCReadRequest *message,
+ uint8_t *out);
+size_t stub_int_adcread_request__pack_to_buffer
+ (const StubIntADCReadRequest *message,
+ ProtobufCBuffer *buffer);
+StubIntADCReadRequest *
+ stub_int_adcread_request__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void stub_int_adcread_request__free_unpacked
+ (StubIntADCReadRequest *message,
+ ProtobufCAllocator *allocator);
+/* --- per-message closures --- */
+
+typedef void (*StubIntADCReadRequest_Closure)
+ (const StubIntADCReadRequest *message,
+ void *closure_data);
+
+/* --- services --- */
+
+
+/* --- descriptors --- */
+
+extern const ProtobufCMessageDescriptor stub_int_adcread_request__descriptor;
+
+PROTOBUF_C__END_DECLS
+
+
+#endif /* PROTOBUF_C_StubIntADCReadRequest_2eproto__INCLUDED */
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.c
new file mode 100644
index 000000000..00dd040fe
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.c
@@ -0,0 +1,144 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: StubIntADCReadResponse.proto */
+
+/* Do not generate deprecated warnings for self */
+#ifndef PROTOBUF_C__NO_DEPRECATED
+#define PROTOBUF_C__NO_DEPRECATED
+#endif
+
+#include "StubIntADCReadResponse.pb-c.h"
+void stub_int_adcread_response__init
+ (StubIntADCReadResponse *message)
+{
+ static const StubIntADCReadResponse init_value = STUB_INT_ADCREAD_RESPONSE__INIT;
+ *message = init_value;
+}
+size_t stub_int_adcread_response__get_packed_size
+ (const StubIntADCReadResponse *message)
+{
+ assert(message->base.descriptor == &stub_int_adcread_response__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t stub_int_adcread_response__pack
+ (const StubIntADCReadResponse *message,
+ uint8_t *out)
+{
+ assert(message->base.descriptor == &stub_int_adcread_response__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t stub_int_adcread_response__pack_to_buffer
+ (const StubIntADCReadResponse *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->base.descriptor == &stub_int_adcread_response__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+StubIntADCReadResponse *
+ stub_int_adcread_response__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (StubIntADCReadResponse *)
+ protobuf_c_message_unpack (&stub_int_adcread_response__descriptor,
+ allocator, len, data);
+}
+void stub_int_adcread_response__free_unpacked
+ (StubIntADCReadResponse *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->base.descriptor == &stub_int_adcread_response__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+static const ProtobufCFieldDescriptor stub_int_adcread_response__field_descriptors[5] =
+{
+ {
+ "ADC_Device",
+ 1,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(StubIntADCReadResponse, has_adc_device),
+ offsetof(StubIntADCReadResponse, adc_device),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "Sampling_in_Bits",
+ 2,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_INT32,
+ offsetof(StubIntADCReadResponse, has_sampling_in_bits),
+ offsetof(StubIntADCReadResponse, sampling_in_bits),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "Voltage_Sampling_mv",
+ 3,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_INT32,
+ offsetof(StubIntADCReadResponse, has_voltage_sampling_mv),
+ offsetof(StubIntADCReadResponse, voltage_sampling_mv),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "Status",
+ 4,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_STRING,
+ 0, /* quantifier_offset */
+ offsetof(StubIntADCReadResponse, status),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "StatusWord",
+ 5,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(StubIntADCReadResponse, has_statusword),
+ offsetof(StubIntADCReadResponse, statusword),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned stub_int_adcread_response__field_indices_by_name[] = {
+ 0, /* field[0] = ADC_Device */
+ 1, /* field[1] = Sampling_in_Bits */
+ 3, /* field[3] = Status */
+ 4, /* field[4] = StatusWord */
+ 2, /* field[2] = Voltage_Sampling_mv */
+};
+static const ProtobufCIntRange stub_int_adcread_response__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 5 }
+};
+const ProtobufCMessageDescriptor stub_int_adcread_response__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "StubIntADCReadResponse",
+ "StubIntADCReadResponse",
+ "StubIntADCReadResponse",
+ "",
+ sizeof(StubIntADCReadResponse),
+ 5,
+ stub_int_adcread_response__field_descriptors,
+ stub_int_adcread_response__field_indices_by_name,
+ 1, stub_int_adcread_response__number_ranges,
+ (ProtobufCMessageInit) stub_int_adcread_response__init,
+ NULL,NULL,NULL /* reserved[123] */
+};
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.h
new file mode 100644
index 000000000..24f17bf87
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.h
@@ -0,0 +1,91 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: StubIntADCReadResponse.proto */
+
+#ifndef PROTOBUF_C_StubIntADCReadResponse_2eproto__INCLUDED
+#define PROTOBUF_C_StubIntADCReadResponse_2eproto__INCLUDED
+
+#include <protobuf-c/protobuf-c.h>
+
+PROTOBUF_C__BEGIN_DECLS
+
+#if PROTOBUF_C_VERSION_NUMBER < 1003000
+# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
+#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
+# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
+#endif
+
+
+typedef struct _StubIntADCReadResponse StubIntADCReadResponse;
+
+
+/* --- enums --- */
+
+
+/* --- messages --- */
+
+struct _StubIntADCReadResponse
+{
+ ProtobufCMessage base;
+ /*
+ */
+ protobuf_c_boolean has_adc_device;
+ uint32_t adc_device;
+ /*
+ */
+ protobuf_c_boolean has_sampling_in_bits;
+ int32_t sampling_in_bits;
+ /*
+ */
+ protobuf_c_boolean has_voltage_sampling_mv;
+ int32_t voltage_sampling_mv;
+ /*
+ * Passed/Failed
+ */
+ char *status;
+ /*
+ * Error number/bit when the status is Failed
+ */
+ protobuf_c_boolean has_statusword;
+ uint32_t statusword;
+};
+#define STUB_INT_ADCREAD_RESPONSE__INIT \
+ { PROTOBUF_C_MESSAGE_INIT (&stub_int_adcread_response__descriptor) \
+ , 0, 0, 0, 0, 0, 0, NULL, 0, 0 }
+
+
+/* StubIntADCReadResponse methods */
+void stub_int_adcread_response__init
+ (StubIntADCReadResponse *message);
+size_t stub_int_adcread_response__get_packed_size
+ (const StubIntADCReadResponse *message);
+size_t stub_int_adcread_response__pack
+ (const StubIntADCReadResponse *message,
+ uint8_t *out);
+size_t stub_int_adcread_response__pack_to_buffer
+ (const StubIntADCReadResponse *message,
+ ProtobufCBuffer *buffer);
+StubIntADCReadResponse *
+ stub_int_adcread_response__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void stub_int_adcread_response__free_unpacked
+ (StubIntADCReadResponse *message,
+ ProtobufCAllocator *allocator);
+/* --- per-message closures --- */
+
+typedef void (*StubIntADCReadResponse_Closure)
+ (const StubIntADCReadResponse *message,
+ void *closure_data);
+
+/* --- services --- */
+
+
+/* --- descriptors --- */
+
+extern const ProtobufCMessageDescriptor stub_int_adcread_response__descriptor;
+
+PROTOBUF_C__END_DECLS
+
+
+#endif /* PROTOBUF_C_StubIntADCReadResponse_2eproto__INCLUDED */
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h
index 2a98d2806..6bc9cfa68 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h
@@ -26,6 +26,9 @@ typedef struct _StubSpeedSensorResponse StubSpeedSensorResponse;
struct _StubSpeedSensorResponse
{
ProtobufCMessage base;
+ /*
+ *uint32 Speed_Sensor_ID = 1;
+ */
protobuf_c_boolean has_speed;
uint32_t speed;
};