aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-08-31 12:03:11 +0300
committerAvi Levkovich <avi@twine-s.com>2020-08-31 12:03:11 +0300
commit5c19a9bef046ff080a9a7008bd4f39e2a13e4ccb (patch)
tree500e4b50dd615b86cad12c7b11439ba007b20668 /Software/Embedded_SW/Embedded/Communication
parent29b08a41f29655561ab83d8b454ea5fb6227ad7a (diff)
parent751ec679b65431ab3ce13f1c5c58cb0891b2fdbe (diff)
downloadTango-5c19a9bef046ff080a9a7008bd4f39e2a13e4ccb.tar.gz
Tango-5c19a9bef046ff080a9a7008bd4f39e2a13e4ccb.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.c22
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.h2
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.c214
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageType.pb-c.h2
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c6
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h4
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.c43
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.h6
8 files changed, 174 insertions, 125 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.c
index f1b6cfb48..304a9b6d4 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.c
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.c
@@ -7,7 +7,7 @@
#endif
#include "ErrorCode.pb-c.h"
-static const ProtobufCEnumValue error_code__enum_values_by_number[55] =
+static const ProtobufCEnumValue error_code__enum_values_by_number[57] =
{
{ "", "", 0 },
{ "", "", 1 },
@@ -57,6 +57,8 @@ static const ProtobufCEnumValue error_code__enum_values_by_number[55] =
{ "", "", 2014 },
{ "", "", 2015 },
{ "", "", 2016 },
+ { "", "", 2017 },
+ { "", "", 2018 },
{ "", "", 3000 },
{ "", "", 3001 },
{ "", "", 3002 },
@@ -66,9 +68,9 @@ static const ProtobufCEnumValue error_code__enum_values_by_number[55] =
{ "", "", 3006 },
};
static const ProtobufCIntRange error_code__value_ranges[] = {
-{0, 0},{1000, 8},{2000, 31},{3000, 48},{0, 55}
+{0, 0},{1000, 8},{2000, 31},{3000, 50},{0, 57}
};
-static const ProtobufCEnumValueIndex error_code__enum_values_by_name[55] =
+static const ProtobufCEnumValueIndex error_code__enum_values_by_name[57] =
{
{ "", 2 },
{ "", 5 },
@@ -102,6 +104,7 @@ static const ProtobufCEnumValueIndex error_code__enum_values_by_name[55] =
{ "", 42 },
{ "", 6 },
{ "", 35 },
+ { "", 48 },
{ "", 44 },
{ "", 40 },
{ "", 43 },
@@ -114,16 +117,17 @@ static const ProtobufCEnumValueIndex error_code__enum_values_by_name[55] =
{ "", 39 },
{ "", 32 },
{ "", 31 },
+ { "", 49 },
{ "", 33 },
{ "", 0 },
{ "", 38 },
- { "", 50 },
{ "", 52 },
- { "", 49 },
- { "", 51 },
- { "", 48 },
{ "", 54 },
+ { "", 51 },
{ "", 53 },
+ { "", 50 },
+ { "", 56 },
+ { "", 55 },
{ "", 4 },
};
const ProtobufCEnumDescriptor error_code__descriptor =
@@ -133,9 +137,9 @@ const ProtobufCEnumDescriptor error_code__descriptor =
"",
"",
"",
- 55,
+ 57,
error_code__enum_values_by_number,
- 55,
+ 57,
error_code__enum_values_by_name,
4,
error_code__value_ranges,
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.h
index 53f7b9662..93b17520c 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.h
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Common/ErrorCode.pb-c.h
@@ -68,6 +68,8 @@ typedef enum _ErrorCode {
ERROR_CODE__JOB_ABORTED_BY_USER = 2014,
ERROR_CODE__JOB_SAFETY_ALARM = 2015,
ERROR_CODE__JOB_NO_ALARM_FILE = 2016,
+ ERROR_CODE__JOB_FILE_PROBLEM = 2017,
+ ERROR_CODE__JOB_WASTE_HANDLING_PROBLEM = 2018,
ERROR_CODE__POWER_UP_NO_CFG_FILE = 3000,
ERROR_CODE__POWER_UP_HW_CONFIG_FAILED = 3001,
ERROR_CODE__POWER_UP_BUILT_IN_FAILED = 3002,
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 4ecd0fbf2..d6c0259e2 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[261] =
+static const ProtobufCEnumValue message_type__enum_values_by_number[263] =
{
{ "", "", 0 },
{ "", "", 1 },
@@ -140,6 +140,8 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[261] =
{ "", "", 1016 },
{ "", "", 1017 },
{ "", "", 1018 },
+ { "", "", 1019 },
+ { "", "", 1020 },
{ "", "", 2000 },
{ "", "", 2001 },
{ "", "", 2002 },
@@ -272,149 +274,151 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[261] =
{ "", "", 11007 },
};
static const ProtobufCIntRange message_type__value_ranges[] = {
-{0, 0},{3, 2},{1000, 112},{2000, 131},{3000, 177},{4000, 191},{5000, 199},{6000, 203},{7000, 209},{8000, 233},{9000, 241},{10000, 245},{11000, 253},{0, 261}
+{0, 0},{3, 2},{1000, 112},{2000, 133},{3000, 179},{4000, 193},{5000, 201},{6000, 205},{7000, 211},{8000, 235},{9000, 243},{10000, 247},{11000, 255},{0, 263}
};
-static const ProtobufCEnumValueIndex message_type__enum_values_by_name[261] =
+static const ProtobufCEnumValueIndex message_type__enum_values_by_name[263] =
{
- { "", 189 },
- { "", 190 },
- { "", 179 },
- { "", 180 },
- { "", 247 },
- { "", 248 },
- { "", 251 },
- { "", 252 },
- { "", 231 },
- { "", 232 },
+ { "", 191 },
+ { "", 192 },
+ { "", 181 },
+ { "", 182 },
+ { "", 249 },
+ { "", 250 },
+ { "", 253 },
+ { "", 254 },
+ { "", 233 },
+ { "", 234 },
{ "", 2 },
{ "", 3 },
- { "", 175 },
- { "", 176 },
+ { "", 177 },
+ { "", 178 },
{ "", 125 },
{ "", 126 },
- { "", 205 },
- { "", 206 },
- { "", 255 },
- { "", 256 },
- { "", 217 },
- { "", 218 },
- { "", 183 },
- { "", 184 },
+ { "", 131 },
+ { "", 132 },
+ { "", 207 },
+ { "", 208 },
+ { "", 257 },
+ { "", 258 },
{ "", 219 },
{ "", 220 },
+ { "", 185 },
+ { "", 186 },
+ { "", 221 },
+ { "", 222 },
{ "", 117 },
{ "", 118 },
- { "", 207 },
- { "", 208 },
- { "", 141 },
- { "", 142 },
- { "", 147 },
- { "", 148 },
- { "", 233 },
- { "", 234 },
+ { "", 209 },
+ { "", 210 },
{ "", 143 },
{ "", 144 },
+ { "", 149 },
+ { "", 150 },
+ { "", 235 },
+ { "", 236 },
{ "", 145 },
{ "", 146 },
+ { "", 147 },
+ { "", 148 },
{ "", 1 },
- { "", 213 },
- { "", 214 },
+ { "", 215 },
+ { "", 216 },
{ "", 113 },
{ "", 114 },
{ "", 115 },
{ "", 116 },
{ "", 112 },
+ { "", 229 },
+ { "", 230 },
+ { "", 213 },
+ { "", 214 },
{ "", 227 },
{ "", 228 },
{ "", 211 },
{ "", 212 },
- { "", 225 },
- { "", 226 },
- { "", 209 },
- { "", 210 },
{ "", 129 },
{ "", 130 },
+ { "", 225 },
+ { "", 226 },
{ "", 223 },
{ "", 224 },
- { "", 221 },
- { "", 222 },
- { "", 177 },
- { "", 178 },
- { "", 203 },
- { "", 204 },
- { "", 215 },
- { "", 216 },
- { "", 237 },
- { "", 238 },
+ { "", 179 },
+ { "", 180 },
+ { "", 205 },
+ { "", 206 },
+ { "", 217 },
+ { "", 218 },
{ "", 239 },
{ "", 240 },
- { "", 235 },
- { "", 236 },
- { "", 133 },
- { "", 134 },
- { "", 139 },
- { "", 140 },
+ { "", 241 },
+ { "", 242 },
+ { "", 237 },
+ { "", 238 },
{ "", 135 },
{ "", 136 },
+ { "", 141 },
+ { "", 142 },
{ "", 137 },
{ "", 138 },
+ { "", 139 },
+ { "", 140 },
{ "", 0 },
{ "", 119 },
{ "", 120 },
{ "", 4 },
{ "", 5 },
- { "", 157 },
- { "", 158 },
- { "", 185 },
- { "", 186 },
- { "", 167 },
- { "", 168 },
- { "", 155 },
- { "", 156 },
- { "", 195 },
- { "", 196 },
- { "", 149 },
- { "", 150 },
- { "", 165 },
- { "", 166 },
+ { "", 159 },
+ { "", 160 },
+ { "", 187 },
+ { "", 188 },
{ "", 169 },
{ "", 170 },
+ { "", 157 },
+ { "", 158 },
{ "", 197 },
{ "", 198 },
- { "", 121 },
- { "", 122 },
+ { "", 151 },
+ { "", 152 },
+ { "", 167 },
+ { "", 168 },
{ "", 171 },
{ "", 172 },
- { "", 191 },
- { "", 192 },
- { "", 131 },
- { "", 132 },
- { "", 161 },
- { "", 162 },
- { "", 187 },
- { "", 188 },
- { "", 241 },
- { "", 242 },
- { "", 245 },
- { "", 246 },
- { "", 249 },
- { "", 250 },
- { "", 253 },
- { "", 254 },
- { "", 123 },
- { "", 124 },
+ { "", 199 },
+ { "", 200 },
+ { "", 121 },
+ { "", 122 },
{ "", 173 },
{ "", 174 },
{ "", 193 },
{ "", 194 },
- { "", 159 },
- { "", 160 },
+ { "", 133 },
+ { "", 134 },
{ "", 163 },
{ "", 164 },
+ { "", 189 },
+ { "", 190 },
{ "", 243 },
{ "", 244 },
- { "", 257 },
- { "", 258 },
+ { "", 247 },
+ { "", 248 },
+ { "", 251 },
+ { "", 252 },
+ { "", 255 },
+ { "", 256 },
+ { "", 123 },
+ { "", 124 },
+ { "", 175 },
+ { "", 176 },
+ { "", 195 },
+ { "", 196 },
+ { "", 161 },
+ { "", 162 },
+ { "", 165 },
+ { "", 166 },
+ { "", 245 },
+ { "", 246 },
+ { "", 259 },
+ { "", 260 },
{ "", 100 },
{ "", 101 },
{ "", 6 },
@@ -521,22 +525,22 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[261] =
{ "", 31 },
{ "", 106 },
{ "", 107 },
- { "", 201 },
- { "", 202 },
+ { "", 203 },
+ { "", 204 },
+ { "", 155 },
+ { "", 156 },
{ "", 153 },
{ "", 154 },
- { "", 151 },
- { "", 152 },
- { "", 259 },
- { "", 260 },
+ { "", 261 },
+ { "", 262 },
{ "", 127 },
{ "", 128 },
- { "", 199 },
- { "", 200 },
- { "", 181 },
- { "", 182 },
- { "", 229 },
- { "", 230 },
+ { "", 201 },
+ { "", 202 },
+ { "", 183 },
+ { "", 184 },
+ { "", 231 },
+ { "", 232 },
};
const ProtobufCEnumDescriptor message_type__descriptor =
{
@@ -545,9 +549,9 @@ const ProtobufCEnumDescriptor message_type__descriptor =
"",
"",
"",
- 261,
+ 263,
message_type__enum_values_by_number,
- 261,
+ 263,
message_type__enum_values_by_name,
13,
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 dc3f94b0a..58bd2112c 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
@@ -151,6 +151,8 @@ typedef enum _MessageType {
MESSAGE_TYPE__UpdateStatusResponse = 1016,
MESSAGE_TYPE__GenericRequest = 1017,
MESSAGE_TYPE__GenericResponse = 1018,
+ MESSAGE_TYPE__ConfigureProtocolRequest = 1019,
+ MESSAGE_TYPE__ConfigureProtocolResponse = 1020,
MESSAGE_TYPE__StartDiagnosticsRequest = 2000,
MESSAGE_TYPE__StartDiagnosticsResponse = 2001,
MESSAGE_TYPE__MotorAbortHomingRequest = 2002,
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c
index 14b93a98c..4801e2e35 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.c
@@ -791,8 +791,8 @@ static const ProtobufCFieldDescriptor diagnostics_monitors__field_descriptors[90
62,
PROTOBUF_C_LABEL_REPEATED,
PROTOBUF_C_TYPE_DOUBLE,
- offsetof(DiagnosticsMonitors, n_headzone5_6heatercurrent),
- offsetof(DiagnosticsMonitors, headzone5_6heatercurrent),
+ offsetof(DiagnosticsMonitors, n_headzone56heatercurrent),
+ offsetof(DiagnosticsMonitors, headzone56heatercurrent),
NULL,
NULL,
0, /* flags */
@@ -1196,8 +1196,8 @@ static const unsigned diagnostics_monitors__field_indices_by_name[] = {
12, /* field[12] = HeadZone3Temperature */
60, /* field[60] = HeadZone4HeaterCurrent */
35, /* field[35] = HeadZone4Temperature */
+ 61, /* field[61] = HeadZone56HeaterCurrent */
36, /* field[36] = HeadZone5Temperature */
- 61, /* field[61] = HeadZone5_6HeaterCurrent */
37, /* field[37] = HeadZone6Temperature */
66, /* field[66] = HeadZone7HeaterCurrent */
67, /* field[67] = HeadZone7Temperature */
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h
index a6a28e4d0..737f71d4f 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DiagnosticsMonitors.pb-c.h
@@ -149,8 +149,8 @@ struct _DiagnosticsMonitors
double *headzone3heatercurrent;
size_t n_headzone4heatercurrent;
double *headzone4heatercurrent;
- size_t n_headzone5_6heatercurrent;
- double *headzone5_6heatercurrent;
+ size_t n_headzone56heatercurrent;
+ double *headzone56heatercurrent;
size_t n_mixer1heatercurrent;
double *mixer1heatercurrent;
size_t n_dispensersinklevel;
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.c
index 8730d2280..63aeabfa6 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.c
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.c
@@ -52,9 +52,42 @@ void activate_version_response__free_unpacked
assert(message->base.descriptor == &activate_version_response__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
-#define activate_version_response__field_descriptors NULL
-#define activate_version_response__field_indices_by_name NULL
-#define activate_version_response__number_ranges NULL
+static const ProtobufCFieldDescriptor activate_version_response__field_descriptors[2] =
+{
+ {
+ "",
+ 1,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_DOUBLE,
+ offsetof(ActivateVersionResponse, has_progress),
+ offsetof(ActivateVersionResponse, progress),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "",
+ 2,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_DOUBLE,
+ offsetof(ActivateVersionResponse, has_total),
+ offsetof(ActivateVersionResponse, total),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned activate_version_response__field_indices_by_name[] = {
+ 0, /* field[0] = Progress */
+ 1, /* field[1] = Total */
+};
+static const ProtobufCIntRange activate_version_response__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 2 }
+};
const ProtobufCMessageDescriptor activate_version_response__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
@@ -63,10 +96,10 @@ const ProtobufCMessageDescriptor activate_version_response__descriptor =
"",
"",
sizeof(ActivateVersionResponse),
- 0,
+ 2,
activate_version_response__field_descriptors,
activate_version_response__field_indices_by_name,
- 0, activate_version_response__number_ranges,
+ 1, activate_version_response__number_ranges,
(ProtobufCMessageInit) activate_version_response__init,
NULL,NULL,NULL /* reserved[123] */
};
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.h
index 10dc41bcb..4227d7e50 100644
--- a/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.h
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/FirmwareUpgrade/ActivateVersionResponse.pb-c.h
@@ -26,10 +26,14 @@ typedef struct _ActivateVersionResponse ActivateVersionResponse;
struct _ActivateVersionResponse
{
ProtobufCMessage base;
+ protobuf_c_boolean has_progress;
+ double progress;
+ protobuf_c_boolean has_total;
+ double total;
};
#define ACTIVATE_VERSION_RESPONSE__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&activate_version_response__descriptor) \
- }
+ , 0, 0, 0, 0 }
/* ActivateVersionResponse methods */