diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-12-16 10:16:29 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-12-16 10:16:29 +0200 |
| commit | 23533186d51eef121defc02408bd9cccfbfcf49d (patch) | |
| tree | 2df5cacffbaf461c9d02d14ff23bb49a03ef7ee7 /Software | |
| parent | 6d291b7a980e6d9025102cfbfe99204259d306f6 (diff) | |
| download | Tango-23533186d51eef121defc02408bd9cccfbfcf49d.tar.gz Tango-23533186d51eef121defc02408bd9cccfbfcf49d.zip | |
Redundant.
Diffstat (limited to 'Software')
18 files changed, 1887 insertions, 0 deletions
diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationInput.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationInput.pb-c.c new file mode 100644 index 000000000..5d30f6cd5 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationInput.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationInput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationInput.pb-c.h" +void linearization_input__init + (LinearizationInput *message) +{ + static const LinearizationInput init_value = LINEARIZATION_INPUT__INIT; + *message = init_value; +} +size_t linearization_input__get_packed_size + (const LinearizationInput *message) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_input__pack + (const LinearizationInput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_input__pack_to_buffer + (const LinearizationInput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationInput * + linearization_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationInput *) + protobuf_c_message_unpack (&linearization_input__descriptor, + allocator, len, data); +} +void linearization_input__free_unpacked + (LinearizationInput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_input__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_input__field_descriptors[5] = +{ + { + "LiquidType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(LinearizationInput, has_liquidtype), + offsetof(LinearizationInput, liquidtype), + &liquid_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetL", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targetl), + offsetof(LinearizationInput, targetl), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetA", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targeta), + offsetof(LinearizationInput, targeta), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetB", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targetb), + offsetof(LinearizationInput, targetb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Measurements", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(LinearizationInput, n_measurements), + offsetof(LinearizationInput, measurements), + &linearization_measurement__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_input__field_indices_by_name[] = { + 0, /* field[0] = LiquidType */ + 4, /* field[4] = Measurements */ + 2, /* field[2] = TargetA */ + 3, /* field[3] = TargetB */ + 1, /* field[1] = TargetL */ +}; +static const ProtobufCIntRange linearization_input__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor linearization_input__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationInput", + "LinearizationInput", + "LinearizationInput", + "", + sizeof(LinearizationInput), + 5, + linearization_input__field_descriptors, + linearization_input__field_indices_by_name, + 1, linearization_input__number_ranges, + (ProtobufCMessageInit) linearization_input__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationInput.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationInput.pb-c.h new file mode 100644 index 000000000..9cab974c5 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationInput.pb-c.h @@ -0,0 +1,82 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationInput.proto */ + +#ifndef PROTOBUF_C_LinearizationInput_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationInput_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 "LinearizationMeasurement.pb-c.h" +#include "LiquidType.pb-c.h" + +typedef struct _LinearizationInput LinearizationInput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationInput +{ + ProtobufCMessage base; + protobuf_c_boolean has_liquidtype; + LiquidType liquidtype; + protobuf_c_boolean has_targetl; + double targetl; + protobuf_c_boolean has_targeta; + double targeta; + protobuf_c_boolean has_targetb; + double targetb; + size_t n_measurements; + LinearizationMeasurement **measurements; +}; +#define LINEARIZATION_INPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_input__descriptor) \ + , 0, LIQUID_TYPE__Cyan, 0, 0, 0, 0, 0, 0, 0,NULL } + + +/* LinearizationInput methods */ +void linearization_input__init + (LinearizationInput *message); +size_t linearization_input__get_packed_size + (const LinearizationInput *message); +size_t linearization_input__pack + (const LinearizationInput *message, + uint8_t *out); +size_t linearization_input__pack_to_buffer + (const LinearizationInput *message, + ProtobufCBuffer *buffer); +LinearizationInput * + linearization_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_input__free_unpacked + (LinearizationInput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationInput_Closure) + (const LinearizationInput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_input__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationInput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationMeasurement.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationMeasurement.pb-c.c new file mode 100644 index 000000000..0a242ee0f --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationMeasurement.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationMeasurement.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationMeasurement.pb-c.h" +void linearization_measurement__init + (LinearizationMeasurement *message) +{ + static const LinearizationMeasurement init_value = LINEARIZATION_MEASUREMENT__INIT; + *message = init_value; +} +size_t linearization_measurement__get_packed_size + (const LinearizationMeasurement *message) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_measurement__pack + (const LinearizationMeasurement *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_measurement__pack_to_buffer + (const LinearizationMeasurement *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationMeasurement * + linearization_measurement__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationMeasurement *) + protobuf_c_message_unpack (&linearization_measurement__descriptor, + allocator, len, data); +} +void linearization_measurement__free_unpacked + (LinearizationMeasurement *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_measurement__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_measurement__field_descriptors[4] = +{ + { + "InkPercentage", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_inkpercentage), + offsetof(LinearizationMeasurement, inkpercentage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "L", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_l), + offsetof(LinearizationMeasurement, l), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "A", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_a), + offsetof(LinearizationMeasurement, a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "B", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_b), + offsetof(LinearizationMeasurement, b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_measurement__field_indices_by_name[] = { + 2, /* field[2] = A */ + 3, /* field[3] = B */ + 0, /* field[0] = InkPercentage */ + 1, /* field[1] = L */ +}; +static const ProtobufCIntRange linearization_measurement__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor linearization_measurement__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationMeasurement", + "LinearizationMeasurement", + "LinearizationMeasurement", + "", + sizeof(LinearizationMeasurement), + 4, + linearization_measurement__field_descriptors, + linearization_measurement__field_indices_by_name, + 1, linearization_measurement__number_ranges, + (ProtobufCMessageInit) linearization_measurement__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationMeasurement.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationMeasurement.pb-c.h new file mode 100644 index 000000000..b4f17f87e --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationMeasurement.pb-c.h @@ -0,0 +1,78 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationMeasurement.proto */ + +#ifndef PROTOBUF_C_LinearizationMeasurement_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationMeasurement_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 _LinearizationMeasurement LinearizationMeasurement; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationMeasurement +{ + ProtobufCMessage base; + protobuf_c_boolean has_inkpercentage; + double inkpercentage; + protobuf_c_boolean has_l; + double l; + protobuf_c_boolean has_a; + double a; + protobuf_c_boolean has_b; + double b; +}; +#define LINEARIZATION_MEASUREMENT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_measurement__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* LinearizationMeasurement methods */ +void linearization_measurement__init + (LinearizationMeasurement *message); +size_t linearization_measurement__get_packed_size + (const LinearizationMeasurement *message); +size_t linearization_measurement__pack + (const LinearizationMeasurement *message, + uint8_t *out); +size_t linearization_measurement__pack_to_buffer + (const LinearizationMeasurement *message, + ProtobufCBuffer *buffer); +LinearizationMeasurement * + linearization_measurement__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_measurement__free_unpacked + (LinearizationMeasurement *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationMeasurement_Closure) + (const LinearizationMeasurement *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_measurement__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationMeasurement_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationOutput.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationOutput.pb-c.c new file mode 100644 index 000000000..5bd04b218 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationOutput.pb-c.c @@ -0,0 +1,119 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationOutput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationOutput.pb-c.h" +void linearization_output__init + (LinearizationOutput *message) +{ + static const LinearizationOutput init_value = LINEARIZATION_OUTPUT__INIT; + *message = init_value; +} +size_t linearization_output__get_packed_size + (const LinearizationOutput *message) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_output__pack + (const LinearizationOutput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_output__pack_to_buffer + (const LinearizationOutput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationOutput * + linearization_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationOutput *) + protobuf_c_message_unpack (&linearization_output__descriptor, + allocator, len, data); +} +void linearization_output__free_unpacked + (LinearizationOutput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_output__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_output__field_descriptors[3] = +{ + { + "InkPercentage", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationOutput, n_inkpercentage), + offsetof(LinearizationOutput, inkpercentage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HasError", + 20, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(LinearizationOutput, has_haserror), + offsetof(LinearizationOutput, haserror), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ErrorMessage", + 21, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(LinearizationOutput, errormessage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_output__field_indices_by_name[] = { + 2, /* field[2] = ErrorMessage */ + 1, /* field[1] = HasError */ + 0, /* field[0] = InkPercentage */ +}; +static const ProtobufCIntRange linearization_output__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 20, 1 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor linearization_output__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationOutput", + "LinearizationOutput", + "LinearizationOutput", + "", + sizeof(LinearizationOutput), + 3, + linearization_output__field_descriptors, + linearization_output__field_indices_by_name, + 2, linearization_output__number_ranges, + (ProtobufCMessageInit) linearization_output__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationOutput.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationOutput.pb-c.h new file mode 100644 index 000000000..b0ab54e12 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v1/PMR/ColorLab/LinearizationOutput.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationOutput.proto */ + +#ifndef PROTOBUF_C_LinearizationOutput_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationOutput_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 _LinearizationOutput LinearizationOutput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationOutput +{ + ProtobufCMessage base; + size_t n_inkpercentage; + double *inkpercentage; + protobuf_c_boolean has_haserror; + protobuf_c_boolean haserror; + char *errormessage; +}; +#define LINEARIZATION_OUTPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_output__descriptor) \ + , 0,NULL, 0, 0, NULL } + + +/* LinearizationOutput methods */ +void linearization_output__init + (LinearizationOutput *message); +size_t linearization_output__get_packed_size + (const LinearizationOutput *message); +size_t linearization_output__pack + (const LinearizationOutput *message, + uint8_t *out); +size_t linearization_output__pack_to_buffer + (const LinearizationOutput *message, + ProtobufCBuffer *buffer); +LinearizationOutput * + linearization_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_output__free_unpacked + (LinearizationOutput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationOutput_Closure) + (const LinearizationOutput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_output__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationOutput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationInput.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationInput.pb-c.c new file mode 100644 index 000000000..5d30f6cd5 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationInput.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationInput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationInput.pb-c.h" +void linearization_input__init + (LinearizationInput *message) +{ + static const LinearizationInput init_value = LINEARIZATION_INPUT__INIT; + *message = init_value; +} +size_t linearization_input__get_packed_size + (const LinearizationInput *message) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_input__pack + (const LinearizationInput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_input__pack_to_buffer + (const LinearizationInput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationInput * + linearization_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationInput *) + protobuf_c_message_unpack (&linearization_input__descriptor, + allocator, len, data); +} +void linearization_input__free_unpacked + (LinearizationInput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_input__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_input__field_descriptors[5] = +{ + { + "LiquidType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(LinearizationInput, has_liquidtype), + offsetof(LinearizationInput, liquidtype), + &liquid_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetL", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targetl), + offsetof(LinearizationInput, targetl), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetA", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targeta), + offsetof(LinearizationInput, targeta), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetB", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targetb), + offsetof(LinearizationInput, targetb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Measurements", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(LinearizationInput, n_measurements), + offsetof(LinearizationInput, measurements), + &linearization_measurement__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_input__field_indices_by_name[] = { + 0, /* field[0] = LiquidType */ + 4, /* field[4] = Measurements */ + 2, /* field[2] = TargetA */ + 3, /* field[3] = TargetB */ + 1, /* field[1] = TargetL */ +}; +static const ProtobufCIntRange linearization_input__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor linearization_input__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationInput", + "LinearizationInput", + "LinearizationInput", + "", + sizeof(LinearizationInput), + 5, + linearization_input__field_descriptors, + linearization_input__field_indices_by_name, + 1, linearization_input__number_ranges, + (ProtobufCMessageInit) linearization_input__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationInput.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationInput.pb-c.h new file mode 100644 index 000000000..9cab974c5 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationInput.pb-c.h @@ -0,0 +1,82 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationInput.proto */ + +#ifndef PROTOBUF_C_LinearizationInput_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationInput_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 "LinearizationMeasurement.pb-c.h" +#include "LiquidType.pb-c.h" + +typedef struct _LinearizationInput LinearizationInput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationInput +{ + ProtobufCMessage base; + protobuf_c_boolean has_liquidtype; + LiquidType liquidtype; + protobuf_c_boolean has_targetl; + double targetl; + protobuf_c_boolean has_targeta; + double targeta; + protobuf_c_boolean has_targetb; + double targetb; + size_t n_measurements; + LinearizationMeasurement **measurements; +}; +#define LINEARIZATION_INPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_input__descriptor) \ + , 0, LIQUID_TYPE__Cyan, 0, 0, 0, 0, 0, 0, 0,NULL } + + +/* LinearizationInput methods */ +void linearization_input__init + (LinearizationInput *message); +size_t linearization_input__get_packed_size + (const LinearizationInput *message); +size_t linearization_input__pack + (const LinearizationInput *message, + uint8_t *out); +size_t linearization_input__pack_to_buffer + (const LinearizationInput *message, + ProtobufCBuffer *buffer); +LinearizationInput * + linearization_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_input__free_unpacked + (LinearizationInput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationInput_Closure) + (const LinearizationInput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_input__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationInput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationMeasurement.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationMeasurement.pb-c.c new file mode 100644 index 000000000..0a242ee0f --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationMeasurement.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationMeasurement.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationMeasurement.pb-c.h" +void linearization_measurement__init + (LinearizationMeasurement *message) +{ + static const LinearizationMeasurement init_value = LINEARIZATION_MEASUREMENT__INIT; + *message = init_value; +} +size_t linearization_measurement__get_packed_size + (const LinearizationMeasurement *message) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_measurement__pack + (const LinearizationMeasurement *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_measurement__pack_to_buffer + (const LinearizationMeasurement *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationMeasurement * + linearization_measurement__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationMeasurement *) + protobuf_c_message_unpack (&linearization_measurement__descriptor, + allocator, len, data); +} +void linearization_measurement__free_unpacked + (LinearizationMeasurement *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_measurement__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_measurement__field_descriptors[4] = +{ + { + "InkPercentage", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_inkpercentage), + offsetof(LinearizationMeasurement, inkpercentage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "L", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_l), + offsetof(LinearizationMeasurement, l), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "A", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_a), + offsetof(LinearizationMeasurement, a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "B", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_b), + offsetof(LinearizationMeasurement, b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_measurement__field_indices_by_name[] = { + 2, /* field[2] = A */ + 3, /* field[3] = B */ + 0, /* field[0] = InkPercentage */ + 1, /* field[1] = L */ +}; +static const ProtobufCIntRange linearization_measurement__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor linearization_measurement__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationMeasurement", + "LinearizationMeasurement", + "LinearizationMeasurement", + "", + sizeof(LinearizationMeasurement), + 4, + linearization_measurement__field_descriptors, + linearization_measurement__field_indices_by_name, + 1, linearization_measurement__number_ranges, + (ProtobufCMessageInit) linearization_measurement__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationMeasurement.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationMeasurement.pb-c.h new file mode 100644 index 000000000..b4f17f87e --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationMeasurement.pb-c.h @@ -0,0 +1,78 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationMeasurement.proto */ + +#ifndef PROTOBUF_C_LinearizationMeasurement_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationMeasurement_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 _LinearizationMeasurement LinearizationMeasurement; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationMeasurement +{ + ProtobufCMessage base; + protobuf_c_boolean has_inkpercentage; + double inkpercentage; + protobuf_c_boolean has_l; + double l; + protobuf_c_boolean has_a; + double a; + protobuf_c_boolean has_b; + double b; +}; +#define LINEARIZATION_MEASUREMENT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_measurement__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* LinearizationMeasurement methods */ +void linearization_measurement__init + (LinearizationMeasurement *message); +size_t linearization_measurement__get_packed_size + (const LinearizationMeasurement *message); +size_t linearization_measurement__pack + (const LinearizationMeasurement *message, + uint8_t *out); +size_t linearization_measurement__pack_to_buffer + (const LinearizationMeasurement *message, + ProtobufCBuffer *buffer); +LinearizationMeasurement * + linearization_measurement__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_measurement__free_unpacked + (LinearizationMeasurement *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationMeasurement_Closure) + (const LinearizationMeasurement *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_measurement__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationMeasurement_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationOutput.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationOutput.pb-c.c new file mode 100644 index 000000000..5bd04b218 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationOutput.pb-c.c @@ -0,0 +1,119 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationOutput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationOutput.pb-c.h" +void linearization_output__init + (LinearizationOutput *message) +{ + static const LinearizationOutput init_value = LINEARIZATION_OUTPUT__INIT; + *message = init_value; +} +size_t linearization_output__get_packed_size + (const LinearizationOutput *message) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_output__pack + (const LinearizationOutput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_output__pack_to_buffer + (const LinearizationOutput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationOutput * + linearization_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationOutput *) + protobuf_c_message_unpack (&linearization_output__descriptor, + allocator, len, data); +} +void linearization_output__free_unpacked + (LinearizationOutput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_output__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_output__field_descriptors[3] = +{ + { + "InkPercentage", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationOutput, n_inkpercentage), + offsetof(LinearizationOutput, inkpercentage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HasError", + 20, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(LinearizationOutput, has_haserror), + offsetof(LinearizationOutput, haserror), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ErrorMessage", + 21, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(LinearizationOutput, errormessage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_output__field_indices_by_name[] = { + 2, /* field[2] = ErrorMessage */ + 1, /* field[1] = HasError */ + 0, /* field[0] = InkPercentage */ +}; +static const ProtobufCIntRange linearization_output__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 20, 1 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor linearization_output__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationOutput", + "LinearizationOutput", + "LinearizationOutput", + "", + sizeof(LinearizationOutput), + 3, + linearization_output__field_descriptors, + linearization_output__field_indices_by_name, + 2, linearization_output__number_ranges, + (ProtobufCMessageInit) linearization_output__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationOutput.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationOutput.pb-c.h new file mode 100644 index 000000000..b0ab54e12 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v2/PMR/ColorLab/LinearizationOutput.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationOutput.proto */ + +#ifndef PROTOBUF_C_LinearizationOutput_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationOutput_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 _LinearizationOutput LinearizationOutput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationOutput +{ + ProtobufCMessage base; + size_t n_inkpercentage; + double *inkpercentage; + protobuf_c_boolean has_haserror; + protobuf_c_boolean haserror; + char *errormessage; +}; +#define LINEARIZATION_OUTPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_output__descriptor) \ + , 0,NULL, 0, 0, NULL } + + +/* LinearizationOutput methods */ +void linearization_output__init + (LinearizationOutput *message); +size_t linearization_output__get_packed_size + (const LinearizationOutput *message); +size_t linearization_output__pack + (const LinearizationOutput *message, + uint8_t *out); +size_t linearization_output__pack_to_buffer + (const LinearizationOutput *message, + ProtobufCBuffer *buffer); +LinearizationOutput * + linearization_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_output__free_unpacked + (LinearizationOutput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationOutput_Closure) + (const LinearizationOutput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_output__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationOutput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationInput.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationInput.pb-c.c new file mode 100644 index 000000000..5d30f6cd5 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationInput.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationInput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationInput.pb-c.h" +void linearization_input__init + (LinearizationInput *message) +{ + static const LinearizationInput init_value = LINEARIZATION_INPUT__INIT; + *message = init_value; +} +size_t linearization_input__get_packed_size + (const LinearizationInput *message) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_input__pack + (const LinearizationInput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_input__pack_to_buffer + (const LinearizationInput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_input__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationInput * + linearization_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationInput *) + protobuf_c_message_unpack (&linearization_input__descriptor, + allocator, len, data); +} +void linearization_input__free_unpacked + (LinearizationInput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_input__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_input__field_descriptors[5] = +{ + { + "LiquidType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(LinearizationInput, has_liquidtype), + offsetof(LinearizationInput, liquidtype), + &liquid_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetL", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targetl), + offsetof(LinearizationInput, targetl), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetA", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targeta), + offsetof(LinearizationInput, targeta), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TargetB", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationInput, has_targetb), + offsetof(LinearizationInput, targetb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Measurements", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(LinearizationInput, n_measurements), + offsetof(LinearizationInput, measurements), + &linearization_measurement__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_input__field_indices_by_name[] = { + 0, /* field[0] = LiquidType */ + 4, /* field[4] = Measurements */ + 2, /* field[2] = TargetA */ + 3, /* field[3] = TargetB */ + 1, /* field[1] = TargetL */ +}; +static const ProtobufCIntRange linearization_input__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor linearization_input__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationInput", + "LinearizationInput", + "LinearizationInput", + "", + sizeof(LinearizationInput), + 5, + linearization_input__field_descriptors, + linearization_input__field_indices_by_name, + 1, linearization_input__number_ranges, + (ProtobufCMessageInit) linearization_input__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationInput.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationInput.pb-c.h new file mode 100644 index 000000000..9cab974c5 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationInput.pb-c.h @@ -0,0 +1,82 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationInput.proto */ + +#ifndef PROTOBUF_C_LinearizationInput_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationInput_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 "LinearizationMeasurement.pb-c.h" +#include "LiquidType.pb-c.h" + +typedef struct _LinearizationInput LinearizationInput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationInput +{ + ProtobufCMessage base; + protobuf_c_boolean has_liquidtype; + LiquidType liquidtype; + protobuf_c_boolean has_targetl; + double targetl; + protobuf_c_boolean has_targeta; + double targeta; + protobuf_c_boolean has_targetb; + double targetb; + size_t n_measurements; + LinearizationMeasurement **measurements; +}; +#define LINEARIZATION_INPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_input__descriptor) \ + , 0, LIQUID_TYPE__Cyan, 0, 0, 0, 0, 0, 0, 0,NULL } + + +/* LinearizationInput methods */ +void linearization_input__init + (LinearizationInput *message); +size_t linearization_input__get_packed_size + (const LinearizationInput *message); +size_t linearization_input__pack + (const LinearizationInput *message, + uint8_t *out); +size_t linearization_input__pack_to_buffer + (const LinearizationInput *message, + ProtobufCBuffer *buffer); +LinearizationInput * + linearization_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_input__free_unpacked + (LinearizationInput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationInput_Closure) + (const LinearizationInput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_input__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationInput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationMeasurement.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationMeasurement.pb-c.c new file mode 100644 index 000000000..0a242ee0f --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationMeasurement.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationMeasurement.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationMeasurement.pb-c.h" +void linearization_measurement__init + (LinearizationMeasurement *message) +{ + static const LinearizationMeasurement init_value = LINEARIZATION_MEASUREMENT__INIT; + *message = init_value; +} +size_t linearization_measurement__get_packed_size + (const LinearizationMeasurement *message) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_measurement__pack + (const LinearizationMeasurement *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_measurement__pack_to_buffer + (const LinearizationMeasurement *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_measurement__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationMeasurement * + linearization_measurement__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationMeasurement *) + protobuf_c_message_unpack (&linearization_measurement__descriptor, + allocator, len, data); +} +void linearization_measurement__free_unpacked + (LinearizationMeasurement *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_measurement__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_measurement__field_descriptors[4] = +{ + { + "InkPercentage", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_inkpercentage), + offsetof(LinearizationMeasurement, inkpercentage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "L", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_l), + offsetof(LinearizationMeasurement, l), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "A", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_a), + offsetof(LinearizationMeasurement, a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "B", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationMeasurement, has_b), + offsetof(LinearizationMeasurement, b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_measurement__field_indices_by_name[] = { + 2, /* field[2] = A */ + 3, /* field[3] = B */ + 0, /* field[0] = InkPercentage */ + 1, /* field[1] = L */ +}; +static const ProtobufCIntRange linearization_measurement__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor linearization_measurement__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationMeasurement", + "LinearizationMeasurement", + "LinearizationMeasurement", + "", + sizeof(LinearizationMeasurement), + 4, + linearization_measurement__field_descriptors, + linearization_measurement__field_indices_by_name, + 1, linearization_measurement__number_ranges, + (ProtobufCMessageInit) linearization_measurement__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationMeasurement.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationMeasurement.pb-c.h new file mode 100644 index 000000000..b4f17f87e --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationMeasurement.pb-c.h @@ -0,0 +1,78 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationMeasurement.proto */ + +#ifndef PROTOBUF_C_LinearizationMeasurement_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationMeasurement_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 _LinearizationMeasurement LinearizationMeasurement; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationMeasurement +{ + ProtobufCMessage base; + protobuf_c_boolean has_inkpercentage; + double inkpercentage; + protobuf_c_boolean has_l; + double l; + protobuf_c_boolean has_a; + double a; + protobuf_c_boolean has_b; + double b; +}; +#define LINEARIZATION_MEASUREMENT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_measurement__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* LinearizationMeasurement methods */ +void linearization_measurement__init + (LinearizationMeasurement *message); +size_t linearization_measurement__get_packed_size + (const LinearizationMeasurement *message); +size_t linearization_measurement__pack + (const LinearizationMeasurement *message, + uint8_t *out); +size_t linearization_measurement__pack_to_buffer + (const LinearizationMeasurement *message, + ProtobufCBuffer *buffer); +LinearizationMeasurement * + linearization_measurement__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_measurement__free_unpacked + (LinearizationMeasurement *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationMeasurement_Closure) + (const LinearizationMeasurement *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_measurement__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationMeasurement_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationOutput.pb-c.c b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationOutput.pb-c.c new file mode 100644 index 000000000..5bd04b218 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationOutput.pb-c.c @@ -0,0 +1,119 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationOutput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LinearizationOutput.pb-c.h" +void linearization_output__init + (LinearizationOutput *message) +{ + static const LinearizationOutput init_value = LINEARIZATION_OUTPUT__INIT; + *message = init_value; +} +size_t linearization_output__get_packed_size + (const LinearizationOutput *message) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t linearization_output__pack + (const LinearizationOutput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t linearization_output__pack_to_buffer + (const LinearizationOutput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &linearization_output__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +LinearizationOutput * + linearization_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (LinearizationOutput *) + protobuf_c_message_unpack (&linearization_output__descriptor, + allocator, len, data); +} +void linearization_output__free_unpacked + (LinearizationOutput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &linearization_output__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor linearization_output__field_descriptors[3] = +{ + { + "InkPercentage", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(LinearizationOutput, n_inkpercentage), + offsetof(LinearizationOutput, inkpercentage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HasError", + 20, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(LinearizationOutput, has_haserror), + offsetof(LinearizationOutput, haserror), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ErrorMessage", + 21, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(LinearizationOutput, errormessage), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned linearization_output__field_indices_by_name[] = { + 2, /* field[2] = ErrorMessage */ + 1, /* field[1] = HasError */ + 0, /* field[0] = InkPercentage */ +}; +static const ProtobufCIntRange linearization_output__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 20, 1 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor linearization_output__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "LinearizationOutput", + "LinearizationOutput", + "LinearizationOutput", + "", + sizeof(LinearizationOutput), + 3, + linearization_output__field_descriptors, + linearization_output__field_indices_by_name, + 2, linearization_output__number_ranges, + (ProtobufCMessageInit) linearization_output__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationOutput.pb-c.h b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationOutput.pb-c.h new file mode 100644 index 000000000..b0ab54e12 --- /dev/null +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v3/PMR/ColorLab/LinearizationOutput.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LinearizationOutput.proto */ + +#ifndef PROTOBUF_C_LinearizationOutput_2eproto__INCLUDED +#define PROTOBUF_C_LinearizationOutput_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 _LinearizationOutput LinearizationOutput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _LinearizationOutput +{ + ProtobufCMessage base; + size_t n_inkpercentage; + double *inkpercentage; + protobuf_c_boolean has_haserror; + protobuf_c_boolean haserror; + char *errormessage; +}; +#define LINEARIZATION_OUTPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&linearization_output__descriptor) \ + , 0,NULL, 0, 0, NULL } + + +/* LinearizationOutput methods */ +void linearization_output__init + (LinearizationOutput *message); +size_t linearization_output__get_packed_size + (const LinearizationOutput *message); +size_t linearization_output__pack + (const LinearizationOutput *message, + uint8_t *out); +size_t linearization_output__pack_to_buffer + (const LinearizationOutput *message, + ProtobufCBuffer *buffer); +LinearizationOutput * + linearization_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void linearization_output__free_unpacked + (LinearizationOutput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*LinearizationOutput_Closure) + (const LinearizationOutput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor linearization_output__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LinearizationOutput_2eproto__INCLUDED */ |
