diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-09-09 20:50:28 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-09-09 20:50:28 +0300 |
| commit | b7bd2edc8c009ded74ea1680a2b8de1a80015d35 (patch) | |
| tree | 9c81c74875536c88cb82101997b09e7e68e5107e /Software/Embedded_SW/Embedded/Communication | |
| parent | 2781c05332f0c5cac394f3d1aab928b1dd8cee7c (diff) | |
| parent | e5215c02da35fd2a89db84a80da452ecb4021a4c (diff) | |
| download | Tango-b7bd2edc8c009ded74ea1680a2b8de1a80015d35.tar.gz Tango-b7bd2edc8c009ded74ea1680a2b8de1a80015d35.zip | |
merge
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication')
9 files changed, 533 insertions, 9 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/Container.c b/Software/Embedded_SW/Embedded/Communication/Container.c index d7a669f1d..265047f8a 100644 --- a/Software/Embedded_SW/Embedded/Communication/Container.c +++ b/Software/Embedded_SW/Embedded/Communication/Container.c @@ -438,6 +438,10 @@ void receive_callback(char* buffer, size_t length) case MESSAGE_TYPE__MidTankDataSetupRequest: MidTankDataSetupFunc(requestContainer); break; + + case MESSAGE_TYPE__MachineCalibrationDataRequest: + MachineCalibrationDataRequestFunc(requestContainer); + break; case MESSAGE_TYPE__StartMachineStatusUpdateRequest: MachineUpdateInitFunc(requestContainer); break; 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 e620643a7..2f8a86d66 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[221] = +static const ProtobufCEnumValue message_type__enum_values_by_number[223] = { { "None", "MESSAGE_TYPE__None", 0 }, { "ErrorResponse", "MESSAGE_TYPE__ErrorResponse", 1 }, @@ -226,15 +226,17 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[221] = { "DispenserDataResponse", "MESSAGE_TYPE__DispenserDataResponse", 8001 }, { "MidTankDataSetupRequest", "MESSAGE_TYPE__MidTankDataSetupRequest", 8002 }, { "MidTankDataSetupResponse", "MESSAGE_TYPE__MidTankDataSetupResponse", 8003 }, + { "MachineCalibrationDataRequest", "MESSAGE_TYPE__MachineCalibrationDataRequest", 8004 }, + { "MachineCalibrationDataResponse", "MESSAGE_TYPE__MachineCalibrationDataResponse", 8005 }, { "StartMachineStatusUpdateRequest", "MESSAGE_TYPE__StartMachineStatusUpdateRequest", 9000 }, { "StartMachineStatusUpdateResponse", "MESSAGE_TYPE__StartMachineStatusUpdateResponse", 9001 }, { "StopMachineStatusUpdateRequest", "MESSAGE_TYPE__StopMachineStatusUpdateRequest", 9002 }, { "StopMachineStatusUpdateResponse", "MESSAGE_TYPE__StopMachineStatusUpdateResponse", 9003 }, }; static const ProtobufCIntRange message_type__value_ranges[] = { -{0, 0},{3, 2},{1000, 104},{2000, 119},{3000, 165},{4000, 175},{5000, 179},{6000, 183},{7000, 189},{8000, 213},{9000, 217},{0, 221} +{0, 0},{3, 2},{1000, 104},{2000, 119},{3000, 165},{4000, 175},{5000, 179},{6000, 183},{7000, 189},{8000, 213},{9000, 219},{0, 223} }; -static const ProtobufCEnumValueIndex message_type__enum_values_by_name[221] = +static const ProtobufCEnumValueIndex message_type__enum_values_by_name[223] = { { "AbortJobRequest", 167 }, { "AbortJobResponse", 168 }, @@ -294,6 +296,8 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[221] = { "KeepAliveResponse", 184 }, { "KillProcessRequest", 195 }, { "KillProcessResponse", 196 }, + { "MachineCalibrationDataRequest", 217 }, + { "MachineCalibrationDataResponse", 218 }, { "MidTankDataSetupRequest", 215 }, { "MidTankDataSetupResponse", 216 }, { "MotorAbortHomingRequest", 121 }, @@ -333,8 +337,8 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[221] = { "StartDiagnosticsResponse", 120 }, { "StartEventsNotificationRequest", 149 }, { "StartEventsNotificationResponse", 150 }, - { "StartMachineStatusUpdateRequest", 217 }, - { "StartMachineStatusUpdateResponse", 218 }, + { "StartMachineStatusUpdateRequest", 219 }, + { "StartMachineStatusUpdateResponse", 220 }, { "StopApplicationLogsRequest", 115 }, { "StopApplicationLogsResponse", 116 }, { "StopCartridgesUpdateRequest", 161 }, @@ -345,8 +349,8 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[221] = { "StopDiagnosticsResponse", 148 }, { "StopEventsNotificationRequest", 151 }, { "StopEventsNotificationResponse", 152 }, - { "StopMachineStatusUpdateRequest", 219 }, - { "StopMachineStatusUpdateResponse", 220 }, + { "StopMachineStatusUpdateRequest", 221 }, + { "StopMachineStatusUpdateResponse", 222 }, { "StubAbortJobRequest", 100 }, { "StubAbortJobResponse", 101 }, { "StubCartridgeReadRequest", 6 }, @@ -465,9 +469,9 @@ const ProtobufCEnumDescriptor message_type__descriptor = "MessageType", "MessageType", "", - 221, + 223, message_type__enum_values_by_number, - 221, + 223, message_type__enum_values_by_name, 11, 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 c73022559..71e0db881 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 @@ -237,6 +237,8 @@ typedef enum _MessageType { MESSAGE_TYPE__DispenserDataResponse = 8001, MESSAGE_TYPE__MidTankDataSetupRequest = 8002, MESSAGE_TYPE__MidTankDataSetupResponse = 8003, + MESSAGE_TYPE__MachineCalibrationDataRequest = 8004, + MESSAGE_TYPE__MachineCalibrationDataResponse = 8005, MESSAGE_TYPE__StartMachineStatusUpdateRequest = 9000, MESSAGE_TYPE__StartMachineStatusUpdateResponse = 9001, MESSAGE_TYPE__StopMachineStatusUpdateRequest = 9002, diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationData.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationData.pb-c.c new file mode 100644 index 000000000..0b27078d6 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationData.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MachineCalibrationData.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MachineCalibrationData.pb-c.h" +void machine_calibration_data__init + (MachineCalibrationData *message) +{ + static const MachineCalibrationData init_value = MACHINE_CALIBRATION_DATA__INIT; + *message = init_value; +} +size_t machine_calibration_data__get_packed_size + (const MachineCalibrationData *message) +{ + assert(message->base.descriptor == &machine_calibration_data__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t machine_calibration_data__pack + (const MachineCalibrationData *message, + uint8_t *out) +{ + assert(message->base.descriptor == &machine_calibration_data__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t machine_calibration_data__pack_to_buffer + (const MachineCalibrationData *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &machine_calibration_data__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MachineCalibrationData * + machine_calibration_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MachineCalibrationData *) + protobuf_c_message_unpack (&machine_calibration_data__descriptor, + allocator, len, data); +} +void machine_calibration_data__free_unpacked + (MachineCalibrationData *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &machine_calibration_data__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor machine_calibration_data__field_descriptors[4] = +{ + { + "DancerMiddlePoint", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT32, + offsetof(MachineCalibrationData, n_dancermiddlepoint), + offsetof(MachineCalibrationData, dancermiddlepoint), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MidTankInfo", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(MachineCalibrationData, n_midtankinfo), + offsetof(MachineCalibrationData, midtankinfo), + &mid_tank_data__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MachineSerialNumber", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(MachineCalibrationData, machineserialnumber), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MACAddress", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(MachineCalibrationData, macaddress), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned machine_calibration_data__field_indices_by_name[] = { + 0, /* field[0] = DancerMiddlePoint */ + 3, /* field[3] = MACAddress */ + 2, /* field[2] = MachineSerialNumber */ + 1, /* field[1] = MidTankInfo */ +}; +static const ProtobufCIntRange machine_calibration_data__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor machine_calibration_data__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MachineCalibrationData", + "MachineCalibrationData", + "MachineCalibrationData", + "", + sizeof(MachineCalibrationData), + 4, + machine_calibration_data__field_descriptors, + machine_calibration_data__field_indices_by_name, + 1, machine_calibration_data__number_ranges, + (ProtobufCMessageInit) machine_calibration_data__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationData.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationData.pb-c.h new file mode 100644 index 000000000..f0a86f429 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationData.pb-c.h @@ -0,0 +1,77 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MachineCalibrationData.proto */ + +#ifndef PROTOBUF_C_MachineCalibrationData_2eproto__INCLUDED +#define PROTOBUF_C_MachineCalibrationData_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 "MidTankData.pb-c.h" + +typedef struct _MachineCalibrationData MachineCalibrationData; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MachineCalibrationData +{ + ProtobufCMessage base; + size_t n_dancermiddlepoint; + uint32_t *dancermiddlepoint; + size_t n_midtankinfo; + MidTankData **midtankinfo; + char *machineserialnumber; + char *macaddress; +}; +#define MACHINE_CALIBRATION_DATA__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&machine_calibration_data__descriptor) \ + , 0,NULL, 0,NULL, NULL, NULL } + + +/* MachineCalibrationData methods */ +void machine_calibration_data__init + (MachineCalibrationData *message); +size_t machine_calibration_data__get_packed_size + (const MachineCalibrationData *message); +size_t machine_calibration_data__pack + (const MachineCalibrationData *message, + uint8_t *out); +size_t machine_calibration_data__pack_to_buffer + (const MachineCalibrationData *message, + ProtobufCBuffer *buffer); +MachineCalibrationData * + machine_calibration_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void machine_calibration_data__free_unpacked + (MachineCalibrationData *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MachineCalibrationData_Closure) + (const MachineCalibrationData *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor machine_calibration_data__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MachineCalibrationData_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataRequest.pb-c.c new file mode 100644 index 000000000..6c130bd01 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MachineCalibrationDataRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MachineCalibrationDataRequest.pb-c.h" +void machine_calibration_data_request__init + (MachineCalibrationDataRequest *message) +{ + static const MachineCalibrationDataRequest init_value = MACHINE_CALIBRATION_DATA_REQUEST__INIT; + *message = init_value; +} +size_t machine_calibration_data_request__get_packed_size + (const MachineCalibrationDataRequest *message) +{ + assert(message->base.descriptor == &machine_calibration_data_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t machine_calibration_data_request__pack + (const MachineCalibrationDataRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &machine_calibration_data_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t machine_calibration_data_request__pack_to_buffer + (const MachineCalibrationDataRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &machine_calibration_data_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MachineCalibrationDataRequest * + machine_calibration_data_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MachineCalibrationDataRequest *) + protobuf_c_message_unpack (&machine_calibration_data_request__descriptor, + allocator, len, data); +} +void machine_calibration_data_request__free_unpacked + (MachineCalibrationDataRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &machine_calibration_data_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define machine_calibration_data_request__field_descriptors NULL +#define machine_calibration_data_request__field_indices_by_name NULL +#define machine_calibration_data_request__number_ranges NULL +const ProtobufCMessageDescriptor machine_calibration_data_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MachineCalibrationDataRequest", + "MachineCalibrationDataRequest", + "MachineCalibrationDataRequest", + "", + sizeof(MachineCalibrationDataRequest), + 0, + machine_calibration_data_request__field_descriptors, + machine_calibration_data_request__field_indices_by_name, + 0, machine_calibration_data_request__number_ranges, + (ProtobufCMessageInit) machine_calibration_data_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataRequest.pb-c.h new file mode 100644 index 000000000..0e66d728e --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MachineCalibrationDataRequest.proto */ + +#ifndef PROTOBUF_C_MachineCalibrationDataRequest_2eproto__INCLUDED +#define PROTOBUF_C_MachineCalibrationDataRequest_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 _MachineCalibrationDataRequest MachineCalibrationDataRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MachineCalibrationDataRequest +{ + ProtobufCMessage base; +}; +#define MACHINE_CALIBRATION_DATA_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&machine_calibration_data_request__descriptor) \ + } + + +/* MachineCalibrationDataRequest methods */ +void machine_calibration_data_request__init + (MachineCalibrationDataRequest *message); +size_t machine_calibration_data_request__get_packed_size + (const MachineCalibrationDataRequest *message); +size_t machine_calibration_data_request__pack + (const MachineCalibrationDataRequest *message, + uint8_t *out); +size_t machine_calibration_data_request__pack_to_buffer + (const MachineCalibrationDataRequest *message, + ProtobufCBuffer *buffer); +MachineCalibrationDataRequest * + machine_calibration_data_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void machine_calibration_data_request__free_unpacked + (MachineCalibrationDataRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MachineCalibrationDataRequest_Closure) + (const MachineCalibrationDataRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor machine_calibration_data_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MachineCalibrationDataRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataResponse.pb-c.c new file mode 100644 index 000000000..a91062773 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MachineCalibrationDataResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MachineCalibrationDataResponse.pb-c.h" +void machine_calibration_data_response__init + (MachineCalibrationDataResponse *message) +{ + static const MachineCalibrationDataResponse init_value = MACHINE_CALIBRATION_DATA_RESPONSE__INIT; + *message = init_value; +} +size_t machine_calibration_data_response__get_packed_size + (const MachineCalibrationDataResponse *message) +{ + assert(message->base.descriptor == &machine_calibration_data_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t machine_calibration_data_response__pack + (const MachineCalibrationDataResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &machine_calibration_data_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t machine_calibration_data_response__pack_to_buffer + (const MachineCalibrationDataResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &machine_calibration_data_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MachineCalibrationDataResponse * + machine_calibration_data_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MachineCalibrationDataResponse *) + protobuf_c_message_unpack (&machine_calibration_data_response__descriptor, + allocator, len, data); +} +void machine_calibration_data_response__free_unpacked + (MachineCalibrationDataResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &machine_calibration_data_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor machine_calibration_data_response__field_descriptors[1] = +{ + { + "MachineCalibrationData", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(MachineCalibrationDataResponse, machinecalibrationdata), + &machine_calibration_data__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned machine_calibration_data_response__field_indices_by_name[] = { + 0, /* field[0] = MachineCalibrationData */ +}; +static const ProtobufCIntRange machine_calibration_data_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor machine_calibration_data_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MachineCalibrationDataResponse", + "MachineCalibrationDataResponse", + "MachineCalibrationDataResponse", + "", + sizeof(MachineCalibrationDataResponse), + 1, + machine_calibration_data_response__field_descriptors, + machine_calibration_data_response__field_indices_by_name, + 1, machine_calibration_data_response__number_ranges, + (ProtobufCMessageInit) machine_calibration_data_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataResponse.pb-c.h new file mode 100644 index 000000000..a1c83a7c4 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/MachineCalibrationDataResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MachineCalibrationDataResponse.proto */ + +#ifndef PROTOBUF_C_MachineCalibrationDataResponse_2eproto__INCLUDED +#define PROTOBUF_C_MachineCalibrationDataResponse_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 "MachineCalibrationData.pb-c.h" + +typedef struct _MachineCalibrationDataResponse MachineCalibrationDataResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MachineCalibrationDataResponse +{ + ProtobufCMessage base; + MachineCalibrationData *machinecalibrationdata; +}; +#define MACHINE_CALIBRATION_DATA_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&machine_calibration_data_response__descriptor) \ + , NULL } + + +/* MachineCalibrationDataResponse methods */ +void machine_calibration_data_response__init + (MachineCalibrationDataResponse *message); +size_t machine_calibration_data_response__get_packed_size + (const MachineCalibrationDataResponse *message); +size_t machine_calibration_data_response__pack + (const MachineCalibrationDataResponse *message, + uint8_t *out); +size_t machine_calibration_data_response__pack_to_buffer + (const MachineCalibrationDataResponse *message, + ProtobufCBuffer *buffer); +MachineCalibrationDataResponse * + machine_calibration_data_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void machine_calibration_data_response__free_unpacked + (MachineCalibrationDataResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MachineCalibrationDataResponse_Closure) + (const MachineCalibrationDataResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor machine_calibration_data_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MachineCalibrationDataResponse_2eproto__INCLUDED */ |
