diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-03-03 00:52:22 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-03-03 00:52:22 +0200 |
| commit | 79ffa1774217400bd750f6a85df9f969429580c3 (patch) | |
| tree | 1d093fcaa82c2f1940a330a6a5852d879ffe5409 /Software/Visual_Studio/Native | |
| parent | 65d7f918b273a572d2d9a1d08a2797ea76b10850 (diff) | |
| download | Tango-79ffa1774217400bd750f6a85df9f969429580c3.tar.gz Tango-79ffa1774217400bd750f6a85df9f969429580c3.zip | |
Added Delta Resolution for Hive Color Picker.
Implemented Embroidery PMR.
Implemented Embroidery Native Adapter.
Diffstat (limited to 'Software/Visual_Studio/Native')
122 files changed, 11498 insertions, 148 deletions
diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp b/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp index db94a6609..eced78115 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp +++ b/Software/Visual_Studio/Native/Tango.ColorLib/Exports.cpp @@ -16,7 +16,7 @@ extern "C" EXPORT_API size_t __cdecl Calculate(uint8_t* request_buffer, size_t r return tester.Calculate(request_buffer, request_buffer_size, response_buffer); } -extern "C" EXPORT_API size_t __cdecl ForwardConvert(uint8_t* input_buffer, size_t input_buffer_size, uint8_t*& output_buffer) +extern "C" EXPORT_API size_t __cdecl Convert(uint8_t* input_buffer, size_t input_buffer_size, uint8_t*& output_buffer) { ColorConverter converter; return converter.Convert(input_buffer, input_buffer_size, output_buffer); diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.c index fb5ce4755..b193ae3e1 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/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[72] = +static const ProtobufCEnumValue message_type__enum_values_by_number[102] = { { "None", "MESSAGE_TYPE__None", 0 }, { "CalculateRequest", "MESSAGE_TYPE__CalculateRequest", 3 }, @@ -44,6 +44,30 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[72] = { "StubExtFlashReadResponse", "MESSAGE_TYPE__StubExtFlashReadResponse", 34 }, { "StubExtFlashWriteRequest", "MESSAGE_TYPE__StubExtFlashWriteRequest", 35 }, { "StubExtFlashWriteResponse", "MESSAGE_TYPE__StubExtFlashWriteResponse", 36 }, + { "StubFPGAReadBackRegRequest", "MESSAGE_TYPE__StubFPGAReadBackRegRequest", 37 }, + { "StubFPGAReadBackRegResponse", "MESSAGE_TYPE__StubFPGAReadBackRegResponse", 38 }, + { "StubFPGAReadVersionRequest", "MESSAGE_TYPE__StubFPGAReadVersionRequest", 39 }, + { "StubFPGAReadVersionResponse", "MESSAGE_TYPE__StubFPGAReadVersionResponse", 40 }, + { "StubL6470DriverRequest", "MESSAGE_TYPE__StubL6470DriverRequest", 41 }, + { "StubL6470DriverResponse", "MESSAGE_TYPE__StubL6470DriverResponse", 42 }, + { "StubMotorInitRequest", "MESSAGE_TYPE__StubMotorInitRequest", 43 }, + { "StubMotorInitResponse", "MESSAGE_TYPE__StubMotorInitResponse", 44 }, + { "StubMotorRunRequest", "MESSAGE_TYPE__StubMotorRunRequest", 45 }, + { "StubMotorRunResponse", "MESSAGE_TYPE__StubMotorRunResponse", 46 }, + { "StubMotorStopRequest", "MESSAGE_TYPE__StubMotorStopRequest", 47 }, + { "StubMotorStopResponse", "MESSAGE_TYPE__StubMotorStopResponse", 48 }, + { "StubMotorStatusRequest", "MESSAGE_TYPE__StubMotorStatusRequest", 49 }, + { "StubMotorStatusResponse", "MESSAGE_TYPE__StubMotorStatusResponse", 50 }, + { "StubMotorMovRequest", "MESSAGE_TYPE__StubMotorMovRequest", 51 }, + { "StubMotorMovResponse", "MESSAGE_TYPE__StubMotorMovResponse", 52 }, + { "StubMotorSpeedRequest", "MESSAGE_TYPE__StubMotorSpeedRequest", 53 }, + { "StubMotorSpeedResponse", "MESSAGE_TYPE__StubMotorSpeedResponse", 54 }, + { "StubMotorPositionRequest", "MESSAGE_TYPE__StubMotorPositionRequest", 55 }, + { "StubMotorPositionResponse", "MESSAGE_TYPE__StubMotorPositionResponse", 56 }, + { "StubHWVersionRequest", "MESSAGE_TYPE__StubHWVersionRequest", 57 }, + { "StubHWVersionResponse", "MESSAGE_TYPE__StubHWVersionResponse", 58 }, + { "StubF3Gpo01WriteRequest", "MESSAGE_TYPE__StubF3Gpo01WriteRequest", 59 }, + { "StubF3Gpo01WriteResponse", "MESSAGE_TYPE__StubF3Gpo01WriteResponse", 60 }, { "ExternalBridgeUdpDiscoveryPacket", "MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket", 1000 }, { "ExternalClientLoginRequest", "MESSAGE_TYPE__ExternalClientLoginRequest", 1001 }, { "ExternalClientLoginResponse", "MESSAGE_TYPE__ExternalClientLoginResponse", 1002 }, @@ -81,50 +105,58 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[72] = { "JobResponse", "MESSAGE_TYPE__JobResponse", 3001 }, { "AbortJobRequest", "MESSAGE_TYPE__AbortJobRequest", 3002 }, { "AbortJobResponse", "MESSAGE_TYPE__AbortJobResponse", 3003 }, + { "UploadProcessParametersRequest", "MESSAGE_TYPE__UploadProcessParametersRequest", 3004 }, + { "UploadProcessParametersResponse", "MESSAGE_TYPE__UploadProcessParametersResponse", 3005 }, + { "DebugLogRequest", "MESSAGE_TYPE__DebugLogRequest", 4000 }, + { "DebugLogResponse", "MESSAGE_TYPE__DebugLogResponse", 4001 }, + { "UploadHardwareConfigurationRequest", "MESSAGE_TYPE__UploadHardwareConfigurationRequest", 5000 }, + { "UploadHardwareConfigurationResponse", "MESSAGE_TYPE__UploadHardwareConfigurationResponse", 5001 }, }; static const ProtobufCIntRange message_type__value_ranges[] = { -{0, 0},{3, 1},{1000, 35},{2000, 44},{3000, 68},{0, 72} +{0, 0},{3, 1},{1000, 59},{2000, 68},{3000, 92},{4000, 98},{5000, 100},{0, 102} }; -static const ProtobufCEnumValueIndex message_type__enum_values_by_name[72] = +static const ProtobufCEnumValueIndex message_type__enum_values_by_name[102] = { - { "AbortJobRequest", 70 }, - { "AbortJobResponse", 71 }, + { "AbortJobRequest", 94 }, + { "AbortJobResponse", 95 }, { "CalculateRequest", 1 }, { "CalculateResponse", 2 }, - { "DirectSynchronizationRequest", 38 }, - { "DirectSynchronizationResponse", 39 }, - { "DispenserAbortHomingRequest", 54 }, - { "DispenserAbortHomingResponse", 55 }, - { "DispenserAbortJoggingRequest", 60 }, - { "DispenserAbortJoggingResponse", 61 }, - { "DispenserHomingRequest", 56 }, - { "DispenserHomingResponse", 57 }, - { "DispenserJoggingRequest", 58 }, - { "DispenserJoggingResponse", 59 }, - { "ExternalBridgeUdpDiscoveryPacket", 35 }, - { "ExternalClientLoginRequest", 36 }, - { "ExternalClientLoginResponse", 37 }, - { "JobRequest", 68 }, - { "JobResponse", 69 }, - { "KeepAliveRequest", 42 }, - { "KeepAliveResponse", 43 }, - { "MotorAbortHomingRequest", 46 }, - { "MotorAbortHomingResponse", 47 }, - { "MotorAbortJoggingRequest", 52 }, - { "MotorAbortJoggingResponse", 53 }, - { "MotorHomingRequest", 48 }, - { "MotorHomingResponse", 49 }, - { "MotorJoggingRequest", 50 }, - { "MotorJoggingResponse", 51 }, + { "DebugLogRequest", 98 }, + { "DebugLogResponse", 99 }, + { "DirectSynchronizationRequest", 62 }, + { "DirectSynchronizationResponse", 63 }, + { "DispenserAbortHomingRequest", 78 }, + { "DispenserAbortHomingResponse", 79 }, + { "DispenserAbortJoggingRequest", 84 }, + { "DispenserAbortJoggingResponse", 85 }, + { "DispenserHomingRequest", 80 }, + { "DispenserHomingResponse", 81 }, + { "DispenserJoggingRequest", 82 }, + { "DispenserJoggingResponse", 83 }, + { "ExternalBridgeUdpDiscoveryPacket", 59 }, + { "ExternalClientLoginRequest", 60 }, + { "ExternalClientLoginResponse", 61 }, + { "JobRequest", 92 }, + { "JobResponse", 93 }, + { "KeepAliveRequest", 66 }, + { "KeepAliveResponse", 67 }, + { "MotorAbortHomingRequest", 70 }, + { "MotorAbortHomingResponse", 71 }, + { "MotorAbortJoggingRequest", 76 }, + { "MotorAbortJoggingResponse", 77 }, + { "MotorHomingRequest", 72 }, + { "MotorHomingResponse", 73 }, + { "MotorJoggingRequest", 74 }, + { "MotorJoggingResponse", 75 }, { "None", 0 }, - { "OverrideDataBaseRequest", 40 }, - { "OverrideDataBaseResponse", 41 }, + { "OverrideDataBaseRequest", 64 }, + { "OverrideDataBaseResponse", 65 }, { "ProgressRequest", 3 }, { "ProgressResponse", 4 }, - { "PushDiagnosticsRequest", 44 }, - { "PushDiagnosticsResponse", 45 }, - { "SetDigitalOutRequest", 62 }, - { "SetDigitalOutResponse", 63 }, + { "PushDiagnosticsRequest", 68 }, + { "PushDiagnosticsResponse", 69 }, + { "SetDigitalOutRequest", 86 }, + { "SetDigitalOutResponse", 87 }, { "StubCartridgeReadRequest", 5 }, { "StubCartridgeReadResponse", 6 }, { "StubCartridgeWriteRequest", 7 }, @@ -135,6 +167,12 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[72] = { "StubExtFlashReadResponse", 32 }, { "StubExtFlashWriteRequest", 33 }, { "StubExtFlashWriteResponse", 34 }, + { "StubF3Gpo01WriteRequest", 57 }, + { "StubF3Gpo01WriteResponse", 58 }, + { "StubFPGAReadBackRegRequest", 35 }, + { "StubFPGAReadBackRegResponse", 36 }, + { "StubFPGAReadVersionRequest", 37 }, + { "StubFPGAReadVersionResponse", 38 }, { "StubGPIOInputSetupRequest", 11 }, { "StubGPIOInputSetupResponse", 12 }, { "StubGPIOReadBitRequest", 13 }, @@ -145,20 +183,42 @@ static const ProtobufCEnumValueIndex message_type__enum_values_by_name[72] = { "StubGPIOWriteBitResponse", 18 }, { "StubGPIOWriteByteRequest", 19 }, { "StubGPIOWriteByteResponse", 20 }, + { "StubHWVersionRequest", 55 }, + { "StubHWVersionResponse", 56 }, { "StubHeaterRequest", 21 }, { "StubHeaterResponse", 22 }, + { "StubL6470DriverRequest", 39 }, + { "StubL6470DriverResponse", 40 }, { "StubMotorEncoderRequest", 23 }, { "StubMotorEncoderResponse", 24 }, + { "StubMotorInitRequest", 41 }, + { "StubMotorInitResponse", 42 }, + { "StubMotorMovRequest", 49 }, + { "StubMotorMovResponse", 50 }, + { "StubMotorPositionRequest", 53 }, + { "StubMotorPositionResponse", 54 }, + { "StubMotorRunRequest", 43 }, + { "StubMotorRunResponse", 44 }, + { "StubMotorSpeedRequest", 51 }, + { "StubMotorSpeedResponse", 52 }, + { "StubMotorStatusRequest", 47 }, + { "StubMotorStatusResponse", 48 }, + { "StubMotorStopRequest", 45 }, + { "StubMotorStopResponse", 46 }, { "StubOptLimitSwitchRequest", 25 }, { "StubOptLimitSwitchResponse", 26 }, { "StubSteperMotorRequest", 27 }, { "StubSteperMotorResponse", 28 }, { "StubValveRequest", 29 }, { "StubValveResponse", 30 }, - { "ThreadAbortJoggingRequest", 66 }, - { "ThreadAbortJoggingResponse", 67 }, - { "ThreadJoggingRequest", 64 }, - { "ThreadJoggingResponse", 65 }, + { "ThreadAbortJoggingRequest", 90 }, + { "ThreadAbortJoggingResponse", 91 }, + { "ThreadJoggingRequest", 88 }, + { "ThreadJoggingResponse", 89 }, + { "UploadHardwareConfigurationRequest", 100 }, + { "UploadHardwareConfigurationResponse", 101 }, + { "UploadProcessParametersRequest", 96 }, + { "UploadProcessParametersResponse", 97 }, }; const ProtobufCEnumDescriptor message_type__descriptor = { @@ -167,11 +227,11 @@ const ProtobufCEnumDescriptor message_type__descriptor = "MessageType", "MessageType", "", - 72, + 102, message_type__enum_values_by_number, - 72, + 102, message_type__enum_values_by_name, - 5, + 7, message_type__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h index b465f2fe2..f5e6eb785 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Common/MessageType.pb-c.h @@ -55,6 +55,30 @@ typedef enum _MessageType { MESSAGE_TYPE__StubExtFlashReadResponse = 34, MESSAGE_TYPE__StubExtFlashWriteRequest = 35, MESSAGE_TYPE__StubExtFlashWriteResponse = 36, + MESSAGE_TYPE__StubFPGAReadBackRegRequest = 37, + MESSAGE_TYPE__StubFPGAReadBackRegResponse = 38, + MESSAGE_TYPE__StubFPGAReadVersionRequest = 39, + MESSAGE_TYPE__StubFPGAReadVersionResponse = 40, + MESSAGE_TYPE__StubL6470DriverRequest = 41, + MESSAGE_TYPE__StubL6470DriverResponse = 42, + MESSAGE_TYPE__StubMotorInitRequest = 43, + MESSAGE_TYPE__StubMotorInitResponse = 44, + MESSAGE_TYPE__StubMotorRunRequest = 45, + MESSAGE_TYPE__StubMotorRunResponse = 46, + MESSAGE_TYPE__StubMotorStopRequest = 47, + MESSAGE_TYPE__StubMotorStopResponse = 48, + MESSAGE_TYPE__StubMotorStatusRequest = 49, + MESSAGE_TYPE__StubMotorStatusResponse = 50, + MESSAGE_TYPE__StubMotorMovRequest = 51, + MESSAGE_TYPE__StubMotorMovResponse = 52, + MESSAGE_TYPE__StubMotorSpeedRequest = 53, + MESSAGE_TYPE__StubMotorSpeedResponse = 54, + MESSAGE_TYPE__StubMotorPositionRequest = 55, + MESSAGE_TYPE__StubMotorPositionResponse = 56, + MESSAGE_TYPE__StubHWVersionRequest = 57, + MESSAGE_TYPE__StubHWVersionResponse = 58, + MESSAGE_TYPE__StubF3Gpo01WriteRequest = 59, + MESSAGE_TYPE__StubF3Gpo01WriteResponse = 60, MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket = 1000, MESSAGE_TYPE__ExternalClientLoginRequest = 1001, MESSAGE_TYPE__ExternalClientLoginResponse = 1002, @@ -91,7 +115,13 @@ typedef enum _MessageType { MESSAGE_TYPE__JobRequest = 3000, MESSAGE_TYPE__JobResponse = 3001, MESSAGE_TYPE__AbortJobRequest = 3002, - MESSAGE_TYPE__AbortJobResponse = 3003 + MESSAGE_TYPE__AbortJobResponse = 3003, + MESSAGE_TYPE__UploadProcessParametersRequest = 3004, + MESSAGE_TYPE__UploadProcessParametersResponse = 3005, + MESSAGE_TYPE__DebugLogRequest = 4000, + MESSAGE_TYPE__DebugLogResponse = 4001, + MESSAGE_TYPE__UploadHardwareConfigurationRequest = 5000, + MESSAGE_TYPE__UploadHardwareConfigurationResponse = 5001 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(MESSAGE_TYPE) } MessageType; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogCategory.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogCategory.pb-c.c new file mode 100644 index 000000000..ebb901ba8 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogCategory.pb-c.c @@ -0,0 +1,43 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DebugLogCategory.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DebugLogCategory.pb-c.h" +static const ProtobufCEnumValue debug_log_category__enum_values_by_number[5] = +{ + { "Info", "DEBUG_LOG_CATEGORY__Info", 0 }, + { "Warning", "DEBUG_LOG_CATEGORY__Warning", 1 }, + { "Error", "DEBUG_LOG_CATEGORY__Error", 2 }, + { "Critical", "DEBUG_LOG_CATEGORY__Critical", 3 }, + { "Debug", "DEBUG_LOG_CATEGORY__Debug", 4 }, +}; +static const ProtobufCIntRange debug_log_category__value_ranges[] = { +{0, 0},{0, 5} +}; +static const ProtobufCEnumValueIndex debug_log_category__enum_values_by_name[5] = +{ + { "Critical", 3 }, + { "Debug", 4 }, + { "Error", 2 }, + { "Info", 0 }, + { "Warning", 1 }, +}; +const ProtobufCEnumDescriptor debug_log_category__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "DebugLogCategory", + "DebugLogCategory", + "DebugLogCategory", + "", + 5, + debug_log_category__enum_values_by_number, + 5, + debug_log_category__enum_values_by_name, + 1, + debug_log_category__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogCategory.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogCategory.pb-c.h new file mode 100644 index 000000000..d97b42d33 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogCategory.pb-c.h @@ -0,0 +1,46 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DebugLogCategory.proto */ + +#ifndef PROTOBUF_C_DebugLogCategory_2eproto__INCLUDED +#define PROTOBUF_C_DebugLogCategory_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _DebugLogCategory { + DEBUG_LOG_CATEGORY__Info = 0, + DEBUG_LOG_CATEGORY__Warning = 1, + DEBUG_LOG_CATEGORY__Error = 2, + DEBUG_LOG_CATEGORY__Critical = 3, + DEBUG_LOG_CATEGORY__Debug = 4 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DEBUG_LOG_CATEGORY) +} DebugLogCategory; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor debug_log_category__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DebugLogCategory_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogRequest.pb-c.c new file mode 100644 index 000000000..e8faeddcb --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DebugLogRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DebugLogRequest.pb-c.h" +void debug_log_request__init + (DebugLogRequest *message) +{ + static const DebugLogRequest init_value = DEBUG_LOG_REQUEST__INIT; + *message = init_value; +} +size_t debug_log_request__get_packed_size + (const DebugLogRequest *message) +{ + assert(message->base.descriptor == &debug_log_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t debug_log_request__pack + (const DebugLogRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &debug_log_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t debug_log_request__pack_to_buffer + (const DebugLogRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &debug_log_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DebugLogRequest * + debug_log_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DebugLogRequest *) + protobuf_c_message_unpack (&debug_log_request__descriptor, + allocator, len, data); +} +void debug_log_request__free_unpacked + (DebugLogRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &debug_log_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define debug_log_request__field_descriptors NULL +#define debug_log_request__field_indices_by_name NULL +#define debug_log_request__number_ranges NULL +const ProtobufCMessageDescriptor debug_log_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DebugLogRequest", + "DebugLogRequest", + "DebugLogRequest", + "", + sizeof(DebugLogRequest), + 0, + debug_log_request__field_descriptors, + debug_log_request__field_indices_by_name, + 0, debug_log_request__number_ranges, + (ProtobufCMessageInit) debug_log_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogRequest.pb-c.h new file mode 100644 index 000000000..2507b3068 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DebugLogRequest.proto */ + +#ifndef PROTOBUF_C_DebugLogRequest_2eproto__INCLUDED +#define PROTOBUF_C_DebugLogRequest_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 _DebugLogRequest DebugLogRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DebugLogRequest +{ + ProtobufCMessage base; +}; +#define DEBUG_LOG_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&debug_log_request__descriptor) \ + } + + +/* DebugLogRequest methods */ +void debug_log_request__init + (DebugLogRequest *message); +size_t debug_log_request__get_packed_size + (const DebugLogRequest *message); +size_t debug_log_request__pack + (const DebugLogRequest *message, + uint8_t *out); +size_t debug_log_request__pack_to_buffer + (const DebugLogRequest *message, + ProtobufCBuffer *buffer); +DebugLogRequest * + debug_log_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void debug_log_request__free_unpacked + (DebugLogRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DebugLogRequest_Closure) + (const DebugLogRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor debug_log_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DebugLogRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogResponse.pb-c.c new file mode 100644 index 000000000..36e08e981 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogResponse.pb-c.c @@ -0,0 +1,157 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DebugLogResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DebugLogResponse.pb-c.h" +void debug_log_response__init + (DebugLogResponse *message) +{ + static const DebugLogResponse init_value = DEBUG_LOG_RESPONSE__INIT; + *message = init_value; +} +size_t debug_log_response__get_packed_size + (const DebugLogResponse *message) +{ + assert(message->base.descriptor == &debug_log_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t debug_log_response__pack + (const DebugLogResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &debug_log_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t debug_log_response__pack_to_buffer + (const DebugLogResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &debug_log_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DebugLogResponse * + debug_log_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DebugLogResponse *) + protobuf_c_message_unpack (&debug_log_response__descriptor, + allocator, len, data); +} +void debug_log_response__free_unpacked + (DebugLogResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &debug_log_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor debug_log_response__field_descriptors[6] = +{ + { + "Category", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(DebugLogResponse, has_category), + offsetof(DebugLogResponse, category), + &debug_log_category__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "FileName", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(DebugLogResponse, filename), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "LineNumber", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(DebugLogResponse, has_linenumber), + offsetof(DebugLogResponse, linenumber), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Filter", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(DebugLogResponse, has_filter), + offsetof(DebugLogResponse, filter), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Message", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(DebugLogResponse, message), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ModuleId", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(DebugLogResponse, has_moduleid), + offsetof(DebugLogResponse, moduleid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned debug_log_response__field_indices_by_name[] = { + 0, /* field[0] = Category */ + 1, /* field[1] = FileName */ + 3, /* field[3] = Filter */ + 2, /* field[2] = LineNumber */ + 4, /* field[4] = Message */ + 5, /* field[5] = ModuleId */ +}; +static const ProtobufCIntRange debug_log_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor debug_log_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DebugLogResponse", + "DebugLogResponse", + "DebugLogResponse", + "", + sizeof(DebugLogResponse), + 6, + debug_log_response__field_descriptors, + debug_log_response__field_indices_by_name, + 1, debug_log_response__number_ranges, + (ProtobufCMessageInit) debug_log_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogResponse.pb-c.h new file mode 100644 index 000000000..414c07188 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Debugging/DebugLogResponse.pb-c.h @@ -0,0 +1,81 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DebugLogResponse.proto */ + +#ifndef PROTOBUF_C_DebugLogResponse_2eproto__INCLUDED +#define PROTOBUF_C_DebugLogResponse_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 "DebugLogCategory.pb-c.h" + +typedef struct _DebugLogResponse DebugLogResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DebugLogResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_category; + DebugLogCategory category; + char *filename; + protobuf_c_boolean has_linenumber; + uint32_t linenumber; + protobuf_c_boolean has_filter; + uint32_t filter; + char *message; + protobuf_c_boolean has_moduleid; + uint32_t moduleid; +}; +#define DEBUG_LOG_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&debug_log_response__descriptor) \ + , 0, DEBUG_LOG_CATEGORY__Info, NULL, 0, 0, 0, 0, NULL, 0, 0 } + + +/* DebugLogResponse methods */ +void debug_log_response__init + (DebugLogResponse *message); +size_t debug_log_response__get_packed_size + (const DebugLogResponse *message); +size_t debug_log_response__pack + (const DebugLogResponse *message, + uint8_t *out); +size_t debug_log_response__pack_to_buffer + (const DebugLogResponse *message, + ProtobufCBuffer *buffer); +DebugLogResponse * + debug_log_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void debug_log_response__free_unpacked + (DebugLogResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DebugLogResponse_Closure) + (const DebugLogResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor debug_log_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DebugLogResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeInput.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeInput.pb-c.c new file mode 100644 index 000000000..8cab316aa --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeInput.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AnalyzeInput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "AnalyzeInput.pb-c.h" +void analyze_input__init + (AnalyzeInput *message) +{ + static const AnalyzeInput init_value = ANALYZE_INPUT__INIT; + *message = init_value; +} +size_t analyze_input__get_packed_size + (const AnalyzeInput *message) +{ + assert(message->base.descriptor == &analyze_input__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t analyze_input__pack + (const AnalyzeInput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &analyze_input__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t analyze_input__pack_to_buffer + (const AnalyzeInput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &analyze_input__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +AnalyzeInput * + analyze_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (AnalyzeInput *) + protobuf_c_message_unpack (&analyze_input__descriptor, + allocator, len, data); +} +void analyze_input__free_unpacked + (AnalyzeInput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &analyze_input__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor analyze_input__field_descriptors[1] = +{ + { + "FilePath", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(AnalyzeInput, filepath), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned analyze_input__field_indices_by_name[] = { + 0, /* field[0] = FilePath */ +}; +static const ProtobufCIntRange analyze_input__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor analyze_input__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "AnalyzeInput", + "AnalyzeInput", + "AnalyzeInput", + "", + sizeof(AnalyzeInput), + 1, + analyze_input__field_descriptors, + analyze_input__field_indices_by_name, + 1, analyze_input__number_ranges, + (ProtobufCMessageInit) analyze_input__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeInput.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeInput.pb-c.h new file mode 100644 index 000000000..15d124132 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeInput.pb-c.h @@ -0,0 +1,71 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AnalyzeInput.proto */ + +#ifndef PROTOBUF_C_AnalyzeInput_2eproto__INCLUDED +#define PROTOBUF_C_AnalyzeInput_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 _AnalyzeInput AnalyzeInput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _AnalyzeInput +{ + ProtobufCMessage base; + char *filepath; +}; +#define ANALYZE_INPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&analyze_input__descriptor) \ + , NULL } + + +/* AnalyzeInput methods */ +void analyze_input__init + (AnalyzeInput *message); +size_t analyze_input__get_packed_size + (const AnalyzeInput *message); +size_t analyze_input__pack + (const AnalyzeInput *message, + uint8_t *out); +size_t analyze_input__pack_to_buffer + (const AnalyzeInput *message, + ProtobufCBuffer *buffer); +AnalyzeInput * + analyze_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void analyze_input__free_unpacked + (AnalyzeInput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*AnalyzeInput_Closure) + (const AnalyzeInput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor analyze_input__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_AnalyzeInput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeOutput.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeOutput.pb-c.c new file mode 100644 index 000000000..9739abc10 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeOutput.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AnalyzeOutput.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "AnalyzeOutput.pb-c.h" +void analyze_output__init + (AnalyzeOutput *message) +{ + static const AnalyzeOutput init_value = ANALYZE_OUTPUT__INIT; + *message = init_value; +} +size_t analyze_output__get_packed_size + (const AnalyzeOutput *message) +{ + assert(message->base.descriptor == &analyze_output__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t analyze_output__pack + (const AnalyzeOutput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &analyze_output__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t analyze_output__pack_to_buffer + (const AnalyzeOutput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &analyze_output__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +AnalyzeOutput * + analyze_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (AnalyzeOutput *) + protobuf_c_message_unpack (&analyze_output__descriptor, + allocator, len, data); +} +void analyze_output__free_unpacked + (AnalyzeOutput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &analyze_output__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor analyze_output__field_descriptors[1] = +{ + { + "EmbroideryFile", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(AnalyzeOutput, embroideryfile), + &embroidery_file__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned analyze_output__field_indices_by_name[] = { + 0, /* field[0] = EmbroideryFile */ +}; +static const ProtobufCIntRange analyze_output__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor analyze_output__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "AnalyzeOutput", + "AnalyzeOutput", + "AnalyzeOutput", + "", + sizeof(AnalyzeOutput), + 1, + analyze_output__field_descriptors, + analyze_output__field_indices_by_name, + 1, analyze_output__number_ranges, + (ProtobufCMessageInit) analyze_output__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeOutput.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeOutput.pb-c.h new file mode 100644 index 000000000..6e0812aa2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/AnalyzeOutput.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: AnalyzeOutput.proto */ + +#ifndef PROTOBUF_C_AnalyzeOutput_2eproto__INCLUDED +#define PROTOBUF_C_AnalyzeOutput_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 "EmbroideryFile.pb-c.h" + +typedef struct _AnalyzeOutput AnalyzeOutput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _AnalyzeOutput +{ + ProtobufCMessage base; + EmbroideryFile *embroideryfile; +}; +#define ANALYZE_OUTPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&analyze_output__descriptor) \ + , NULL } + + +/* AnalyzeOutput methods */ +void analyze_output__init + (AnalyzeOutput *message); +size_t analyze_output__get_packed_size + (const AnalyzeOutput *message); +size_t analyze_output__pack + (const AnalyzeOutput *message, + uint8_t *out); +size_t analyze_output__pack_to_buffer + (const AnalyzeOutput *message, + ProtobufCBuffer *buffer); +AnalyzeOutput * + analyze_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void analyze_output__free_unpacked + (AnalyzeOutput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*AnalyzeOutput_Closure) + (const AnalyzeOutput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor analyze_output__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_AnalyzeOutput_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/EmbroideryFile.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/EmbroideryFile.pb-c.c new file mode 100644 index 000000000..3d07907e9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/EmbroideryFile.pb-c.c @@ -0,0 +1,170 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: EmbroideryFile.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "EmbroideryFile.pb-c.h" +void embroidery_file__init + (EmbroideryFile *message) +{ + static const EmbroideryFile init_value = EMBROIDERY_FILE__INIT; + *message = init_value; +} +size_t embroidery_file__get_packed_size + (const EmbroideryFile *message) +{ + assert(message->base.descriptor == &embroidery_file__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t embroidery_file__pack + (const EmbroideryFile *message, + uint8_t *out) +{ + assert(message->base.descriptor == &embroidery_file__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t embroidery_file__pack_to_buffer + (const EmbroideryFile *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &embroidery_file__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +EmbroideryFile * + embroidery_file__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (EmbroideryFile *) + protobuf_c_message_unpack (&embroidery_file__descriptor, + allocator, len, data); +} +void embroidery_file__free_unpacked + (EmbroideryFile *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &embroidery_file__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor embroidery_file__field_descriptors[7] = +{ + { + "DesignName", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(EmbroideryFile, designname), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "FileName", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(EmbroideryFile, filename), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StitchCount", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(EmbroideryFile, has_stitchcount), + offsetof(EmbroideryFile, stitchcount), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ColorCount", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(EmbroideryFile, has_colorcount), + offsetof(EmbroideryFile, colorcount), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Extents", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(EmbroideryFile, extents), + &extents__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Colors", + 6, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(EmbroideryFile, n_colors), + offsetof(EmbroideryFile, colors), + &stitch_color__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Stitches", + 7, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(EmbroideryFile, n_stitches), + offsetof(EmbroideryFile, stitches), + &stitch__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned embroidery_file__field_indices_by_name[] = { + 3, /* field[3] = ColorCount */ + 5, /* field[5] = Colors */ + 0, /* field[0] = DesignName */ + 4, /* field[4] = Extents */ + 1, /* field[1] = FileName */ + 2, /* field[2] = StitchCount */ + 6, /* field[6] = Stitches */ +}; +static const ProtobufCIntRange embroidery_file__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor embroidery_file__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "EmbroideryFile", + "EmbroideryFile", + "EmbroideryFile", + "", + sizeof(EmbroideryFile), + 7, + embroidery_file__field_descriptors, + embroidery_file__field_indices_by_name, + 1, embroidery_file__number_ranges, + (ProtobufCMessageInit) embroidery_file__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/EmbroideryFile.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/EmbroideryFile.pb-c.h new file mode 100644 index 000000000..2ffee6518 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/EmbroideryFile.pb-c.h @@ -0,0 +1,84 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: EmbroideryFile.proto */ + +#ifndef PROTOBUF_C_EmbroideryFile_2eproto__INCLUDED +#define PROTOBUF_C_EmbroideryFile_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 "Extents.pb-c.h" +#include "Stitch.pb-c.h" +#include "StitchColor.pb-c.h" + +typedef struct _EmbroideryFile EmbroideryFile; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _EmbroideryFile +{ + ProtobufCMessage base; + char *designname; + char *filename; + protobuf_c_boolean has_stitchcount; + int32_t stitchcount; + protobuf_c_boolean has_colorcount; + int32_t colorcount; + Extents *extents; + size_t n_colors; + StitchColor **colors; + size_t n_stitches; + Stitch **stitches; +}; +#define EMBROIDERY_FILE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&embroidery_file__descriptor) \ + , NULL, NULL, 0, 0, 0, 0, NULL, 0,NULL, 0,NULL } + + +/* EmbroideryFile methods */ +void embroidery_file__init + (EmbroideryFile *message); +size_t embroidery_file__get_packed_size + (const EmbroideryFile *message); +size_t embroidery_file__pack + (const EmbroideryFile *message, + uint8_t *out); +size_t embroidery_file__pack_to_buffer + (const EmbroideryFile *message, + ProtobufCBuffer *buffer); +EmbroideryFile * + embroidery_file__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void embroidery_file__free_unpacked + (EmbroideryFile *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*EmbroideryFile_Closure) + (const EmbroideryFile *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor embroidery_file__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_EmbroideryFile_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Extents.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Extents.pb-c.c new file mode 100644 index 000000000..69cba25cf --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Extents.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Extents.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "Extents.pb-c.h" +void extents__init + (Extents *message) +{ + static const Extents init_value = EXTENTS__INIT; + *message = init_value; +} +size_t extents__get_packed_size + (const Extents *message) +{ + assert(message->base.descriptor == &extents__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t extents__pack + (const Extents *message, + uint8_t *out) +{ + assert(message->base.descriptor == &extents__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t extents__pack_to_buffer + (const Extents *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &extents__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Extents * + extents__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Extents *) + protobuf_c_message_unpack (&extents__descriptor, + allocator, len, data); +} +void extents__free_unpacked + (Extents *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &extents__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor extents__field_descriptors[4] = +{ + { + "X1", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Extents, has_x1), + offsetof(Extents, x1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Y1", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Extents, has_y1), + offsetof(Extents, y1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "X2", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Extents, has_x2), + offsetof(Extents, x2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Y2", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Extents, has_y2), + offsetof(Extents, y2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned extents__field_indices_by_name[] = { + 0, /* field[0] = X1 */ + 2, /* field[2] = X2 */ + 1, /* field[1] = Y1 */ + 3, /* field[3] = Y2 */ +}; +static const ProtobufCIntRange extents__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor extents__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Extents", + "Extents", + "Extents", + "", + sizeof(Extents), + 4, + extents__field_descriptors, + extents__field_indices_by_name, + 1, extents__number_ranges, + (ProtobufCMessageInit) extents__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Extents.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Extents.pb-c.h new file mode 100644 index 000000000..a7d867bab --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Extents.pb-c.h @@ -0,0 +1,78 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Extents.proto */ + +#ifndef PROTOBUF_C_Extents_2eproto__INCLUDED +#define PROTOBUF_C_Extents_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 _Extents Extents; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Extents +{ + ProtobufCMessage base; + protobuf_c_boolean has_x1; + int32_t x1; + protobuf_c_boolean has_y1; + int32_t y1; + protobuf_c_boolean has_x2; + int32_t x2; + protobuf_c_boolean has_y2; + int32_t y2; +}; +#define EXTENTS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&extents__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* Extents methods */ +void extents__init + (Extents *message); +size_t extents__get_packed_size + (const Extents *message); +size_t extents__pack + (const Extents *message, + uint8_t *out); +size_t extents__pack_to_buffer + (const Extents *message, + ProtobufCBuffer *buffer); +Extents * + extents__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void extents__free_unpacked + (Extents *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Extents_Closure) + (const Extents *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor extents__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_Extents_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Stitch.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Stitch.pb-c.c new file mode 100644 index 000000000..3d0e895bf --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Stitch.pb-c.c @@ -0,0 +1,196 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Stitch.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "Stitch.pb-c.h" +void stitch__init + (Stitch *message) +{ + static const Stitch init_value = STITCH__INIT; + *message = init_value; +} +size_t stitch__get_packed_size + (const Stitch *message) +{ + assert(message->base.descriptor == &stitch__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stitch__pack + (const Stitch *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stitch__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stitch__pack_to_buffer + (const Stitch *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stitch__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Stitch * + stitch__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Stitch *) + protobuf_c_message_unpack (&stitch__descriptor, + allocator, len, data); +} +void stitch__free_unpacked + (Stitch *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stitch__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stitch__field_descriptors[9] = +{ + { + "Flag", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(Stitch, has_flag), + offsetof(Stitch, flag), + &stitch_flag__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "XX", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Stitch, has_xx), + offsetof(Stitch, xx), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "YY", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Stitch, has_yy), + offsetof(Stitch, yy), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DX", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Stitch, has_dx), + offsetof(Stitch, dx), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DY", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Stitch, has_dy), + offsetof(Stitch, dy), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Length", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Stitch, has_length), + offsetof(Stitch, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Angle", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Stitch, has_angle), + offsetof(Stitch, angle), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DAngle", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Stitch, has_dangle), + offsetof(Stitch, dangle), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ColorIndex", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Stitch, has_colorindex), + offsetof(Stitch, colorindex), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stitch__field_indices_by_name[] = { + 6, /* field[6] = Angle */ + 8, /* field[8] = ColorIndex */ + 7, /* field[7] = DAngle */ + 3, /* field[3] = DX */ + 4, /* field[4] = DY */ + 0, /* field[0] = Flag */ + 5, /* field[5] = Length */ + 1, /* field[1] = XX */ + 2, /* field[2] = YY */ +}; +static const ProtobufCIntRange stitch__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 9 } +}; +const ProtobufCMessageDescriptor stitch__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Stitch", + "Stitch", + "Stitch", + "", + sizeof(Stitch), + 9, + stitch__field_descriptors, + stitch__field_indices_by_name, + 1, stitch__number_ranges, + (ProtobufCMessageInit) stitch__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Stitch.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Stitch.pb-c.h new file mode 100644 index 000000000..157dbce02 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/Stitch.pb-c.h @@ -0,0 +1,89 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Stitch.proto */ + +#ifndef PROTOBUF_C_Stitch_2eproto__INCLUDED +#define PROTOBUF_C_Stitch_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 "StitchFlag.pb-c.h" + +typedef struct _Stitch Stitch; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Stitch +{ + ProtobufCMessage base; + protobuf_c_boolean has_flag; + StitchFlag flag; + protobuf_c_boolean has_xx; + double xx; + protobuf_c_boolean has_yy; + double yy; + protobuf_c_boolean has_dx; + double dx; + protobuf_c_boolean has_dy; + double dy; + protobuf_c_boolean has_length; + double length; + protobuf_c_boolean has_angle; + double angle; + protobuf_c_boolean has_dangle; + double dangle; + protobuf_c_boolean has_colorindex; + int32_t colorindex; +}; +#define STITCH__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stitch__descriptor) \ + , 0, STITCH_FLAG__NORMAL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* Stitch methods */ +void stitch__init + (Stitch *message); +size_t stitch__get_packed_size + (const Stitch *message); +size_t stitch__pack + (const Stitch *message, + uint8_t *out); +size_t stitch__pack_to_buffer + (const Stitch *message, + ProtobufCBuffer *buffer); +Stitch * + stitch__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stitch__free_unpacked + (Stitch *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Stitch_Closure) + (const Stitch *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stitch__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_Stitch_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchColor.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchColor.pb-c.c new file mode 100644 index 000000000..a33e76d5a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchColor.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StitchColor.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StitchColor.pb-c.h" +void stitch_color__init + (StitchColor *message) +{ + static const StitchColor init_value = STITCH_COLOR__INIT; + *message = init_value; +} +size_t stitch_color__get_packed_size + (const StitchColor *message) +{ + assert(message->base.descriptor == &stitch_color__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stitch_color__pack + (const StitchColor *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stitch_color__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stitch_color__pack_to_buffer + (const StitchColor *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stitch_color__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StitchColor * + stitch_color__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StitchColor *) + protobuf_c_message_unpack (&stitch_color__descriptor, + allocator, len, data); +} +void stitch_color__free_unpacked + (StitchColor *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stitch_color__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stitch_color__field_descriptors[3] = +{ + { + "Red", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StitchColor, has_red), + offsetof(StitchColor, red), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Green", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StitchColor, has_green), + offsetof(StitchColor, green), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Blue", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StitchColor, has_blue), + offsetof(StitchColor, blue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stitch_color__field_indices_by_name[] = { + 2, /* field[2] = Blue */ + 1, /* field[1] = Green */ + 0, /* field[0] = Red */ +}; +static const ProtobufCIntRange stitch_color__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor stitch_color__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StitchColor", + "StitchColor", + "StitchColor", + "", + sizeof(StitchColor), + 3, + stitch_color__field_descriptors, + stitch_color__field_indices_by_name, + 1, stitch_color__number_ranges, + (ProtobufCMessageInit) stitch_color__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchColor.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchColor.pb-c.h new file mode 100644 index 000000000..38ad23dca --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchColor.pb-c.h @@ -0,0 +1,76 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StitchColor.proto */ + +#ifndef PROTOBUF_C_StitchColor_2eproto__INCLUDED +#define PROTOBUF_C_StitchColor_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 _StitchColor StitchColor; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StitchColor +{ + ProtobufCMessage base; + protobuf_c_boolean has_red; + int32_t red; + protobuf_c_boolean has_green; + int32_t green; + protobuf_c_boolean has_blue; + int32_t blue; +}; +#define STITCH_COLOR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stitch_color__descriptor) \ + , 0, 0, 0, 0, 0, 0 } + + +/* StitchColor methods */ +void stitch_color__init + (StitchColor *message); +size_t stitch_color__get_packed_size + (const StitchColor *message); +size_t stitch_color__pack + (const StitchColor *message, + uint8_t *out); +size_t stitch_color__pack_to_buffer + (const StitchColor *message, + ProtobufCBuffer *buffer); +StitchColor * + stitch_color__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stitch_color__free_unpacked + (StitchColor *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StitchColor_Closure) + (const StitchColor *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stitch_color__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StitchColor_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchFlag.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchFlag.pb-c.c new file mode 100644 index 000000000..1936a5436 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchFlag.pb-c.c @@ -0,0 +1,45 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StitchFlag.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StitchFlag.pb-c.h" +static const ProtobufCEnumValue stitch_flag__enum_values_by_number[6] = +{ + { "NORMAL", "STITCH_FLAG__NORMAL", 0 }, + { "JUMP", "STITCH_FLAG__JUMP", 1 }, + { "TRIM", "STITCH_FLAG__TRIM", 2 }, + { "STOP", "STITCH_FLAG__STOP", 4 }, + { "SEQUIN", "STITCH_FLAG__SEQUIN", 8 }, + { "END", "STITCH_FLAG__END", 16 }, +}; +static const ProtobufCIntRange stitch_flag__value_ranges[] = { +{0, 0},{4, 3},{8, 4},{16, 5},{0, 6} +}; +static const ProtobufCEnumValueIndex stitch_flag__enum_values_by_name[6] = +{ + { "END", 5 }, + { "JUMP", 1 }, + { "NORMAL", 0 }, + { "SEQUIN", 4 }, + { "STOP", 3 }, + { "TRIM", 2 }, +}; +const ProtobufCEnumDescriptor stitch_flag__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "StitchFlag", + "StitchFlag", + "StitchFlag", + "", + 6, + stitch_flag__enum_values_by_number, + 6, + stitch_flag__enum_values_by_name, + 4, + stitch_flag__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchFlag.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchFlag.pb-c.h new file mode 100644 index 000000000..81c090e35 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Embroidery/StitchFlag.pb-c.h @@ -0,0 +1,47 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StitchFlag.proto */ + +#ifndef PROTOBUF_C_StitchFlag_2eproto__INCLUDED +#define PROTOBUF_C_StitchFlag_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _StitchFlag { + STITCH_FLAG__NORMAL = 0, + STITCH_FLAG__JUMP = 1, + STITCH_FLAG__TRIM = 2, + STITCH_FLAG__STOP = 4, + STITCH_FLAG__SEQUIN = 8, + STITCH_FLAG__END = 16 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STITCH_FLAG) +} StitchFlag; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor stitch_flag__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StitchFlag_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareConfiguration.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareConfiguration.pb-c.c new file mode 100644 index 000000000..6ba4d7fc9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareConfiguration.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareConfiguration.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareConfiguration.pb-c.h" +void hardware_configuration__init + (HardwareConfiguration *message) +{ + static const HardwareConfiguration init_value = HARDWARE_CONFIGURATION__INIT; + *message = init_value; +} +size_t hardware_configuration__get_packed_size + (const HardwareConfiguration *message) +{ + assert(message->base.descriptor == &hardware_configuration__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t hardware_configuration__pack + (const HardwareConfiguration *message, + uint8_t *out) +{ + assert(message->base.descriptor == &hardware_configuration__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t hardware_configuration__pack_to_buffer + (const HardwareConfiguration *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &hardware_configuration__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +HardwareConfiguration * + hardware_configuration__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (HardwareConfiguration *) + protobuf_c_message_unpack (&hardware_configuration__descriptor, + allocator, len, data); +} +void hardware_configuration__free_unpacked + (HardwareConfiguration *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &hardware_configuration__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor hardware_configuration__field_descriptors[5] = +{ + { + "Dancers", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(HardwareConfiguration, n_dancers), + offsetof(HardwareConfiguration, dancers), + &hardware_dancer__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Dispensers", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(HardwareConfiguration, n_dispensers), + offsetof(HardwareConfiguration, dispensers), + &hardware_dispenser__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Motors", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(HardwareConfiguration, n_motors), + offsetof(HardwareConfiguration, motors), + &hardware_motor__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PidControls", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(HardwareConfiguration, n_pidcontrols), + offsetof(HardwareConfiguration, pidcontrols), + &hardware_pid_control__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Winders", + 5, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(HardwareConfiguration, n_winders), + offsetof(HardwareConfiguration, winders), + &hardware_winder__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned hardware_configuration__field_indices_by_name[] = { + 0, /* field[0] = Dancers */ + 1, /* field[1] = Dispensers */ + 2, /* field[2] = Motors */ + 3, /* field[3] = PidControls */ + 4, /* field[4] = Winders */ +}; +static const ProtobufCIntRange hardware_configuration__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor hardware_configuration__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "HardwareConfiguration", + "HardwareConfiguration", + "HardwareConfiguration", + "", + sizeof(HardwareConfiguration), + 5, + hardware_configuration__field_descriptors, + hardware_configuration__field_indices_by_name, + 1, hardware_configuration__number_ranges, + (ProtobufCMessageInit) hardware_configuration__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareConfiguration.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareConfiguration.pb-c.h new file mode 100644 index 000000000..d9818c891 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareConfiguration.pb-c.h @@ -0,0 +1,85 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareConfiguration.proto */ + +#ifndef PROTOBUF_C_HardwareConfiguration_2eproto__INCLUDED +#define PROTOBUF_C_HardwareConfiguration_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 "HardwareDancer.pb-c.h" +#include "HardwareDispenser.pb-c.h" +#include "HardwareMotor.pb-c.h" +#include "HardwarePidControl.pb-c.h" +#include "HardwareWinder.pb-c.h" + +typedef struct _HardwareConfiguration HardwareConfiguration; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _HardwareConfiguration +{ + ProtobufCMessage base; + size_t n_dancers; + HardwareDancer **dancers; + size_t n_dispensers; + HardwareDispenser **dispensers; + size_t n_motors; + HardwareMotor **motors; + size_t n_pidcontrols; + HardwarePidControl **pidcontrols; + size_t n_winders; + HardwareWinder **winders; +}; +#define HARDWARE_CONFIGURATION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&hardware_configuration__descriptor) \ + , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } + + +/* HardwareConfiguration methods */ +void hardware_configuration__init + (HardwareConfiguration *message); +size_t hardware_configuration__get_packed_size + (const HardwareConfiguration *message); +size_t hardware_configuration__pack + (const HardwareConfiguration *message, + uint8_t *out); +size_t hardware_configuration__pack_to_buffer + (const HardwareConfiguration *message, + ProtobufCBuffer *buffer); +HardwareConfiguration * + hardware_configuration__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void hardware_configuration__free_unpacked + (HardwareConfiguration *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*HardwareConfiguration_Closure) + (const HardwareConfiguration *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor hardware_configuration__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareConfiguration_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancer.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancer.pb-c.c new file mode 100644 index 000000000..b838e1382 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancer.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDancer.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareDancer.pb-c.h" +void hardware_dancer__init + (HardwareDancer *message) +{ + static const HardwareDancer init_value = HARDWARE_DANCER__INIT; + *message = init_value; +} +size_t hardware_dancer__get_packed_size + (const HardwareDancer *message) +{ + assert(message->base.descriptor == &hardware_dancer__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t hardware_dancer__pack + (const HardwareDancer *message, + uint8_t *out) +{ + assert(message->base.descriptor == &hardware_dancer__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t hardware_dancer__pack_to_buffer + (const HardwareDancer *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &hardware_dancer__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +HardwareDancer * + hardware_dancer__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (HardwareDancer *) + protobuf_c_message_unpack (&hardware_dancer__descriptor, + allocator, len, data); +} +void hardware_dancer__free_unpacked + (HardwareDancer *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &hardware_dancer__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor hardware_dancer__field_descriptors[5] = +{ + { + "HardwareDancerType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(HardwareDancer, has_hardwaredancertype), + offsetof(HardwareDancer, hardwaredancertype), + &hardware_dancer_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Gradual", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(HardwareDancer, has_gradual), + offsetof(HardwareDancer, gradual), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "K", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDancer, has_k), + offsetof(HardwareDancer, k), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "X", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDancer, has_x), + offsetof(HardwareDancer, x), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PulsePerMmSpring", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareDancer, has_pulsepermmspring), + offsetof(HardwareDancer, pulsepermmspring), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned hardware_dancer__field_indices_by_name[] = { + 1, /* field[1] = Gradual */ + 0, /* field[0] = HardwareDancerType */ + 2, /* field[2] = K */ + 4, /* field[4] = PulsePerMmSpring */ + 3, /* field[3] = X */ +}; +static const ProtobufCIntRange hardware_dancer__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor hardware_dancer__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "HardwareDancer", + "HardwareDancer", + "HardwareDancer", + "", + sizeof(HardwareDancer), + 5, + hardware_dancer__field_descriptors, + hardware_dancer__field_indices_by_name, + 1, hardware_dancer__number_ranges, + (ProtobufCMessageInit) hardware_dancer__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancer.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancer.pb-c.h new file mode 100644 index 000000000..8e6e74cde --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancer.pb-c.h @@ -0,0 +1,81 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDancer.proto */ + +#ifndef PROTOBUF_C_HardwareDancer_2eproto__INCLUDED +#define PROTOBUF_C_HardwareDancer_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 "HardwareDancerType.pb-c.h" + +typedef struct _HardwareDancer HardwareDancer; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _HardwareDancer +{ + ProtobufCMessage base; + protobuf_c_boolean has_hardwaredancertype; + HardwareDancerType hardwaredancertype; + protobuf_c_boolean has_gradual; + protobuf_c_boolean gradual; + protobuf_c_boolean has_k; + double k; + protobuf_c_boolean has_x; + double x; + protobuf_c_boolean has_pulsepermmspring; + int32_t pulsepermmspring; +}; +#define HARDWARE_DANCER__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&hardware_dancer__descriptor) \ + , 0, HARDWARE_DANCER_TYPE__LeftDancer, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* HardwareDancer methods */ +void hardware_dancer__init + (HardwareDancer *message); +size_t hardware_dancer__get_packed_size + (const HardwareDancer *message); +size_t hardware_dancer__pack + (const HardwareDancer *message, + uint8_t *out); +size_t hardware_dancer__pack_to_buffer + (const HardwareDancer *message, + ProtobufCBuffer *buffer); +HardwareDancer * + hardware_dancer__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void hardware_dancer__free_unpacked + (HardwareDancer *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*HardwareDancer_Closure) + (const HardwareDancer *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor hardware_dancer__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareDancer_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancerType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancerType.pb-c.c new file mode 100644 index 000000000..d1ad051e9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancerType.pb-c.c @@ -0,0 +1,39 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDancerType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareDancerType.pb-c.h" +static const ProtobufCEnumValue hardware_dancer_type__enum_values_by_number[3] = +{ + { "LeftDancer", "HARDWARE_DANCER_TYPE__LeftDancer", 0 }, + { "MiddleDancer", "HARDWARE_DANCER_TYPE__MiddleDancer", 1 }, + { "RightDancer", "HARDWARE_DANCER_TYPE__RightDancer", 2 }, +}; +static const ProtobufCIntRange hardware_dancer_type__value_ranges[] = { +{0, 0},{0, 3} +}; +static const ProtobufCEnumValueIndex hardware_dancer_type__enum_values_by_name[3] = +{ + { "LeftDancer", 0 }, + { "MiddleDancer", 1 }, + { "RightDancer", 2 }, +}; +const ProtobufCEnumDescriptor hardware_dancer_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "HardwareDancerType", + "HardwareDancerType", + "HardwareDancerType", + "", + 3, + hardware_dancer_type__enum_values_by_number, + 3, + hardware_dancer_type__enum_values_by_name, + 1, + hardware_dancer_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancerType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancerType.pb-c.h new file mode 100644 index 000000000..fed2b0108 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDancerType.pb-c.h @@ -0,0 +1,44 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDancerType.proto */ + +#ifndef PROTOBUF_C_HardwareDancerType_2eproto__INCLUDED +#define PROTOBUF_C_HardwareDancerType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _HardwareDancerType { + HARDWARE_DANCER_TYPE__LeftDancer = 0, + HARDWARE_DANCER_TYPE__MiddleDancer = 1, + HARDWARE_DANCER_TYPE__RightDancer = 2 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(HARDWARE_DANCER_TYPE) +} HardwareDancerType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor hardware_dancer_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareDancerType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenser.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenser.pb-c.c new file mode 100644 index 000000000..1691150ab --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenser.pb-c.c @@ -0,0 +1,274 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDispenser.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareDispenser.pb-c.h" +void hardware_dispenser__init + (HardwareDispenser *message) +{ + static const HardwareDispenser init_value = HARDWARE_DISPENSER__INIT; + *message = init_value; +} +size_t hardware_dispenser__get_packed_size + (const HardwareDispenser *message) +{ + assert(message->base.descriptor == &hardware_dispenser__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t hardware_dispenser__pack + (const HardwareDispenser *message, + uint8_t *out) +{ + assert(message->base.descriptor == &hardware_dispenser__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t hardware_dispenser__pack_to_buffer + (const HardwareDispenser *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &hardware_dispenser__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +HardwareDispenser * + hardware_dispenser__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (HardwareDispenser *) + protobuf_c_message_unpack (&hardware_dispenser__descriptor, + allocator, len, data); +} +void hardware_dispenser__free_unpacked + (HardwareDispenser *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &hardware_dispenser__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor hardware_dispenser__field_descriptors[15] = +{ + { + "HardwareDispenserType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(HardwareDispenser, has_hardwaredispensertype), + offsetof(HardwareDispenser, hardwaredispensertype), + &hardware_dispenser_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "NlPerPulse", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_nlperpulse), + offsetof(HardwareDispenser, nlperpulse), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Capacity", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_capacity), + offsetof(HardwareDispenser, capacity), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MinFrequency", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareDispenser, has_minfrequency), + offsetof(HardwareDispenser, minfrequency), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxFrequency", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareDispenser, has_maxfrequency), + offsetof(HardwareDispenser, maxfrequency), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MinMicroStep", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareDispenser, has_minmicrostep), + offsetof(HardwareDispenser, minmicrostep), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxMicroStep", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareDispenser, has_maxmicrostep), + offsetof(HardwareDispenser, maxmicrostep), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "CorrectionGain", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_correctiongain), + offsetof(HardwareDispenser, correctiongain), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "RatioToDryerSpeed", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_ratiotodryerspeed), + offsetof(HardwareDispenser, ratiotodryerspeed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Kp", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_kp), + offsetof(HardwareDispenser, kp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Ki", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_ki), + offsetof(HardwareDispenser, ki), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Kd", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_kd), + offsetof(HardwareDispenser, kd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ChangeSlope", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_changeslope), + offsetof(HardwareDispenser, changeslope), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HighLengthMicroSecond", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareDispenser, has_highlengthmicrosecond), + offsetof(HardwareDispenser, highlengthmicrosecond), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ControlTiming", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareDispenser, has_controltiming), + offsetof(HardwareDispenser, controltiming), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned hardware_dispenser__field_indices_by_name[] = { + 2, /* field[2] = Capacity */ + 12, /* field[12] = ChangeSlope */ + 14, /* field[14] = ControlTiming */ + 7, /* field[7] = CorrectionGain */ + 0, /* field[0] = HardwareDispenserType */ + 13, /* field[13] = HighLengthMicroSecond */ + 11, /* field[11] = Kd */ + 10, /* field[10] = Ki */ + 9, /* field[9] = Kp */ + 4, /* field[4] = MaxFrequency */ + 6, /* field[6] = MaxMicroStep */ + 3, /* field[3] = MinFrequency */ + 5, /* field[5] = MinMicroStep */ + 1, /* field[1] = NlPerPulse */ + 8, /* field[8] = RatioToDryerSpeed */ +}; +static const ProtobufCIntRange hardware_dispenser__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 15 } +}; +const ProtobufCMessageDescriptor hardware_dispenser__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "HardwareDispenser", + "HardwareDispenser", + "HardwareDispenser", + "", + sizeof(HardwareDispenser), + 15, + hardware_dispenser__field_descriptors, + hardware_dispenser__field_indices_by_name, + 1, hardware_dispenser__number_ranges, + (ProtobufCMessageInit) hardware_dispenser__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenser.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenser.pb-c.h new file mode 100644 index 000000000..bde6bad40 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenser.pb-c.h @@ -0,0 +1,101 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDispenser.proto */ + +#ifndef PROTOBUF_C_HardwareDispenser_2eproto__INCLUDED +#define PROTOBUF_C_HardwareDispenser_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 "HardwareDispenserType.pb-c.h" + +typedef struct _HardwareDispenser HardwareDispenser; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _HardwareDispenser +{ + ProtobufCMessage base; + protobuf_c_boolean has_hardwaredispensertype; + HardwareDispenserType hardwaredispensertype; + protobuf_c_boolean has_nlperpulse; + double nlperpulse; + protobuf_c_boolean has_capacity; + double capacity; + protobuf_c_boolean has_minfrequency; + int32_t minfrequency; + protobuf_c_boolean has_maxfrequency; + int32_t maxfrequency; + protobuf_c_boolean has_minmicrostep; + int32_t minmicrostep; + protobuf_c_boolean has_maxmicrostep; + int32_t maxmicrostep; + protobuf_c_boolean has_correctiongain; + double correctiongain; + protobuf_c_boolean has_ratiotodryerspeed; + double ratiotodryerspeed; + protobuf_c_boolean has_kp; + double kp; + protobuf_c_boolean has_ki; + double ki; + protobuf_c_boolean has_kd; + double kd; + protobuf_c_boolean has_changeslope; + double changeslope; + protobuf_c_boolean has_highlengthmicrosecond; + double highlengthmicrosecond; + protobuf_c_boolean has_controltiming; + int32_t controltiming; +}; +#define HARDWARE_DISPENSER__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&hardware_dispenser__descriptor) \ + , 0, HARDWARE_DISPENSER_TYPE__StandardDispenser, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* HardwareDispenser methods */ +void hardware_dispenser__init + (HardwareDispenser *message); +size_t hardware_dispenser__get_packed_size + (const HardwareDispenser *message); +size_t hardware_dispenser__pack + (const HardwareDispenser *message, + uint8_t *out); +size_t hardware_dispenser__pack_to_buffer + (const HardwareDispenser *message, + ProtobufCBuffer *buffer); +HardwareDispenser * + hardware_dispenser__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void hardware_dispenser__free_unpacked + (HardwareDispenser *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*HardwareDispenser_Closure) + (const HardwareDispenser *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor hardware_dispenser__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareDispenser_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenserType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenserType.pb-c.c new file mode 100644 index 000000000..723d41bc3 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenserType.pb-c.c @@ -0,0 +1,35 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDispenserType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareDispenserType.pb-c.h" +static const ProtobufCEnumValue hardware_dispenser_type__enum_values_by_number[1] = +{ + { "StandardDispenser", "HARDWARE_DISPENSER_TYPE__StandardDispenser", 0 }, +}; +static const ProtobufCIntRange hardware_dispenser_type__value_ranges[] = { +{0, 0},{0, 1} +}; +static const ProtobufCEnumValueIndex hardware_dispenser_type__enum_values_by_name[1] = +{ + { "StandardDispenser", 0 }, +}; +const ProtobufCEnumDescriptor hardware_dispenser_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "HardwareDispenserType", + "HardwareDispenserType", + "HardwareDispenserType", + "", + 1, + hardware_dispenser_type__enum_values_by_number, + 1, + hardware_dispenser_type__enum_values_by_name, + 1, + hardware_dispenser_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenserType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenserType.pb-c.h new file mode 100644 index 000000000..cd6319f60 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareDispenserType.pb-c.h @@ -0,0 +1,42 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareDispenserType.proto */ + +#ifndef PROTOBUF_C_HardwareDispenserType_2eproto__INCLUDED +#define PROTOBUF_C_HardwareDispenserType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _HardwareDispenserType { + HARDWARE_DISPENSER_TYPE__StandardDispenser = 0 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(HARDWARE_DISPENSER_TYPE) +} HardwareDispenserType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor hardware_dispenser_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareDispenserType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotor.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotor.pb-c.c new file mode 100644 index 000000000..68b02ae76 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotor.pb-c.c @@ -0,0 +1,274 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareMotor.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareMotor.pb-c.h" +void hardware_motor__init + (HardwareMotor *message) +{ + static const HardwareMotor init_value = HARDWARE_MOTOR__INIT; + *message = init_value; +} +size_t hardware_motor__get_packed_size + (const HardwareMotor *message) +{ + assert(message->base.descriptor == &hardware_motor__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t hardware_motor__pack + (const HardwareMotor *message, + uint8_t *out) +{ + assert(message->base.descriptor == &hardware_motor__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t hardware_motor__pack_to_buffer + (const HardwareMotor *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &hardware_motor__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +HardwareMotor * + hardware_motor__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (HardwareMotor *) + protobuf_c_message_unpack (&hardware_motor__descriptor, + allocator, len, data); +} +void hardware_motor__free_unpacked + (HardwareMotor *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &hardware_motor__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor hardware_motor__field_descriptors[15] = +{ + { + "HardwareMotorType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(HardwareMotor, has_hardwaremotortype), + offsetof(HardwareMotor, hardwaremotortype), + &hardware_motor_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MinFrequency", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareMotor, has_minfrequency), + offsetof(HardwareMotor, minfrequency), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxFrequency", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareMotor, has_maxfrequency), + offsetof(HardwareMotor, maxfrequency), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MinMicroStep", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareMotor, has_minmicrostep), + offsetof(HardwareMotor, minmicrostep), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxMicroStep", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareMotor, has_maxmicrostep), + offsetof(HardwareMotor, maxmicrostep), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "LinearRatio", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_linearratio), + offsetof(HardwareMotor, linearratio), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MedianPosition", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareMotor, has_medianposition), + offsetof(HardwareMotor, medianposition), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "CorrectionGain", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_correctiongain), + offsetof(HardwareMotor, correctiongain), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "RatioToDryerSpeed", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_ratiotodryerspeed), + offsetof(HardwareMotor, ratiotodryerspeed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Kp", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_kp), + offsetof(HardwareMotor, kp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Ki", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_ki), + offsetof(HardwareMotor, ki), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Kd", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_kd), + offsetof(HardwareMotor, kd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ChangeSlope", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_changeslope), + offsetof(HardwareMotor, changeslope), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HighLengthMicroSecond", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(HardwareMotor, has_highlengthmicrosecond), + offsetof(HardwareMotor, highlengthmicrosecond), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SpeedMaster", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(HardwareMotor, has_speedmaster), + offsetof(HardwareMotor, speedmaster), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned hardware_motor__field_indices_by_name[] = { + 12, /* field[12] = ChangeSlope */ + 7, /* field[7] = CorrectionGain */ + 0, /* field[0] = HardwareMotorType */ + 13, /* field[13] = HighLengthMicroSecond */ + 11, /* field[11] = Kd */ + 10, /* field[10] = Ki */ + 9, /* field[9] = Kp */ + 5, /* field[5] = LinearRatio */ + 2, /* field[2] = MaxFrequency */ + 4, /* field[4] = MaxMicroStep */ + 6, /* field[6] = MedianPosition */ + 1, /* field[1] = MinFrequency */ + 3, /* field[3] = MinMicroStep */ + 8, /* field[8] = RatioToDryerSpeed */ + 14, /* field[14] = SpeedMaster */ +}; +static const ProtobufCIntRange hardware_motor__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 15 } +}; +const ProtobufCMessageDescriptor hardware_motor__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "HardwareMotor", + "HardwareMotor", + "HardwareMotor", + "", + sizeof(HardwareMotor), + 15, + hardware_motor__field_descriptors, + hardware_motor__field_indices_by_name, + 1, hardware_motor__number_ranges, + (ProtobufCMessageInit) hardware_motor__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotor.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotor.pb-c.h new file mode 100644 index 000000000..334ae0969 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotor.pb-c.h @@ -0,0 +1,101 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareMotor.proto */ + +#ifndef PROTOBUF_C_HardwareMotor_2eproto__INCLUDED +#define PROTOBUF_C_HardwareMotor_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 "HardwareMotorType.pb-c.h" + +typedef struct _HardwareMotor HardwareMotor; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _HardwareMotor +{ + ProtobufCMessage base; + protobuf_c_boolean has_hardwaremotortype; + HardwareMotorType hardwaremotortype; + protobuf_c_boolean has_minfrequency; + int32_t minfrequency; + protobuf_c_boolean has_maxfrequency; + int32_t maxfrequency; + protobuf_c_boolean has_minmicrostep; + int32_t minmicrostep; + protobuf_c_boolean has_maxmicrostep; + int32_t maxmicrostep; + protobuf_c_boolean has_linearratio; + double linearratio; + protobuf_c_boolean has_medianposition; + int32_t medianposition; + protobuf_c_boolean has_correctiongain; + double correctiongain; + protobuf_c_boolean has_ratiotodryerspeed; + double ratiotodryerspeed; + protobuf_c_boolean has_kp; + double kp; + protobuf_c_boolean has_ki; + double ki; + protobuf_c_boolean has_kd; + double kd; + protobuf_c_boolean has_changeslope; + double changeslope; + protobuf_c_boolean has_highlengthmicrosecond; + double highlengthmicrosecond; + protobuf_c_boolean has_speedmaster; + protobuf_c_boolean speedmaster; +}; +#define HARDWARE_MOTOR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&hardware_motor__descriptor) \ + , 0, HARDWARE_MOTOR_TYPE__WinderMotor, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* HardwareMotor methods */ +void hardware_motor__init + (HardwareMotor *message); +size_t hardware_motor__get_packed_size + (const HardwareMotor *message); +size_t hardware_motor__pack + (const HardwareMotor *message, + uint8_t *out); +size_t hardware_motor__pack_to_buffer + (const HardwareMotor *message, + ProtobufCBuffer *buffer); +HardwareMotor * + hardware_motor__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void hardware_motor__free_unpacked + (HardwareMotor *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*HardwareMotor_Closure) + (const HardwareMotor *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor hardware_motor__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareMotor_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotorType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotorType.pb-c.c new file mode 100644 index 000000000..6aa83f948 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotorType.pb-c.c @@ -0,0 +1,41 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareMotorType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareMotorType.pb-c.h" +static const ProtobufCEnumValue hardware_motor_type__enum_values_by_number[4] = +{ + { "WinderMotor", "HARDWARE_MOTOR_TYPE__WinderMotor", 0 }, + { "FeederMotor", "HARDWARE_MOTOR_TYPE__FeederMotor", 1 }, + { "DryerMotor", "HARDWARE_MOTOR_TYPE__DryerMotor", 2 }, + { "PoolerMotor", "HARDWARE_MOTOR_TYPE__PoolerMotor", 3 }, +}; +static const ProtobufCIntRange hardware_motor_type__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex hardware_motor_type__enum_values_by_name[4] = +{ + { "DryerMotor", 2 }, + { "FeederMotor", 1 }, + { "PoolerMotor", 3 }, + { "WinderMotor", 0 }, +}; +const ProtobufCEnumDescriptor hardware_motor_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "HardwareMotorType", + "HardwareMotorType", + "HardwareMotorType", + "", + 4, + hardware_motor_type__enum_values_by_number, + 4, + hardware_motor_type__enum_values_by_name, + 1, + hardware_motor_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotorType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotorType.pb-c.h new file mode 100644 index 000000000..66d5f4e1e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareMotorType.pb-c.h @@ -0,0 +1,45 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareMotorType.proto */ + +#ifndef PROTOBUF_C_HardwareMotorType_2eproto__INCLUDED +#define PROTOBUF_C_HardwareMotorType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _HardwareMotorType { + HARDWARE_MOTOR_TYPE__WinderMotor = 0, + HARDWARE_MOTOR_TYPE__FeederMotor = 1, + HARDWARE_MOTOR_TYPE__DryerMotor = 2, + HARDWARE_MOTOR_TYPE__PoolerMotor = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(HARDWARE_MOTOR_TYPE) +} HardwareMotorType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor hardware_motor_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareMotorType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControl.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControl.pb-c.c new file mode 100644 index 000000000..8eb96d16d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControl.pb-c.c @@ -0,0 +1,274 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwarePidControl.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwarePidControl.pb-c.h" +void hardware_pid_control__init + (HardwarePidControl *message) +{ + static const HardwarePidControl init_value = HARDWARE_PID_CONTROL__INIT; + *message = init_value; +} +size_t hardware_pid_control__get_packed_size + (const HardwarePidControl *message) +{ + assert(message->base.descriptor == &hardware_pid_control__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t hardware_pid_control__pack + (const HardwarePidControl *message, + uint8_t *out) +{ + assert(message->base.descriptor == &hardware_pid_control__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t hardware_pid_control__pack_to_buffer + (const HardwarePidControl *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &hardware_pid_control__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +HardwarePidControl * + hardware_pid_control__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (HardwarePidControl *) + protobuf_c_message_unpack (&hardware_pid_control__descriptor, + allocator, len, data); +} +void hardware_pid_control__free_unpacked + (HardwarePidControl *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &hardware_pid_control__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor hardware_pid_control__field_descriptors[15] = +{ + { + "HardwarePidControlType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(HardwarePidControl, has_hardwarepidcontroltype), + offsetof(HardwarePidControl, hardwarepidcontroltype), + &hardware_pid_control_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OutputProportionalPowerLimit", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_outputproportionalpowerlimit), + offsetof(HardwarePidControl, outputproportionalpowerlimit), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OutputProportionalBand", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_outputproportionalband), + offsetof(HardwarePidControl, outputproportionalband), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "IntegralTime", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_integraltime), + offsetof(HardwarePidControl, integraltime), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DerivativeTime", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_derivativetime), + offsetof(HardwarePidControl, derivativetime), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SensorCorrectionAdjustment", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_sensorcorrectionadjustment), + offsetof(HardwarePidControl, sensorcorrectionadjustment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SensorMinValue", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_sensorminvalue), + offsetof(HardwarePidControl, sensorminvalue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SensorMaxValue", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_sensormaxvalue), + offsetof(HardwarePidControl, sensormaxvalue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SetPointRampRateorSoftStartRamp", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_setpointramprateorsoftstartramp), + offsetof(HardwarePidControl, setpointramprateorsoftstartramp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SetPointControlOutputRate", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_setpointcontroloutputrate), + offsetof(HardwarePidControl, setpointcontroloutputrate), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ControlOutputType", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_controloutputtype), + offsetof(HardwarePidControl, controloutputtype), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SsrControlOutputType", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_ssrcontroloutputtype), + offsetof(HardwarePidControl, ssrcontroloutputtype), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OutputOnOffHysteresisValue", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_outputonoffhysteresisvalue), + offsetof(HardwarePidControl, outputonoffhysteresisvalue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ProcessVariableSamplingRate", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_processvariablesamplingrate), + offsetof(HardwarePidControl, processvariablesamplingrate), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PvInputFilterFactorMode", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwarePidControl, has_pvinputfilterfactormode), + offsetof(HardwarePidControl, pvinputfilterfactormode), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned hardware_pid_control__field_indices_by_name[] = { + 10, /* field[10] = ControlOutputType */ + 4, /* field[4] = DerivativeTime */ + 0, /* field[0] = HardwarePidControlType */ + 3, /* field[3] = IntegralTime */ + 12, /* field[12] = OutputOnOffHysteresisValue */ + 2, /* field[2] = OutputProportionalBand */ + 1, /* field[1] = OutputProportionalPowerLimit */ + 13, /* field[13] = ProcessVariableSamplingRate */ + 14, /* field[14] = PvInputFilterFactorMode */ + 5, /* field[5] = SensorCorrectionAdjustment */ + 7, /* field[7] = SensorMaxValue */ + 6, /* field[6] = SensorMinValue */ + 9, /* field[9] = SetPointControlOutputRate */ + 8, /* field[8] = SetPointRampRateorSoftStartRamp */ + 11, /* field[11] = SsrControlOutputType */ +}; +static const ProtobufCIntRange hardware_pid_control__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 15 } +}; +const ProtobufCMessageDescriptor hardware_pid_control__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "HardwarePidControl", + "HardwarePidControl", + "HardwarePidControl", + "", + sizeof(HardwarePidControl), + 15, + hardware_pid_control__field_descriptors, + hardware_pid_control__field_indices_by_name, + 1, hardware_pid_control__number_ranges, + (ProtobufCMessageInit) hardware_pid_control__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControl.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControl.pb-c.h new file mode 100644 index 000000000..2a316b5ab --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControl.pb-c.h @@ -0,0 +1,101 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwarePidControl.proto */ + +#ifndef PROTOBUF_C_HardwarePidControl_2eproto__INCLUDED +#define PROTOBUF_C_HardwarePidControl_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 "HardwarePidControlType.pb-c.h" + +typedef struct _HardwarePidControl HardwarePidControl; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _HardwarePidControl +{ + ProtobufCMessage base; + protobuf_c_boolean has_hardwarepidcontroltype; + HardwarePidControlType hardwarepidcontroltype; + protobuf_c_boolean has_outputproportionalpowerlimit; + int32_t outputproportionalpowerlimit; + protobuf_c_boolean has_outputproportionalband; + int32_t outputproportionalband; + protobuf_c_boolean has_integraltime; + int32_t integraltime; + protobuf_c_boolean has_derivativetime; + int32_t derivativetime; + protobuf_c_boolean has_sensorcorrectionadjustment; + int32_t sensorcorrectionadjustment; + protobuf_c_boolean has_sensorminvalue; + int32_t sensorminvalue; + protobuf_c_boolean has_sensormaxvalue; + int32_t sensormaxvalue; + protobuf_c_boolean has_setpointramprateorsoftstartramp; + int32_t setpointramprateorsoftstartramp; + protobuf_c_boolean has_setpointcontroloutputrate; + int32_t setpointcontroloutputrate; + protobuf_c_boolean has_controloutputtype; + int32_t controloutputtype; + protobuf_c_boolean has_ssrcontroloutputtype; + int32_t ssrcontroloutputtype; + protobuf_c_boolean has_outputonoffhysteresisvalue; + int32_t outputonoffhysteresisvalue; + protobuf_c_boolean has_processvariablesamplingrate; + int32_t processvariablesamplingrate; + protobuf_c_boolean has_pvinputfilterfactormode; + int32_t pvinputfilterfactormode; +}; +#define HARDWARE_PID_CONTROL__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&hardware_pid_control__descriptor) \ + , 0, HARDWARE_PID_CONTROL_TYPE__DryerHeater1000w, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* HardwarePidControl methods */ +void hardware_pid_control__init + (HardwarePidControl *message); +size_t hardware_pid_control__get_packed_size + (const HardwarePidControl *message); +size_t hardware_pid_control__pack + (const HardwarePidControl *message, + uint8_t *out); +size_t hardware_pid_control__pack_to_buffer + (const HardwarePidControl *message, + ProtobufCBuffer *buffer); +HardwarePidControl * + hardware_pid_control__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void hardware_pid_control__free_unpacked + (HardwarePidControl *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*HardwarePidControl_Closure) + (const HardwarePidControl *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor hardware_pid_control__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwarePidControl_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControlType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControlType.pb-c.c new file mode 100644 index 000000000..a64913666 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControlType.pb-c.c @@ -0,0 +1,61 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwarePidControlType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwarePidControlType.pb-c.h" +static const ProtobufCEnumValue hardware_pid_control_type__enum_values_by_number[14] = +{ + { "DryerHeater1000w", "HARDWARE_PID_CONTROL_TYPE__DryerHeater1000w", 0 }, + { "DryerHeater200w1", "HARDWARE_PID_CONTROL_TYPE__DryerHeater200w1", 1 }, + { "DryerHeater200w2", "HARDWARE_PID_CONTROL_TYPE__DryerHeater200w2", 2 }, + { "HeadHeaterZ1", "HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ1", 3 }, + { "HeadHeaterZ2", "HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ2", 4 }, + { "HeadHeaterZ3", "HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ3", 5 }, + { "HeadHeaterZ4", "HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ4", 6 }, + { "MixerHeater", "HARDWARE_PID_CONTROL_TYPE__MixerHeater", 7 }, + { "WasteControl", "HARDWARE_PID_CONTROL_TYPE__WasteControl", 8 }, + { "MotorDryer", "HARDWARE_PID_CONTROL_TYPE__MotorDryer", 9 }, + { "MotorFeeder", "HARDWARE_PID_CONTROL_TYPE__MotorFeeder", 10 }, + { "MotorPooler", "HARDWARE_PID_CONTROL_TYPE__MotorPooler", 11 }, + { "MotorWinder", "HARDWARE_PID_CONTROL_TYPE__MotorWinder", 12 }, + { "DryerHeater400", "HARDWARE_PID_CONTROL_TYPE__DryerHeater400", 13 }, +}; +static const ProtobufCIntRange hardware_pid_control_type__value_ranges[] = { +{0, 0},{0, 14} +}; +static const ProtobufCEnumValueIndex hardware_pid_control_type__enum_values_by_name[14] = +{ + { "DryerHeater1000w", 0 }, + { "DryerHeater200w1", 1 }, + { "DryerHeater200w2", 2 }, + { "DryerHeater400", 13 }, + { "HeadHeaterZ1", 3 }, + { "HeadHeaterZ2", 4 }, + { "HeadHeaterZ3", 5 }, + { "HeadHeaterZ4", 6 }, + { "MixerHeater", 7 }, + { "MotorDryer", 9 }, + { "MotorFeeder", 10 }, + { "MotorPooler", 11 }, + { "MotorWinder", 12 }, + { "WasteControl", 8 }, +}; +const ProtobufCEnumDescriptor hardware_pid_control_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "HardwarePidControlType", + "HardwarePidControlType", + "HardwarePidControlType", + "", + 14, + hardware_pid_control_type__enum_values_by_number, + 14, + hardware_pid_control_type__enum_values_by_name, + 1, + hardware_pid_control_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControlType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControlType.pb-c.h new file mode 100644 index 000000000..8bcea3bd0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwarePidControlType.pb-c.h @@ -0,0 +1,55 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwarePidControlType.proto */ + +#ifndef PROTOBUF_C_HardwarePidControlType_2eproto__INCLUDED +#define PROTOBUF_C_HardwarePidControlType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _HardwarePidControlType { + HARDWARE_PID_CONTROL_TYPE__DryerHeater1000w = 0, + HARDWARE_PID_CONTROL_TYPE__DryerHeater200w1 = 1, + HARDWARE_PID_CONTROL_TYPE__DryerHeater200w2 = 2, + HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ1 = 3, + HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ2 = 4, + HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ3 = 5, + HARDWARE_PID_CONTROL_TYPE__HeadHeaterZ4 = 6, + HARDWARE_PID_CONTROL_TYPE__MixerHeater = 7, + HARDWARE_PID_CONTROL_TYPE__WasteControl = 8, + HARDWARE_PID_CONTROL_TYPE__MotorDryer = 9, + HARDWARE_PID_CONTROL_TYPE__MotorFeeder = 10, + HARDWARE_PID_CONTROL_TYPE__MotorPooler = 11, + HARDWARE_PID_CONTROL_TYPE__MotorWinder = 12, + HARDWARE_PID_CONTROL_TYPE__DryerHeater400 = 13 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(HARDWARE_PID_CONTROL_TYPE) +} HardwarePidControlType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor hardware_pid_control_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwarePidControlType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinder.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinder.pb-c.c new file mode 100644 index 000000000..2ed95d9a5 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinder.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareWinder.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareWinder.pb-c.h" +void hardware_winder__init + (HardwareWinder *message) +{ + static const HardwareWinder init_value = HARDWARE_WINDER__INIT; + *message = init_value; +} +size_t hardware_winder__get_packed_size + (const HardwareWinder *message) +{ + assert(message->base.descriptor == &hardware_winder__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t hardware_winder__pack + (const HardwareWinder *message, + uint8_t *out) +{ + assert(message->base.descriptor == &hardware_winder__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t hardware_winder__pack_to_buffer + (const HardwareWinder *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &hardware_winder__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +HardwareWinder * + hardware_winder__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (HardwareWinder *) + protobuf_c_message_unpack (&hardware_winder__descriptor, + allocator, len, data); +} +void hardware_winder__free_unpacked + (HardwareWinder *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &hardware_winder__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor hardware_winder__field_descriptors[2] = +{ + { + "HardwareWinderType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(HardwareWinder, has_hardwarewindertype), + offsetof(HardwareWinder, hardwarewindertype), + &hardware_winder_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MillimeterPerRotation", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(HardwareWinder, has_millimeterperrotation), + offsetof(HardwareWinder, millimeterperrotation), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned hardware_winder__field_indices_by_name[] = { + 0, /* field[0] = HardwareWinderType */ + 1, /* field[1] = MillimeterPerRotation */ +}; +static const ProtobufCIntRange hardware_winder__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor hardware_winder__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "HardwareWinder", + "HardwareWinder", + "HardwareWinder", + "", + sizeof(HardwareWinder), + 2, + hardware_winder__field_descriptors, + hardware_winder__field_indices_by_name, + 1, hardware_winder__number_ranges, + (ProtobufCMessageInit) hardware_winder__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinder.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinder.pb-c.h new file mode 100644 index 000000000..1595e4313 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinder.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareWinder.proto */ + +#ifndef PROTOBUF_C_HardwareWinder_2eproto__INCLUDED +#define PROTOBUF_C_HardwareWinder_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 "HardwareWinderType.pb-c.h" + +typedef struct _HardwareWinder HardwareWinder; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _HardwareWinder +{ + ProtobufCMessage base; + protobuf_c_boolean has_hardwarewindertype; + HardwareWinderType hardwarewindertype; + protobuf_c_boolean has_millimeterperrotation; + int32_t millimeterperrotation; +}; +#define HARDWARE_WINDER__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&hardware_winder__descriptor) \ + , 0, HARDWARE_WINDER_TYPE__InternalWinder, 0, 0 } + + +/* HardwareWinder methods */ +void hardware_winder__init + (HardwareWinder *message); +size_t hardware_winder__get_packed_size + (const HardwareWinder *message); +size_t hardware_winder__pack + (const HardwareWinder *message, + uint8_t *out); +size_t hardware_winder__pack_to_buffer + (const HardwareWinder *message, + ProtobufCBuffer *buffer); +HardwareWinder * + hardware_winder__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void hardware_winder__free_unpacked + (HardwareWinder *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*HardwareWinder_Closure) + (const HardwareWinder *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor hardware_winder__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareWinder_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinderType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinderType.pb-c.c new file mode 100644 index 000000000..ed168e14d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinderType.pb-c.c @@ -0,0 +1,35 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareWinderType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "HardwareWinderType.pb-c.h" +static const ProtobufCEnumValue hardware_winder_type__enum_values_by_number[1] = +{ + { "InternalWinder", "HARDWARE_WINDER_TYPE__InternalWinder", 0 }, +}; +static const ProtobufCIntRange hardware_winder_type__value_ranges[] = { +{0, 0},{0, 1} +}; +static const ProtobufCEnumValueIndex hardware_winder_type__enum_values_by_name[1] = +{ + { "InternalWinder", 0 }, +}; +const ProtobufCEnumDescriptor hardware_winder_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "HardwareWinderType", + "HardwareWinderType", + "HardwareWinderType", + "", + 1, + hardware_winder_type__enum_values_by_number, + 1, + hardware_winder_type__enum_values_by_name, + 1, + hardware_winder_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinderType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinderType.pb-c.h new file mode 100644 index 000000000..952c9ea12 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/HardwareWinderType.pb-c.h @@ -0,0 +1,42 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: HardwareWinderType.proto */ + +#ifndef PROTOBUF_C_HardwareWinderType_2eproto__INCLUDED +#define PROTOBUF_C_HardwareWinderType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _HardwareWinderType { + HARDWARE_WINDER_TYPE__InternalWinder = 0 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(HARDWARE_WINDER_TYPE) +} HardwareWinderType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor hardware_winder_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_HardwareWinderType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationRequest.pb-c.c new file mode 100644 index 000000000..160c02c0b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadHardwareConfigurationRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "UploadHardwareConfigurationRequest.pb-c.h" +void upload_hardware_configuration_request__init + (UploadHardwareConfigurationRequest *message) +{ + static const UploadHardwareConfigurationRequest init_value = UPLOAD_HARDWARE_CONFIGURATION_REQUEST__INIT; + *message = init_value; +} +size_t upload_hardware_configuration_request__get_packed_size + (const UploadHardwareConfigurationRequest *message) +{ + assert(message->base.descriptor == &upload_hardware_configuration_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t upload_hardware_configuration_request__pack + (const UploadHardwareConfigurationRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &upload_hardware_configuration_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t upload_hardware_configuration_request__pack_to_buffer + (const UploadHardwareConfigurationRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &upload_hardware_configuration_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +UploadHardwareConfigurationRequest * + upload_hardware_configuration_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (UploadHardwareConfigurationRequest *) + protobuf_c_message_unpack (&upload_hardware_configuration_request__descriptor, + allocator, len, data); +} +void upload_hardware_configuration_request__free_unpacked + (UploadHardwareConfigurationRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &upload_hardware_configuration_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor upload_hardware_configuration_request__field_descriptors[1] = +{ + { + "HardwareConfiguration", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(UploadHardwareConfigurationRequest, hardwareconfiguration), + &hardware_configuration__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned upload_hardware_configuration_request__field_indices_by_name[] = { + 0, /* field[0] = HardwareConfiguration */ +}; +static const ProtobufCIntRange upload_hardware_configuration_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor upload_hardware_configuration_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "UploadHardwareConfigurationRequest", + "UploadHardwareConfigurationRequest", + "UploadHardwareConfigurationRequest", + "", + sizeof(UploadHardwareConfigurationRequest), + 1, + upload_hardware_configuration_request__field_descriptors, + upload_hardware_configuration_request__field_indices_by_name, + 1, upload_hardware_configuration_request__number_ranges, + (ProtobufCMessageInit) upload_hardware_configuration_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationRequest.pb-c.h new file mode 100644 index 000000000..6e715a378 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadHardwareConfigurationRequest.proto */ + +#ifndef PROTOBUF_C_UploadHardwareConfigurationRequest_2eproto__INCLUDED +#define PROTOBUF_C_UploadHardwareConfigurationRequest_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 "HardwareConfiguration.pb-c.h" + +typedef struct _UploadHardwareConfigurationRequest UploadHardwareConfigurationRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _UploadHardwareConfigurationRequest +{ + ProtobufCMessage base; + HardwareConfiguration *hardwareconfiguration; +}; +#define UPLOAD_HARDWARE_CONFIGURATION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&upload_hardware_configuration_request__descriptor) \ + , NULL } + + +/* UploadHardwareConfigurationRequest methods */ +void upload_hardware_configuration_request__init + (UploadHardwareConfigurationRequest *message); +size_t upload_hardware_configuration_request__get_packed_size + (const UploadHardwareConfigurationRequest *message); +size_t upload_hardware_configuration_request__pack + (const UploadHardwareConfigurationRequest *message, + uint8_t *out); +size_t upload_hardware_configuration_request__pack_to_buffer + (const UploadHardwareConfigurationRequest *message, + ProtobufCBuffer *buffer); +UploadHardwareConfigurationRequest * + upload_hardware_configuration_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void upload_hardware_configuration_request__free_unpacked + (UploadHardwareConfigurationRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*UploadHardwareConfigurationRequest_Closure) + (const UploadHardwareConfigurationRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor upload_hardware_configuration_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_UploadHardwareConfigurationRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationResponse.pb-c.c new file mode 100644 index 000000000..56aff3176 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadHardwareConfigurationResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "UploadHardwareConfigurationResponse.pb-c.h" +void upload_hardware_configuration_response__init + (UploadHardwareConfigurationResponse *message) +{ + static const UploadHardwareConfigurationResponse init_value = UPLOAD_HARDWARE_CONFIGURATION_RESPONSE__INIT; + *message = init_value; +} +size_t upload_hardware_configuration_response__get_packed_size + (const UploadHardwareConfigurationResponse *message) +{ + assert(message->base.descriptor == &upload_hardware_configuration_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t upload_hardware_configuration_response__pack + (const UploadHardwareConfigurationResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &upload_hardware_configuration_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t upload_hardware_configuration_response__pack_to_buffer + (const UploadHardwareConfigurationResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &upload_hardware_configuration_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +UploadHardwareConfigurationResponse * + upload_hardware_configuration_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (UploadHardwareConfigurationResponse *) + protobuf_c_message_unpack (&upload_hardware_configuration_response__descriptor, + allocator, len, data); +} +void upload_hardware_configuration_response__free_unpacked + (UploadHardwareConfigurationResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &upload_hardware_configuration_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define upload_hardware_configuration_response__field_descriptors NULL +#define upload_hardware_configuration_response__field_indices_by_name NULL +#define upload_hardware_configuration_response__number_ranges NULL +const ProtobufCMessageDescriptor upload_hardware_configuration_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "UploadHardwareConfigurationResponse", + "UploadHardwareConfigurationResponse", + "UploadHardwareConfigurationResponse", + "", + sizeof(UploadHardwareConfigurationResponse), + 0, + upload_hardware_configuration_response__field_descriptors, + upload_hardware_configuration_response__field_indices_by_name, + 0, upload_hardware_configuration_response__number_ranges, + (ProtobufCMessageInit) upload_hardware_configuration_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationResponse.pb-c.h new file mode 100644 index 000000000..7f754f3bf --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Hardware/UploadHardwareConfigurationResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadHardwareConfigurationResponse.proto */ + +#ifndef PROTOBUF_C_UploadHardwareConfigurationResponse_2eproto__INCLUDED +#define PROTOBUF_C_UploadHardwareConfigurationResponse_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 _UploadHardwareConfigurationResponse UploadHardwareConfigurationResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _UploadHardwareConfigurationResponse +{ + ProtobufCMessage base; +}; +#define UPLOAD_HARDWARE_CONFIGURATION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&upload_hardware_configuration_response__descriptor) \ + } + + +/* UploadHardwareConfigurationResponse methods */ +void upload_hardware_configuration_response__init + (UploadHardwareConfigurationResponse *message); +size_t upload_hardware_configuration_response__get_packed_size + (const UploadHardwareConfigurationResponse *message); +size_t upload_hardware_configuration_response__pack + (const UploadHardwareConfigurationResponse *message, + uint8_t *out); +size_t upload_hardware_configuration_response__pack_to_buffer + (const UploadHardwareConfigurationResponse *message, + ProtobufCBuffer *buffer); +UploadHardwareConfigurationResponse * + upload_hardware_configuration_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void upload_hardware_configuration_response__free_unpacked + (UploadHardwareConfigurationResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*UploadHardwareConfigurationResponse_Closure) + (const UploadHardwareConfigurationResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor upload_hardware_configuration_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_UploadHardwareConfigurationResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserLiquidType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserLiquidType.pb-c.c new file mode 100644 index 000000000..15fe539f2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserLiquidType.pb-c.c @@ -0,0 +1,47 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserLiquidType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserLiquidType.pb-c.h" +static const ProtobufCEnumValue dispenser_liquid_type__enum_values_by_number[7] = +{ + { "Cyan", "DISPENSER_LIQUID_TYPE__Cyan", 0 }, + { "Magenta", "DISPENSER_LIQUID_TYPE__Magenta", 1 }, + { "Yellow", "DISPENSER_LIQUID_TYPE__Yellow", 2 }, + { "Black", "DISPENSER_LIQUID_TYPE__Black", 3 }, + { "TransparentInk", "DISPENSER_LIQUID_TYPE__TransparentInk", 4 }, + { "Lubricant", "DISPENSER_LIQUID_TYPE__Lubricant", 5 }, + { "Red", "DISPENSER_LIQUID_TYPE__Red", 7 }, +}; +static const ProtobufCIntRange dispenser_liquid_type__value_ranges[] = { +{0, 0},{7, 6},{0, 7} +}; +static const ProtobufCEnumValueIndex dispenser_liquid_type__enum_values_by_name[7] = +{ + { "Black", 3 }, + { "Cyan", 0 }, + { "Lubricant", 5 }, + { "Magenta", 1 }, + { "Red", 6 }, + { "TransparentInk", 4 }, + { "Yellow", 2 }, +}; +const ProtobufCEnumDescriptor dispenser_liquid_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "DispenserLiquidType", + "DispenserLiquidType", + "DispenserLiquidType", + "", + 7, + dispenser_liquid_type__enum_values_by_number, + 7, + dispenser_liquid_type__enum_values_by_name, + 2, + dispenser_liquid_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserLiquidType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserLiquidType.pb-c.h new file mode 100644 index 000000000..a6ae3e867 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserLiquidType.pb-c.h @@ -0,0 +1,48 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserLiquidType.proto */ + +#ifndef PROTOBUF_C_DispenserLiquidType_2eproto__INCLUDED +#define PROTOBUF_C_DispenserLiquidType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _DispenserLiquidType { + DISPENSER_LIQUID_TYPE__Cyan = 0, + DISPENSER_LIQUID_TYPE__Magenta = 1, + DISPENSER_LIQUID_TYPE__Yellow = 2, + DISPENSER_LIQUID_TYPE__Black = 3, + DISPENSER_LIQUID_TYPE__TransparentInk = 4, + DISPENSER_LIQUID_TYPE__Lubricant = 5, + DISPENSER_LIQUID_TYPE__Red = 7 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DISPENSER_LIQUID_TYPE) +} DispenserLiquidType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor dispenser_liquid_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserLiquidType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserStepDivision.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserStepDivision.pb-c.c new file mode 100644 index 000000000..38da8a46b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserStepDivision.pb-c.c @@ -0,0 +1,51 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserStepDivision.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserStepDivision.pb-c.h" +static const ProtobufCEnumValue dispenser_step_division__enum_values_by_number[9] = +{ + { "Auto", "DISPENSER_STEP_DIVISION__Auto", 0 }, + { "D1", "DISPENSER_STEP_DIVISION__D1", 1 }, + { "D2", "DISPENSER_STEP_DIVISION__D2", 2 }, + { "D4", "DISPENSER_STEP_DIVISION__D4", 4 }, + { "D8", "DISPENSER_STEP_DIVISION__D8", 8 }, + { "D16", "DISPENSER_STEP_DIVISION__D16", 16 }, + { "D32", "DISPENSER_STEP_DIVISION__D32", 32 }, + { "D64", "DISPENSER_STEP_DIVISION__D64", 64 }, + { "D128", "DISPENSER_STEP_DIVISION__D128", 128 }, +}; +static const ProtobufCIntRange dispenser_step_division__value_ranges[] = { +{0, 0},{4, 3},{8, 4},{16, 5},{32, 6},{64, 7},{128, 8},{0, 9} +}; +static const ProtobufCEnumValueIndex dispenser_step_division__enum_values_by_name[9] = +{ + { "Auto", 0 }, + { "D1", 1 }, + { "D128", 8 }, + { "D16", 5 }, + { "D2", 2 }, + { "D32", 6 }, + { "D4", 3 }, + { "D64", 7 }, + { "D8", 4 }, +}; +const ProtobufCEnumDescriptor dispenser_step_division__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "DispenserStepDivision", + "DispenserStepDivision", + "DispenserStepDivision", + "", + 9, + dispenser_step_division__enum_values_by_number, + 9, + dispenser_step_division__enum_values_by_name, + 7, + dispenser_step_division__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserStepDivision.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserStepDivision.pb-c.h new file mode 100644 index 000000000..42e340daa --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/DispenserStepDivision.pb-c.h @@ -0,0 +1,50 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserStepDivision.proto */ + +#ifndef PROTOBUF_C_DispenserStepDivision_2eproto__INCLUDED +#define PROTOBUF_C_DispenserStepDivision_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _DispenserStepDivision { + DISPENSER_STEP_DIVISION__Auto = 0, + DISPENSER_STEP_DIVISION__D1 = 1, + DISPENSER_STEP_DIVISION__D2 = 2, + DISPENSER_STEP_DIVISION__D4 = 4, + DISPENSER_STEP_DIVISION__D8 = 8, + DISPENSER_STEP_DIVISION__D16 = 16, + DISPENSER_STEP_DIVISION__D32 = 32, + DISPENSER_STEP_DIVISION__D64 = 64, + DISPENSER_STEP_DIVISION__D128 = 128 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(DISPENSER_STEP_DIVISION) +} DispenserStepDivision; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor dispenser_step_division__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserStepDivision_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobBrushStop.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobBrushStop.pb-c.c new file mode 100644 index 000000000..45e10394b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobBrushStop.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobBrushStop.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobBrushStop.pb-c.h" +void job_brush_stop__init + (JobBrushStop *message) +{ + static const JobBrushStop init_value = JOB_BRUSH_STOP__INIT; + *message = init_value; +} +size_t job_brush_stop__get_packed_size + (const JobBrushStop *message) +{ + assert(message->base.descriptor == &job_brush_stop__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_brush_stop__pack + (const JobBrushStop *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_brush_stop__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_brush_stop__pack_to_buffer + (const JobBrushStop *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_brush_stop__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobBrushStop * + job_brush_stop__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobBrushStop *) + protobuf_c_message_unpack (&job_brush_stop__descriptor, + allocator, len, data); +} +void job_brush_stop__free_unpacked + (JobBrushStop *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_brush_stop__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_brush_stop__field_descriptors[4] = +{ + { + "Index", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(JobBrushStop, has_index), + offsetof(JobBrushStop, index), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OffsetPercent", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobBrushStop, has_offsetpercent), + offsetof(JobBrushStop, offsetpercent), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OffsetMeters", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobBrushStop, has_offsetmeters), + offsetof(JobBrushStop, offsetmeters), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Dispensers", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(JobBrushStop, n_dispensers), + offsetof(JobBrushStop, dispensers), + &job_dispenser__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_brush_stop__field_indices_by_name[] = { + 3, /* field[3] = Dispensers */ + 0, /* field[0] = Index */ + 2, /* field[2] = OffsetMeters */ + 1, /* field[1] = OffsetPercent */ +}; +static const ProtobufCIntRange job_brush_stop__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor job_brush_stop__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobBrushStop", + "JobBrushStop", + "JobBrushStop", + "", + sizeof(JobBrushStop), + 4, + job_brush_stop__field_descriptors, + job_brush_stop__field_indices_by_name, + 1, job_brush_stop__number_ranges, + (ProtobufCMessageInit) job_brush_stop__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobBrushStop.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobBrushStop.pb-c.h new file mode 100644 index 000000000..6e887a448 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobBrushStop.pb-c.h @@ -0,0 +1,79 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobBrushStop.proto */ + +#ifndef PROTOBUF_C_JobBrushStop_2eproto__INCLUDED +#define PROTOBUF_C_JobBrushStop_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 "JobDispenser.pb-c.h" + +typedef struct _JobBrushStop JobBrushStop; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobBrushStop +{ + ProtobufCMessage base; + protobuf_c_boolean has_index; + int32_t index; + protobuf_c_boolean has_offsetpercent; + double offsetpercent; + protobuf_c_boolean has_offsetmeters; + double offsetmeters; + size_t n_dispensers; + JobDispenser **dispensers; +}; +#define JOB_BRUSH_STOP__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_brush_stop__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0,NULL } + + +/* JobBrushStop methods */ +void job_brush_stop__init + (JobBrushStop *message); +size_t job_brush_stop__get_packed_size + (const JobBrushStop *message); +size_t job_brush_stop__pack + (const JobBrushStop *message, + uint8_t *out); +size_t job_brush_stop__pack_to_buffer + (const JobBrushStop *message, + ProtobufCBuffer *buffer); +JobBrushStop * + job_brush_stop__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_brush_stop__free_unpacked + (JobBrushStop *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobBrushStop_Closure) + (const JobBrushStop *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_brush_stop__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobBrushStop_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobDispenser.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobDispenser.pb-c.c new file mode 100644 index 000000000..f868d121e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobDispenser.pb-c.c @@ -0,0 +1,196 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobDispenser.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobDispenser.pb-c.h" +void job_dispenser__init + (JobDispenser *message) +{ + static const JobDispenser init_value = JOB_DISPENSER__INIT; + *message = init_value; +} +size_t job_dispenser__get_packed_size + (const JobDispenser *message) +{ + assert(message->base.descriptor == &job_dispenser__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_dispenser__pack + (const JobDispenser *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_dispenser__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_dispenser__pack_to_buffer + (const JobDispenser *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_dispenser__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobDispenser * + job_dispenser__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobDispenser *) + protobuf_c_message_unpack (&job_dispenser__descriptor, + allocator, len, data); +} +void job_dispenser__free_unpacked + (JobDispenser *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_dispenser__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_dispenser__field_descriptors[9] = +{ + { + "Index", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(JobDispenser, has_index), + offsetof(JobDispenser, index), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Volume", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobDispenser, has_volume), + offsetof(JobDispenser, volume), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DispenserStepDivision", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(JobDispenser, has_dispenserstepdivision), + offsetof(JobDispenser, dispenserstepdivision), + &dispenser_step_division__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "NanolitterPerSecond", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobDispenser, has_nanolitterpersecond), + offsetof(JobDispenser, nanolitterpersecond), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "NanoliterPerCentimeter", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobDispenser, has_nanoliterpercentimeter), + offsetof(JobDispenser, nanoliterpercentimeter), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PulsePerSecond", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobDispenser, has_pulsepersecond), + offsetof(JobDispenser, pulsepersecond), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DispenserLiquidType", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(JobDispenser, has_dispenserliquidtype), + offsetof(JobDispenser, dispenserliquidtype), + &dispenser_liquid_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "LiquidMaxNanoliterPerCentimeter", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobDispenser, has_liquidmaxnanoliterpercentimeter), + offsetof(JobDispenser, liquidmaxnanoliterpercentimeter), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "NanoliterPerPulse", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobDispenser, has_nanoliterperpulse), + offsetof(JobDispenser, nanoliterperpulse), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_dispenser__field_indices_by_name[] = { + 6, /* field[6] = DispenserLiquidType */ + 2, /* field[2] = DispenserStepDivision */ + 0, /* field[0] = Index */ + 7, /* field[7] = LiquidMaxNanoliterPerCentimeter */ + 4, /* field[4] = NanoliterPerCentimeter */ + 8, /* field[8] = NanoliterPerPulse */ + 3, /* field[3] = NanolitterPerSecond */ + 5, /* field[5] = PulsePerSecond */ + 1, /* field[1] = Volume */ +}; +static const ProtobufCIntRange job_dispenser__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 9 } +}; +const ProtobufCMessageDescriptor job_dispenser__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobDispenser", + "JobDispenser", + "JobDispenser", + "", + sizeof(JobDispenser), + 9, + job_dispenser__field_descriptors, + job_dispenser__field_indices_by_name, + 1, job_dispenser__number_ranges, + (ProtobufCMessageInit) job_dispenser__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobDispenser.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobDispenser.pb-c.h new file mode 100644 index 000000000..2b21e265c --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobDispenser.pb-c.h @@ -0,0 +1,90 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobDispenser.proto */ + +#ifndef PROTOBUF_C_JobDispenser_2eproto__INCLUDED +#define PROTOBUF_C_JobDispenser_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 "DispenserStepDivision.pb-c.h" +#include "DispenserLiquidType.pb-c.h" + +typedef struct _JobDispenser JobDispenser; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobDispenser +{ + ProtobufCMessage base; + protobuf_c_boolean has_index; + int32_t index; + protobuf_c_boolean has_volume; + double volume; + protobuf_c_boolean has_dispenserstepdivision; + DispenserStepDivision dispenserstepdivision; + protobuf_c_boolean has_nanolitterpersecond; + double nanolitterpersecond; + protobuf_c_boolean has_nanoliterpercentimeter; + double nanoliterpercentimeter; + protobuf_c_boolean has_pulsepersecond; + double pulsepersecond; + protobuf_c_boolean has_dispenserliquidtype; + DispenserLiquidType dispenserliquidtype; + protobuf_c_boolean has_liquidmaxnanoliterpercentimeter; + double liquidmaxnanoliterpercentimeter; + protobuf_c_boolean has_nanoliterperpulse; + double nanoliterperpulse; +}; +#define JOB_DISPENSER__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_dispenser__descriptor) \ + , 0, 0, 0, 0, 0, DISPENSER_STEP_DIVISION__Auto, 0, 0, 0, 0, 0, 0, 0, DISPENSER_LIQUID_TYPE__Cyan, 0, 0, 0, 0 } + + +/* JobDispenser methods */ +void job_dispenser__init + (JobDispenser *message); +size_t job_dispenser__get_packed_size + (const JobDispenser *message); +size_t job_dispenser__pack + (const JobDispenser *message, + uint8_t *out); +size_t job_dispenser__pack_to_buffer + (const JobDispenser *message, + ProtobufCBuffer *buffer); +JobDispenser * + job_dispenser__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_dispenser__free_unpacked + (JobDispenser *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobDispenser_Closure) + (const JobDispenser *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_dispenser__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobDispenser_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.c index d282c0e56..d1e101dfd 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.c @@ -52,23 +52,11 @@ void job_request__free_unpacked assert(message->base.descriptor == &job_request__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor job_request__field_descriptors[2] = +static const ProtobufCFieldDescriptor job_request__field_descriptors[1] = { { - "Name", - 1, - PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(JobRequest, name), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { "JobTicket", - 2, + 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ @@ -80,13 +68,12 @@ static const ProtobufCFieldDescriptor job_request__field_descriptors[2] = }, }; static const unsigned job_request__field_indices_by_name[] = { - 1, /* field[1] = JobTicket */ - 0, /* field[0] = Name */ + 0, /* field[0] = JobTicket */ }; static const ProtobufCIntRange job_request__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 1 } }; const ProtobufCMessageDescriptor job_request__descriptor = { @@ -96,7 +83,7 @@ const ProtobufCMessageDescriptor job_request__descriptor = "JobRequest", "", sizeof(JobRequest), - 2, + 1, job_request__field_descriptors, job_request__field_indices_by_name, 1, job_request__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.h index 2019c859b..224db64af 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobRequest.pb-c.h @@ -28,11 +28,10 @@ struct _JobRequest { ProtobufCMessage base; JobTicket *jobticket; - char *name; }; #define JOB_REQUEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&job_request__descriptor) \ - , NULL, NULL } + , NULL } /* JobRequest methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.c index 94042855d..8b1710079 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.c @@ -52,7 +52,7 @@ void job_segment__free_unpacked assert(message->base.descriptor == &job_segment__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor job_segment__field_descriptors[2] = +static const ProtobufCFieldDescriptor job_segment__field_descriptors[3] = { { "Name", @@ -78,15 +78,28 @@ static const ProtobufCFieldDescriptor job_segment__field_descriptors[2] = 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "BrushStops", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(JobSegment, n_brushstops), + offsetof(JobSegment, brushstops), + &job_brush_stop__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned job_segment__field_indices_by_name[] = { + 2, /* field[2] = BrushStops */ 1, /* field[1] = Length */ 0, /* field[0] = Name */ }; static const ProtobufCIntRange job_segment__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 2 } + { 0, 3 } }; const ProtobufCMessageDescriptor job_segment__descriptor = { @@ -96,7 +109,7 @@ const ProtobufCMessageDescriptor job_segment__descriptor = "JobSegment", "", sizeof(JobSegment), - 2, + 3, job_segment__field_descriptors, job_segment__field_indices_by_name, 1, job_segment__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.h index df8fb21e5..2c077abaa 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSegment.pb-c.h @@ -14,6 +14,7 @@ PROTOBUF_C__BEGIN_DECLS # 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 "JobBrushStop.pb-c.h" typedef struct _JobSegment JobSegment; @@ -29,10 +30,12 @@ struct _JobSegment char *name; protobuf_c_boolean has_length; double length; + size_t n_brushstops; + JobBrushStop **brushstops; }; #define JOB_SEGMENT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&job_segment__descriptor) \ - , NULL, 0, 0 } + , NULL, 0, 0, 0,NULL } /* JobSegment methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpool.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpool.pb-c.c new file mode 100644 index 000000000..329c9e701 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpool.pb-c.c @@ -0,0 +1,170 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobSpool.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobSpool.pb-c.h" +void job_spool__init + (JobSpool *message) +{ + static const JobSpool init_value = JOB_SPOOL__INIT; + *message = init_value; +} +size_t job_spool__get_packed_size + (const JobSpool *message) +{ + assert(message->base.descriptor == &job_spool__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t job_spool__pack + (const JobSpool *message, + uint8_t *out) +{ + assert(message->base.descriptor == &job_spool__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t job_spool__pack_to_buffer + (const JobSpool *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &job_spool__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +JobSpool * + job_spool__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (JobSpool *) + protobuf_c_message_unpack (&job_spool__descriptor, + allocator, len, data); +} +void job_spool__free_unpacked + (JobSpool *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &job_spool__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor job_spool__field_descriptors[7] = +{ + { + "JobSpoolType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(JobSpool, has_jobspooltype), + offsetof(JobSpool, jobspooltype), + &job_spool_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Length", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobSpool, has_length), + offsetof(JobSpool, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Weight", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobSpool, has_weight), + offsetof(JobSpool, weight), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Diameter", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(JobSpool, has_diameter), + offsetof(JobSpool, diameter), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StartOffsetPulses", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(JobSpool, has_startoffsetpulses), + offsetof(JobSpool, startoffsetpulses), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "BackingRate", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(JobSpool, has_backingrate), + offsetof(JobSpool, backingrate), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SegmentOffsetPulses", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(JobSpool, has_segmentoffsetpulses), + offsetof(JobSpool, segmentoffsetpulses), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned job_spool__field_indices_by_name[] = { + 5, /* field[5] = BackingRate */ + 3, /* field[3] = Diameter */ + 0, /* field[0] = JobSpoolType */ + 1, /* field[1] = Length */ + 6, /* field[6] = SegmentOffsetPulses */ + 4, /* field[4] = StartOffsetPulses */ + 2, /* field[2] = Weight */ +}; +static const ProtobufCIntRange job_spool__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor job_spool__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "JobSpool", + "JobSpool", + "JobSpool", + "", + sizeof(JobSpool), + 7, + job_spool__field_descriptors, + job_spool__field_indices_by_name, + 1, job_spool__number_ranges, + (ProtobufCMessageInit) job_spool__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpool.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpool.pb-c.h new file mode 100644 index 000000000..38e9236ce --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpool.pb-c.h @@ -0,0 +1,85 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobSpool.proto */ + +#ifndef PROTOBUF_C_JobSpool_2eproto__INCLUDED +#define PROTOBUF_C_JobSpool_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 "JobSpoolType.pb-c.h" + +typedef struct _JobSpool JobSpool; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _JobSpool +{ + ProtobufCMessage base; + protobuf_c_boolean has_jobspooltype; + JobSpoolType jobspooltype; + protobuf_c_boolean has_length; + double length; + protobuf_c_boolean has_weight; + double weight; + protobuf_c_boolean has_diameter; + double diameter; + protobuf_c_boolean has_startoffsetpulses; + int32_t startoffsetpulses; + protobuf_c_boolean has_backingrate; + int32_t backingrate; + protobuf_c_boolean has_segmentoffsetpulses; + int32_t segmentoffsetpulses; +}; +#define JOB_SPOOL__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&job_spool__descriptor) \ + , 0, JOB_SPOOL_TYPE__StandardSpool, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* JobSpool methods */ +void job_spool__init + (JobSpool *message); +size_t job_spool__get_packed_size + (const JobSpool *message); +size_t job_spool__pack + (const JobSpool *message, + uint8_t *out); +size_t job_spool__pack_to_buffer + (const JobSpool *message, + ProtobufCBuffer *buffer); +JobSpool * + job_spool__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void job_spool__free_unpacked + (JobSpool *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*JobSpool_Closure) + (const JobSpool *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor job_spool__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobSpool_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpoolType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpoolType.pb-c.c new file mode 100644 index 000000000..aa72dc2c9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpoolType.pb-c.c @@ -0,0 +1,35 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobSpoolType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "JobSpoolType.pb-c.h" +static const ProtobufCEnumValue job_spool_type__enum_values_by_number[1] = +{ + { "StandardSpool", "JOB_SPOOL_TYPE__StandardSpool", 0 }, +}; +static const ProtobufCIntRange job_spool_type__value_ranges[] = { +{0, 0},{0, 1} +}; +static const ProtobufCEnumValueIndex job_spool_type__enum_values_by_name[1] = +{ + { "StandardSpool", 0 }, +}; +const ProtobufCEnumDescriptor job_spool_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "JobSpoolType", + "JobSpoolType", + "JobSpoolType", + "", + 1, + job_spool_type__enum_values_by_number, + 1, + job_spool_type__enum_values_by_name, + 1, + job_spool_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpoolType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpoolType.pb-c.h new file mode 100644 index 000000000..2cfab4ae8 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobSpoolType.pb-c.h @@ -0,0 +1,42 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: JobSpoolType.proto */ + +#ifndef PROTOBUF_C_JobSpoolType_2eproto__INCLUDED +#define PROTOBUF_C_JobSpoolType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _JobSpoolType { + JOB_SPOOL_TYPE__StandardSpool = 0 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(JOB_SPOOL_TYPE) +} JobSpoolType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor job_spool_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_JobSpoolType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.c index 765494fce..c9f1e859f 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.c @@ -52,7 +52,7 @@ void job_ticket__free_unpacked assert(message->base.descriptor == &job_ticket__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor job_ticket__field_descriptors[7] = +static const ProtobufCFieldDescriptor job_ticket__field_descriptors[8] = { { "Name", @@ -127,8 +127,20 @@ static const ProtobufCFieldDescriptor job_ticket__field_descriptors[7] = 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "Segments", + "Spool", 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(JobTicket, spool), + &job_spool__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Segments", + 8, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, offsetof(JobTicket, n_segments), @@ -145,13 +157,14 @@ static const unsigned job_ticket__field_indices_by_name[] = { 3, /* field[3] = Length */ 0, /* field[0] = Name */ 4, /* field[4] = ProcessParameters */ - 6, /* field[6] = Segments */ + 7, /* field[7] = Segments */ + 6, /* field[6] = Spool */ 5, /* field[5] = WindingMethod */ }; static const ProtobufCIntRange job_ticket__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 7 } + { 0, 8 } }; const ProtobufCMessageDescriptor job_ticket__descriptor = { @@ -161,7 +174,7 @@ const ProtobufCMessageDescriptor job_ticket__descriptor = "JobTicket", "", sizeof(JobTicket), - 7, + 8, job_ticket__field_descriptors, job_ticket__field_indices_by_name, 1, job_ticket__number_ranges, diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.h index b64ee6292..b20d1db3c 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/JobTicket.pb-c.h @@ -17,6 +17,7 @@ PROTOBUF_C__BEGIN_DECLS #include "JobSegment.pb-c.h" #include "ProcessParameters.pb-c.h" #include "JobWindingMethod.pb-c.h" +#include "JobSpool.pb-c.h" typedef struct _JobTicket JobTicket; @@ -39,12 +40,13 @@ struct _JobTicket ProcessParameters *processparameters; protobuf_c_boolean has_windingmethod; JobWindingMethod windingmethod; + JobSpool *spool; size_t n_segments; JobSegment **segments; }; #define JOB_TICKET__INIT \ { PROTOBUF_C_MESSAGE_INIT (&job_ticket__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0, NULL, 0, JOB_WINDING_METHOD__Embroidery, 0,NULL } + , NULL, 0, 0, 0, 0, 0, 0, NULL, 0, JOB_WINDING_METHOD__Embroidery, NULL, 0,NULL } /* JobTicket methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.c index f1d45c351..a6c9b8f08 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.c +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.c @@ -55,48 +55,48 @@ void process_parameters__free_unpacked static const ProtobufCFieldDescriptor process_parameters__field_descriptors[16] = { { - "Name", + "DyeingSpeed", 1, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(ProcessParameters, name), + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ProcessParameters, has_dyeingspeed), + offsetof(ProcessParameters, dyeingspeed), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "DyeingSpeed", + "MixerTemp", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_dyeingspeed), - offsetof(ProcessParameters, dyeingspeed), + offsetof(ProcessParameters, has_mixertemp), + offsetof(ProcessParameters, mixertemp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "MinInkUptake", + "DryerBufferLength", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_mininkuptake), - offsetof(ProcessParameters, mininkuptake), + offsetof(ProcessParameters, has_dryerbufferlength), + offsetof(ProcessParameters, dryerbufferlength), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "MixerTemp", + "MinInkUptake", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_mixertemp), - offsetof(ProcessParameters, mixertemp), + offsetof(ProcessParameters, has_mininkuptake), + offsetof(ProcessParameters, mininkuptake), NULL, NULL, 0, /* flags */ @@ -115,48 +115,48 @@ static const ProtobufCFieldDescriptor process_parameters__field_descriptors[16] 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "HeadZone2Temp", + "DryerZone1Temp", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_headzone2temp), - offsetof(ProcessParameters, headzone2temp), + offsetof(ProcessParameters, has_dryerzone1temp), + offsetof(ProcessParameters, dryerzone1temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "HeadZone3Temp", + "FeederTension", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_headzone3temp), - offsetof(ProcessParameters, headzone3temp), + offsetof(ProcessParameters, has_feedertension), + offsetof(ProcessParameters, feedertension), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "HeadAirFlow", + "DryerZone2Temp", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_headairflow), - offsetof(ProcessParameters, headairflow), + offsetof(ProcessParameters, has_dryerzone2temp), + offsetof(ProcessParameters, dryerzone2temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "FeederTension", + "HeadZone2Temp", 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_feedertension), - offsetof(ProcessParameters, feedertension), + offsetof(ProcessParameters, has_headzone2temp), + offsetof(ProcessParameters, headzone2temp), NULL, NULL, 0, /* flags */ @@ -175,48 +175,48 @@ static const ProtobufCFieldDescriptor process_parameters__field_descriptors[16] 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "DryerBufferLength", + "HeadZone3Temp", 11, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_dryerbufferlength), - offsetof(ProcessParameters, dryerbufferlength), + offsetof(ProcessParameters, has_headzone3temp), + offsetof(ProcessParameters, headzone3temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "DryerZone1Temp", + "DryerZone3Temp", 12, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_dryerzone1temp), - offsetof(ProcessParameters, dryerzone1temp), + offsetof(ProcessParameters, has_dryerzone3temp), + offsetof(ProcessParameters, dryerzone3temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "DryerZone2Temp", + "WinderTension", 13, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_dryerzone2temp), - offsetof(ProcessParameters, dryerzone2temp), + offsetof(ProcessParameters, has_windertension), + offsetof(ProcessParameters, windertension), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "DryerZone3Temp", + "HeadAirFlow", 14, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_dryerzone3temp), - offsetof(ProcessParameters, dryerzone3temp), + offsetof(ProcessParameters, has_headairflow), + offsetof(ProcessParameters, headairflow), NULL, NULL, 0, /* flags */ @@ -235,12 +235,12 @@ static const ProtobufCFieldDescriptor process_parameters__field_descriptors[16] 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "WinderTension", + "TableIndex", 16, PROTOBUF_C_LABEL_OPTIONAL, - PROTOBUF_C_TYPE_DOUBLE, - offsetof(ProcessParameters, has_windertension), - offsetof(ProcessParameters, windertension), + PROTOBUF_C_TYPE_INT32, + offsetof(ProcessParameters, has_tableindex), + offsetof(ProcessParameters, tableindex), NULL, NULL, 0, /* flags */ @@ -249,21 +249,21 @@ static const ProtobufCFieldDescriptor process_parameters__field_descriptors[16] }; static const unsigned process_parameters__field_indices_by_name[] = { 14, /* field[14] = DryerAirFlow */ - 10, /* field[10] = DryerBufferLength */ - 11, /* field[11] = DryerZone1Temp */ - 12, /* field[12] = DryerZone2Temp */ - 13, /* field[13] = DryerZone3Temp */ - 1, /* field[1] = DyeingSpeed */ - 8, /* field[8] = FeederTension */ - 7, /* field[7] = HeadAirFlow */ + 2, /* field[2] = DryerBufferLength */ + 5, /* field[5] = DryerZone1Temp */ + 7, /* field[7] = DryerZone2Temp */ + 11, /* field[11] = DryerZone3Temp */ + 0, /* field[0] = DyeingSpeed */ + 6, /* field[6] = FeederTension */ + 13, /* field[13] = HeadAirFlow */ 4, /* field[4] = HeadZone1Temp */ - 5, /* field[5] = HeadZone2Temp */ - 6, /* field[6] = HeadZone3Temp */ - 2, /* field[2] = MinInkUptake */ - 3, /* field[3] = MixerTemp */ - 0, /* field[0] = Name */ + 8, /* field[8] = HeadZone2Temp */ + 10, /* field[10] = HeadZone3Temp */ + 3, /* field[3] = MinInkUptake */ + 1, /* field[1] = MixerTemp */ 9, /* field[9] = PullerTension */ - 15, /* field[15] = WinderTension */ + 15, /* field[15] = TableIndex */ + 12, /* field[12] = WinderTension */ }; static const ProtobufCIntRange process_parameters__number_ranges[1 + 1] = { diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.h index a658f6b5b..00be2df93 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.h +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/ProcessParameters.pb-c.h @@ -26,41 +26,42 @@ typedef struct _ProcessParameters ProcessParameters; struct _ProcessParameters { ProtobufCMessage base; - char *name; protobuf_c_boolean has_dyeingspeed; double dyeingspeed; - protobuf_c_boolean has_mininkuptake; - double mininkuptake; protobuf_c_boolean has_mixertemp; double mixertemp; - protobuf_c_boolean has_headzone1temp; - double headzone1temp; - protobuf_c_boolean has_headzone2temp; - double headzone2temp; - protobuf_c_boolean has_headzone3temp; - double headzone3temp; - protobuf_c_boolean has_headairflow; - double headairflow; - protobuf_c_boolean has_feedertension; - double feedertension; - protobuf_c_boolean has_pullertension; - double pullertension; protobuf_c_boolean has_dryerbufferlength; double dryerbufferlength; + protobuf_c_boolean has_mininkuptake; + double mininkuptake; + protobuf_c_boolean has_headzone1temp; + double headzone1temp; protobuf_c_boolean has_dryerzone1temp; double dryerzone1temp; + protobuf_c_boolean has_feedertension; + double feedertension; protobuf_c_boolean has_dryerzone2temp; double dryerzone2temp; + protobuf_c_boolean has_headzone2temp; + double headzone2temp; + protobuf_c_boolean has_pullertension; + double pullertension; + protobuf_c_boolean has_headzone3temp; + double headzone3temp; protobuf_c_boolean has_dryerzone3temp; double dryerzone3temp; - protobuf_c_boolean has_dryerairflow; - double dryerairflow; protobuf_c_boolean has_windertension; double windertension; + protobuf_c_boolean has_headairflow; + double headairflow; + protobuf_c_boolean has_dryerairflow; + double dryerairflow; + protobuf_c_boolean has_tableindex; + int32_t tableindex; }; #define PROCESS_PARAMETERS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&process_parameters__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } /* ProcessParameters methods */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersRequest.pb-c.c new file mode 100644 index 000000000..bae09c741 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadProcessParametersRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "UploadProcessParametersRequest.pb-c.h" +void upload_process_parameters_request__init + (UploadProcessParametersRequest *message) +{ + static const UploadProcessParametersRequest init_value = UPLOAD_PROCESS_PARAMETERS_REQUEST__INIT; + *message = init_value; +} +size_t upload_process_parameters_request__get_packed_size + (const UploadProcessParametersRequest *message) +{ + assert(message->base.descriptor == &upload_process_parameters_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t upload_process_parameters_request__pack + (const UploadProcessParametersRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &upload_process_parameters_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t upload_process_parameters_request__pack_to_buffer + (const UploadProcessParametersRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &upload_process_parameters_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +UploadProcessParametersRequest * + upload_process_parameters_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (UploadProcessParametersRequest *) + protobuf_c_message_unpack (&upload_process_parameters_request__descriptor, + allocator, len, data); +} +void upload_process_parameters_request__free_unpacked + (UploadProcessParametersRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &upload_process_parameters_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor upload_process_parameters_request__field_descriptors[1] = +{ + { + "ProcessParameters", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(UploadProcessParametersRequest, processparameters), + &process_parameters__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned upload_process_parameters_request__field_indices_by_name[] = { + 0, /* field[0] = ProcessParameters */ +}; +static const ProtobufCIntRange upload_process_parameters_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor upload_process_parameters_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "UploadProcessParametersRequest", + "UploadProcessParametersRequest", + "UploadProcessParametersRequest", + "", + sizeof(UploadProcessParametersRequest), + 1, + upload_process_parameters_request__field_descriptors, + upload_process_parameters_request__field_indices_by_name, + 1, upload_process_parameters_request__number_ranges, + (ProtobufCMessageInit) upload_process_parameters_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersRequest.pb-c.h new file mode 100644 index 000000000..c39ee4174 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadProcessParametersRequest.proto */ + +#ifndef PROTOBUF_C_UploadProcessParametersRequest_2eproto__INCLUDED +#define PROTOBUF_C_UploadProcessParametersRequest_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 "ProcessParameters.pb-c.h" + +typedef struct _UploadProcessParametersRequest UploadProcessParametersRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _UploadProcessParametersRequest +{ + ProtobufCMessage base; + ProcessParameters *processparameters; +}; +#define UPLOAD_PROCESS_PARAMETERS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&upload_process_parameters_request__descriptor) \ + , NULL } + + +/* UploadProcessParametersRequest methods */ +void upload_process_parameters_request__init + (UploadProcessParametersRequest *message); +size_t upload_process_parameters_request__get_packed_size + (const UploadProcessParametersRequest *message); +size_t upload_process_parameters_request__pack + (const UploadProcessParametersRequest *message, + uint8_t *out); +size_t upload_process_parameters_request__pack_to_buffer + (const UploadProcessParametersRequest *message, + ProtobufCBuffer *buffer); +UploadProcessParametersRequest * + upload_process_parameters_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void upload_process_parameters_request__free_unpacked + (UploadProcessParametersRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*UploadProcessParametersRequest_Closure) + (const UploadProcessParametersRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor upload_process_parameters_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_UploadProcessParametersRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersResponse.pb-c.c new file mode 100644 index 000000000..2503df80d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadProcessParametersResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "UploadProcessParametersResponse.pb-c.h" +void upload_process_parameters_response__init + (UploadProcessParametersResponse *message) +{ + static const UploadProcessParametersResponse init_value = UPLOAD_PROCESS_PARAMETERS_RESPONSE__INIT; + *message = init_value; +} +size_t upload_process_parameters_response__get_packed_size + (const UploadProcessParametersResponse *message) +{ + assert(message->base.descriptor == &upload_process_parameters_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t upload_process_parameters_response__pack + (const UploadProcessParametersResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &upload_process_parameters_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t upload_process_parameters_response__pack_to_buffer + (const UploadProcessParametersResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &upload_process_parameters_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +UploadProcessParametersResponse * + upload_process_parameters_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (UploadProcessParametersResponse *) + protobuf_c_message_unpack (&upload_process_parameters_response__descriptor, + allocator, len, data); +} +void upload_process_parameters_response__free_unpacked + (UploadProcessParametersResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &upload_process_parameters_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define upload_process_parameters_response__field_descriptors NULL +#define upload_process_parameters_response__field_indices_by_name NULL +#define upload_process_parameters_response__number_ranges NULL +const ProtobufCMessageDescriptor upload_process_parameters_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "UploadProcessParametersResponse", + "UploadProcessParametersResponse", + "UploadProcessParametersResponse", + "", + sizeof(UploadProcessParametersResponse), + 0, + upload_process_parameters_response__field_descriptors, + upload_process_parameters_response__field_indices_by_name, + 0, upload_process_parameters_response__number_ranges, + (ProtobufCMessageInit) upload_process_parameters_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersResponse.pb-c.h new file mode 100644 index 000000000..4089217d2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Printing/UploadProcessParametersResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: UploadProcessParametersResponse.proto */ + +#ifndef PROTOBUF_C_UploadProcessParametersResponse_2eproto__INCLUDED +#define PROTOBUF_C_UploadProcessParametersResponse_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 _UploadProcessParametersResponse UploadProcessParametersResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _UploadProcessParametersResponse +{ + ProtobufCMessage base; +}; +#define UPLOAD_PROCESS_PARAMETERS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&upload_process_parameters_response__descriptor) \ + } + + +/* UploadProcessParametersResponse methods */ +void upload_process_parameters_response__init + (UploadProcessParametersResponse *message); +size_t upload_process_parameters_response__get_packed_size + (const UploadProcessParametersResponse *message); +size_t upload_process_parameters_response__pack + (const UploadProcessParametersResponse *message, + uint8_t *out); +size_t upload_process_parameters_response__pack_to_buffer + (const UploadProcessParametersResponse *message, + ProtobufCBuffer *buffer); +UploadProcessParametersResponse * + upload_process_parameters_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void upload_process_parameters_response__free_unpacked + (UploadProcessParametersResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*UploadProcessParametersResponse_Closure) + (const UploadProcessParametersResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor upload_process_parameters_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_UploadProcessParametersResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteRequest.pb-c.c new file mode 100644 index 000000000..69466269b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteRequest.pb-c.c @@ -0,0 +1,235 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubF3Gpo01WriteRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubF3Gpo01WriteRequest.pb-c.h" +void stub_f3_gpo01_write_request__init + (StubF3Gpo01WriteRequest *message) +{ + static const StubF3Gpo01WriteRequest init_value = STUB_F3_GPO01_WRITE_REQUEST__INIT; + *message = init_value; +} +size_t stub_f3_gpo01_write_request__get_packed_size + (const StubF3Gpo01WriteRequest *message) +{ + assert(message->base.descriptor == &stub_f3_gpo01_write_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_f3_gpo01_write_request__pack + (const StubF3Gpo01WriteRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_f3_gpo01_write_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_f3_gpo01_write_request__pack_to_buffer + (const StubF3Gpo01WriteRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_f3_gpo01_write_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubF3Gpo01WriteRequest * + stub_f3_gpo01_write_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubF3Gpo01WriteRequest *) + protobuf_c_message_unpack (&stub_f3_gpo01_write_request__descriptor, + allocator, len, data); +} +void stub_f3_gpo01_write_request__free_unpacked + (StubF3Gpo01WriteRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_f3_gpo01_write_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_f3_gpo01_write_request__field_descriptors[12] = +{ + { + "F3_GPO_LED4", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_f3_gpo_led4), + offsetof(StubF3Gpo01WriteRequest, f3_gpo_led4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Write_F3_GPO_LED4", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_write_f3_gpo_led4), + offsetof(StubF3Gpo01WriteRequest, write_f3_gpo_led4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "F3_GPO_LED3", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_f3_gpo_led3), + offsetof(StubF3Gpo01WriteRequest, f3_gpo_led3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Write_F3_GPO_LED3", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_write_f3_gpo_led3), + offsetof(StubF3Gpo01WriteRequest, write_f3_gpo_led3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "F3_GPO_LED2", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_f3_gpo_led2), + offsetof(StubF3Gpo01WriteRequest, f3_gpo_led2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Write_F3_GPO_LED2", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_write_f3_gpo_led2), + offsetof(StubF3Gpo01WriteRequest, write_f3_gpo_led2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "F3_GPO_LED1", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_f3_gpo_led1), + offsetof(StubF3Gpo01WriteRequest, f3_gpo_led1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Write_F3_GPO_LED1", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_write_f3_gpo_led1), + offsetof(StubF3Gpo01WriteRequest, write_f3_gpo_led1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "F3_GPO_EXTWINDER_SSR11_CTRL", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_f3_gpo_extwinder_ssr11_ctrl), + offsetof(StubF3Gpo01WriteRequest, f3_gpo_extwinder_ssr11_ctrl), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Write_F3_GPO_EXTWINDER_SSR11_CTRL", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_write_f3_gpo_extwinder_ssr11_ctrl), + offsetof(StubF3Gpo01WriteRequest, write_f3_gpo_extwinder_ssr11_ctrl), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "F3_GPO_BUZZER", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_f3_gpo_buzzer), + offsetof(StubF3Gpo01WriteRequest, f3_gpo_buzzer), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Write_F3_GPO_BUZZER", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubF3Gpo01WriteRequest, has_write_f3_gpo_buzzer), + offsetof(StubF3Gpo01WriteRequest, write_f3_gpo_buzzer), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_f3_gpo01_write_request__field_indices_by_name[] = { + 10, /* field[10] = F3_GPO_BUZZER */ + 8, /* field[8] = F3_GPO_EXTWINDER_SSR11_CTRL */ + 6, /* field[6] = F3_GPO_LED1 */ + 4, /* field[4] = F3_GPO_LED2 */ + 2, /* field[2] = F3_GPO_LED3 */ + 0, /* field[0] = F3_GPO_LED4 */ + 11, /* field[11] = Write_F3_GPO_BUZZER */ + 9, /* field[9] = Write_F3_GPO_EXTWINDER_SSR11_CTRL */ + 7, /* field[7] = Write_F3_GPO_LED1 */ + 5, /* field[5] = Write_F3_GPO_LED2 */ + 3, /* field[3] = Write_F3_GPO_LED3 */ + 1, /* field[1] = Write_F3_GPO_LED4 */ +}; +static const ProtobufCIntRange stub_f3_gpo01_write_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 12 } +}; +const ProtobufCMessageDescriptor stub_f3_gpo01_write_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubF3Gpo01WriteRequest", + "StubF3Gpo01WriteRequest", + "StubF3Gpo01WriteRequest", + "", + sizeof(StubF3Gpo01WriteRequest), + 12, + stub_f3_gpo01_write_request__field_descriptors, + stub_f3_gpo01_write_request__field_indices_by_name, + 1, stub_f3_gpo01_write_request__number_ranges, + (ProtobufCMessageInit) stub_f3_gpo01_write_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteRequest.pb-c.h new file mode 100644 index 000000000..1dec7e478 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteRequest.pb-c.h @@ -0,0 +1,100 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubF3Gpo01WriteRequest.proto */ + +#ifndef PROTOBUF_C_StubF3Gpo01WriteRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubF3Gpo01WriteRequest_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 _StubF3Gpo01WriteRequest StubF3Gpo01WriteRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubF3Gpo01WriteRequest +{ + ProtobufCMessage base; + /* + *value + */ + protobuf_c_boolean has_f3_gpo_led4; + protobuf_c_boolean f3_gpo_led4; + /* + *write + */ + protobuf_c_boolean has_write_f3_gpo_led4; + protobuf_c_boolean write_f3_gpo_led4; + protobuf_c_boolean has_f3_gpo_led3; + protobuf_c_boolean f3_gpo_led3; + protobuf_c_boolean has_write_f3_gpo_led3; + protobuf_c_boolean write_f3_gpo_led3; + protobuf_c_boolean has_f3_gpo_led2; + protobuf_c_boolean f3_gpo_led2; + protobuf_c_boolean has_write_f3_gpo_led2; + protobuf_c_boolean write_f3_gpo_led2; + protobuf_c_boolean has_f3_gpo_led1; + protobuf_c_boolean f3_gpo_led1; + protobuf_c_boolean has_write_f3_gpo_led1; + protobuf_c_boolean write_f3_gpo_led1; + protobuf_c_boolean has_f3_gpo_extwinder_ssr11_ctrl; + protobuf_c_boolean f3_gpo_extwinder_ssr11_ctrl; + protobuf_c_boolean has_write_f3_gpo_extwinder_ssr11_ctrl; + protobuf_c_boolean write_f3_gpo_extwinder_ssr11_ctrl; + protobuf_c_boolean has_f3_gpo_buzzer; + protobuf_c_boolean f3_gpo_buzzer; + protobuf_c_boolean has_write_f3_gpo_buzzer; + protobuf_c_boolean write_f3_gpo_buzzer; +}; +#define STUB_F3_GPO01_WRITE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_f3_gpo01_write_request__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubF3Gpo01WriteRequest methods */ +void stub_f3_gpo01_write_request__init + (StubF3Gpo01WriteRequest *message); +size_t stub_f3_gpo01_write_request__get_packed_size + (const StubF3Gpo01WriteRequest *message); +size_t stub_f3_gpo01_write_request__pack + (const StubF3Gpo01WriteRequest *message, + uint8_t *out); +size_t stub_f3_gpo01_write_request__pack_to_buffer + (const StubF3Gpo01WriteRequest *message, + ProtobufCBuffer *buffer); +StubF3Gpo01WriteRequest * + stub_f3_gpo01_write_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_f3_gpo01_write_request__free_unpacked + (StubF3Gpo01WriteRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubF3Gpo01WriteRequest_Closure) + (const StubF3Gpo01WriteRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_f3_gpo01_write_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubF3Gpo01WriteRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteResponse.pb-c.c new file mode 100644 index 000000000..4b852987e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubF3Gpo01WriteResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubF3Gpo01WriteResponse.pb-c.h" +void stub_f3_gpo01_write_response__init + (StubF3Gpo01WriteResponse *message) +{ + static const StubF3Gpo01WriteResponse init_value = STUB_F3_GPO01_WRITE_RESPONSE__INIT; + *message = init_value; +} +size_t stub_f3_gpo01_write_response__get_packed_size + (const StubF3Gpo01WriteResponse *message) +{ + assert(message->base.descriptor == &stub_f3_gpo01_write_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_f3_gpo01_write_response__pack + (const StubF3Gpo01WriteResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_f3_gpo01_write_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_f3_gpo01_write_response__pack_to_buffer + (const StubF3Gpo01WriteResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_f3_gpo01_write_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubF3Gpo01WriteResponse * + stub_f3_gpo01_write_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubF3Gpo01WriteResponse *) + protobuf_c_message_unpack (&stub_f3_gpo01_write_response__descriptor, + allocator, len, data); +} +void stub_f3_gpo01_write_response__free_unpacked + (StubF3Gpo01WriteResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_f3_gpo01_write_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_f3_gpo01_write_response__field_descriptors[2] = +{ + { + "Status", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubF3Gpo01WriteResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubF3Gpo01WriteResponse, has_statusword), + offsetof(StubF3Gpo01WriteResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_f3_gpo01_write_response__field_indices_by_name[] = { + 0, /* field[0] = Status */ + 1, /* field[1] = StatusWord */ +}; +static const ProtobufCIntRange stub_f3_gpo01_write_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_f3_gpo01_write_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubF3Gpo01WriteResponse", + "StubF3Gpo01WriteResponse", + "StubF3Gpo01WriteResponse", + "", + sizeof(StubF3Gpo01WriteResponse), + 2, + stub_f3_gpo01_write_response__field_descriptors, + stub_f3_gpo01_write_response__field_indices_by_name, + 1, stub_f3_gpo01_write_response__number_ranges, + (ProtobufCMessageInit) stub_f3_gpo01_write_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteResponse.pb-c.h new file mode 100644 index 000000000..c245016a4 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubF3Gpo01WriteResponse.pb-c.h @@ -0,0 +1,79 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubF3Gpo01WriteResponse.proto */ + +#ifndef PROTOBUF_C_StubF3Gpo01WriteResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubF3Gpo01WriteResponse_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 _StubF3Gpo01WriteResponse StubF3Gpo01WriteResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubF3Gpo01WriteResponse +{ + ProtobufCMessage base; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_F3_GPO01_WRITE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_f3_gpo01_write_response__descriptor) \ + , NULL, 0, 0 } + + +/* StubF3Gpo01WriteResponse methods */ +void stub_f3_gpo01_write_response__init + (StubF3Gpo01WriteResponse *message); +size_t stub_f3_gpo01_write_response__get_packed_size + (const StubF3Gpo01WriteResponse *message); +size_t stub_f3_gpo01_write_response__pack + (const StubF3Gpo01WriteResponse *message, + uint8_t *out); +size_t stub_f3_gpo01_write_response__pack_to_buffer + (const StubF3Gpo01WriteResponse *message, + ProtobufCBuffer *buffer); +StubF3Gpo01WriteResponse * + stub_f3_gpo01_write_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_f3_gpo01_write_response__free_unpacked + (StubF3Gpo01WriteResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubF3Gpo01WriteResponse_Closure) + (const StubF3Gpo01WriteResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_f3_gpo01_write_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubF3Gpo01WriteResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegRequest.pb-c.c new file mode 100644 index 000000000..60519632e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadBackRegRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubFPGAReadBackRegRequest.pb-c.h" +void stub_fpgaread_back_reg_request__init + (StubFPGAReadBackRegRequest *message) +{ + static const StubFPGAReadBackRegRequest init_value = STUB_FPGAREAD_BACK_REG_REQUEST__INIT; + *message = init_value; +} +size_t stub_fpgaread_back_reg_request__get_packed_size + (const StubFPGAReadBackRegRequest *message) +{ + assert(message->base.descriptor == &stub_fpgaread_back_reg_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_fpgaread_back_reg_request__pack + (const StubFPGAReadBackRegRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_fpgaread_back_reg_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_fpgaread_back_reg_request__pack_to_buffer + (const StubFPGAReadBackRegRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_fpgaread_back_reg_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubFPGAReadBackRegRequest * + stub_fpgaread_back_reg_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubFPGAReadBackRegRequest *) + protobuf_c_message_unpack (&stub_fpgaread_back_reg_request__descriptor, + allocator, len, data); +} +void stub_fpgaread_back_reg_request__free_unpacked + (StubFPGAReadBackRegRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_fpgaread_back_reg_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_fpgaread_back_reg_request__field_descriptors[2] = +{ + { + "FPGAId", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadBackRegRequest, has_fpgaid), + offsetof(StubFPGAReadBackRegRequest, fpgaid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Value", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadBackRegRequest, has_value), + offsetof(StubFPGAReadBackRegRequest, value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_fpgaread_back_reg_request__field_indices_by_name[] = { + 0, /* field[0] = FPGAId */ + 1, /* field[1] = Value */ +}; +static const ProtobufCIntRange stub_fpgaread_back_reg_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_fpgaread_back_reg_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubFPGAReadBackRegRequest", + "StubFPGAReadBackRegRequest", + "StubFPGAReadBackRegRequest", + "", + sizeof(StubFPGAReadBackRegRequest), + 2, + stub_fpgaread_back_reg_request__field_descriptors, + stub_fpgaread_back_reg_request__field_indices_by_name, + 1, stub_fpgaread_back_reg_request__number_ranges, + (ProtobufCMessageInit) stub_fpgaread_back_reg_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegRequest.pb-c.h new file mode 100644 index 000000000..e4ae69f1f --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegRequest.pb-c.h @@ -0,0 +1,80 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadBackRegRequest.proto */ + +#ifndef PROTOBUF_C_StubFPGAReadBackRegRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubFPGAReadBackRegRequest_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 _StubFPGAReadBackRegRequest StubFPGAReadBackRegRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubFPGAReadBackRegRequest +{ + ProtobufCMessage base; + /* + * 0..2 + */ + protobuf_c_boolean has_fpgaid; + uint32_t fpgaid; + /* + * 16 bit + */ + protobuf_c_boolean has_value; + uint32_t value; +}; +#define STUB_FPGAREAD_BACK_REG_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_fpgaread_back_reg_request__descriptor) \ + , 0, 0, 0, 0 } + + +/* StubFPGAReadBackRegRequest methods */ +void stub_fpgaread_back_reg_request__init + (StubFPGAReadBackRegRequest *message); +size_t stub_fpgaread_back_reg_request__get_packed_size + (const StubFPGAReadBackRegRequest *message); +size_t stub_fpgaread_back_reg_request__pack + (const StubFPGAReadBackRegRequest *message, + uint8_t *out); +size_t stub_fpgaread_back_reg_request__pack_to_buffer + (const StubFPGAReadBackRegRequest *message, + ProtobufCBuffer *buffer); +StubFPGAReadBackRegRequest * + stub_fpgaread_back_reg_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_fpgaread_back_reg_request__free_unpacked + (StubFPGAReadBackRegRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubFPGAReadBackRegRequest_Closure) + (const StubFPGAReadBackRegRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_fpgaread_back_reg_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubFPGAReadBackRegRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegResponse.pb-c.c new file mode 100644 index 000000000..e222b3b24 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegResponse.pb-c.c @@ -0,0 +1,132 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadBackRegResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubFPGAReadBackRegResponse.pb-c.h" +void stub_fpgaread_back_reg_response__init + (StubFPGAReadBackRegResponse *message) +{ + static const StubFPGAReadBackRegResponse init_value = STUB_FPGAREAD_BACK_REG_RESPONSE__INIT; + *message = init_value; +} +size_t stub_fpgaread_back_reg_response__get_packed_size + (const StubFPGAReadBackRegResponse *message) +{ + assert(message->base.descriptor == &stub_fpgaread_back_reg_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_fpgaread_back_reg_response__pack + (const StubFPGAReadBackRegResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_fpgaread_back_reg_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_fpgaread_back_reg_response__pack_to_buffer + (const StubFPGAReadBackRegResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_fpgaread_back_reg_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubFPGAReadBackRegResponse * + stub_fpgaread_back_reg_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubFPGAReadBackRegResponse *) + protobuf_c_message_unpack (&stub_fpgaread_back_reg_response__descriptor, + allocator, len, data); +} +void stub_fpgaread_back_reg_response__free_unpacked + (StubFPGAReadBackRegResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_fpgaread_back_reg_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_fpgaread_back_reg_response__field_descriptors[4] = +{ + { + "FPGAId", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadBackRegResponse, has_fpgaid), + offsetof(StubFPGAReadBackRegResponse, fpgaid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ReadBackValue", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadBackRegResponse, has_readbackvalue), + offsetof(StubFPGAReadBackRegResponse, readbackvalue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubFPGAReadBackRegResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadBackRegResponse, has_statusword), + offsetof(StubFPGAReadBackRegResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_fpgaread_back_reg_response__field_indices_by_name[] = { + 0, /* field[0] = FPGAId */ + 1, /* field[1] = ReadBackValue */ + 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ +}; +static const ProtobufCIntRange stub_fpgaread_back_reg_response__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 4, 2 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor stub_fpgaread_back_reg_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubFPGAReadBackRegResponse", + "StubFPGAReadBackRegResponse", + "StubFPGAReadBackRegResponse", + "", + sizeof(StubFPGAReadBackRegResponse), + 4, + stub_fpgaread_back_reg_response__field_descriptors, + stub_fpgaread_back_reg_response__field_indices_by_name, + 2, stub_fpgaread_back_reg_response__number_ranges, + (ProtobufCMessageInit) stub_fpgaread_back_reg_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegResponse.pb-c.h new file mode 100644 index 000000000..234017433 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadBackRegResponse.pb-c.h @@ -0,0 +1,89 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadBackRegResponse.proto */ + +#ifndef PROTOBUF_C_StubFPGAReadBackRegResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubFPGAReadBackRegResponse_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 _StubFPGAReadBackRegResponse StubFPGAReadBackRegResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubFPGAReadBackRegResponse +{ + ProtobufCMessage base; + /* + * 0..2 + */ + protobuf_c_boolean has_fpgaid; + uint32_t fpgaid; + /* + * 16 bit + */ + protobuf_c_boolean has_readbackvalue; + uint32_t readbackvalue; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_FPGAREAD_BACK_REG_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_fpgaread_back_reg_response__descriptor) \ + , 0, 0, 0, 0, NULL, 0, 0 } + + +/* StubFPGAReadBackRegResponse methods */ +void stub_fpgaread_back_reg_response__init + (StubFPGAReadBackRegResponse *message); +size_t stub_fpgaread_back_reg_response__get_packed_size + (const StubFPGAReadBackRegResponse *message); +size_t stub_fpgaread_back_reg_response__pack + (const StubFPGAReadBackRegResponse *message, + uint8_t *out); +size_t stub_fpgaread_back_reg_response__pack_to_buffer + (const StubFPGAReadBackRegResponse *message, + ProtobufCBuffer *buffer); +StubFPGAReadBackRegResponse * + stub_fpgaread_back_reg_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_fpgaread_back_reg_response__free_unpacked + (StubFPGAReadBackRegResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubFPGAReadBackRegResponse_Closure) + (const StubFPGAReadBackRegResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_fpgaread_back_reg_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubFPGAReadBackRegResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionRequest.pb-c.c new file mode 100644 index 000000000..5381c462a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadVersionRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubFPGAReadVersionRequest.pb-c.h" +void stub_fpgaread_version_request__init + (StubFPGAReadVersionRequest *message) +{ + static const StubFPGAReadVersionRequest init_value = STUB_FPGAREAD_VERSION_REQUEST__INIT; + *message = init_value; +} +size_t stub_fpgaread_version_request__get_packed_size + (const StubFPGAReadVersionRequest *message) +{ + assert(message->base.descriptor == &stub_fpgaread_version_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_fpgaread_version_request__pack + (const StubFPGAReadVersionRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_fpgaread_version_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_fpgaread_version_request__pack_to_buffer + (const StubFPGAReadVersionRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_fpgaread_version_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubFPGAReadVersionRequest * + stub_fpgaread_version_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubFPGAReadVersionRequest *) + protobuf_c_message_unpack (&stub_fpgaread_version_request__descriptor, + allocator, len, data); +} +void stub_fpgaread_version_request__free_unpacked + (StubFPGAReadVersionRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_fpgaread_version_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_fpgaread_version_request__field_descriptors[1] = +{ + { + "FPGAId", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadVersionRequest, has_fpgaid), + offsetof(StubFPGAReadVersionRequest, fpgaid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_fpgaread_version_request__field_indices_by_name[] = { + 0, /* field[0] = FPGAId */ +}; +static const ProtobufCIntRange stub_fpgaread_version_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor stub_fpgaread_version_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubFPGAReadVersionRequest", + "StubFPGAReadVersionRequest", + "StubFPGAReadVersionRequest", + "", + sizeof(StubFPGAReadVersionRequest), + 1, + stub_fpgaread_version_request__field_descriptors, + stub_fpgaread_version_request__field_indices_by_name, + 1, stub_fpgaread_version_request__number_ranges, + (ProtobufCMessageInit) stub_fpgaread_version_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionRequest.pb-c.h new file mode 100644 index 000000000..54db77bad --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionRequest.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadVersionRequest.proto */ + +#ifndef PROTOBUF_C_StubFPGAReadVersionRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubFPGAReadVersionRequest_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 _StubFPGAReadVersionRequest StubFPGAReadVersionRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubFPGAReadVersionRequest +{ + ProtobufCMessage base; + /* + * 0..2 + */ + protobuf_c_boolean has_fpgaid; + uint32_t fpgaid; +}; +#define STUB_FPGAREAD_VERSION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_fpgaread_version_request__descriptor) \ + , 0, 0 } + + +/* StubFPGAReadVersionRequest methods */ +void stub_fpgaread_version_request__init + (StubFPGAReadVersionRequest *message); +size_t stub_fpgaread_version_request__get_packed_size + (const StubFPGAReadVersionRequest *message); +size_t stub_fpgaread_version_request__pack + (const StubFPGAReadVersionRequest *message, + uint8_t *out); +size_t stub_fpgaread_version_request__pack_to_buffer + (const StubFPGAReadVersionRequest *message, + ProtobufCBuffer *buffer); +StubFPGAReadVersionRequest * + stub_fpgaread_version_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_fpgaread_version_request__free_unpacked + (StubFPGAReadVersionRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubFPGAReadVersionRequest_Closure) + (const StubFPGAReadVersionRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_fpgaread_version_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubFPGAReadVersionRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionResponse.pb-c.c new file mode 100644 index 000000000..79c25d9a5 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionResponse.pb-c.c @@ -0,0 +1,170 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadVersionResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubFPGAReadVersionResponse.pb-c.h" +void stub_fpgaread_version_response__init + (StubFPGAReadVersionResponse *message) +{ + static const StubFPGAReadVersionResponse init_value = STUB_FPGAREAD_VERSION_RESPONSE__INIT; + *message = init_value; +} +size_t stub_fpgaread_version_response__get_packed_size + (const StubFPGAReadVersionResponse *message) +{ + assert(message->base.descriptor == &stub_fpgaread_version_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_fpgaread_version_response__pack + (const StubFPGAReadVersionResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_fpgaread_version_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_fpgaread_version_response__pack_to_buffer + (const StubFPGAReadVersionResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_fpgaread_version_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubFPGAReadVersionResponse * + stub_fpgaread_version_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubFPGAReadVersionResponse *) + protobuf_c_message_unpack (&stub_fpgaread_version_response__descriptor, + allocator, len, data); +} +void stub_fpgaread_version_response__free_unpacked + (StubFPGAReadVersionResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_fpgaread_version_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_fpgaread_version_response__field_descriptors[7] = +{ + { + "FPGAId", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadVersionResponse, has_fpgaid), + offsetof(StubFPGAReadVersionResponse, fpgaid), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Day", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadVersionResponse, has_day), + offsetof(StubFPGAReadVersionResponse, day), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Month", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadVersionResponse, has_month), + offsetof(StubFPGAReadVersionResponse, month), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Year", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadVersionResponse, has_year), + offsetof(StubFPGAReadVersionResponse, year), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Ver_num", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadVersionResponse, has_ver_num), + offsetof(StubFPGAReadVersionResponse, ver_num), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubFPGAReadVersionResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubFPGAReadVersionResponse, has_statusword), + offsetof(StubFPGAReadVersionResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_fpgaread_version_response__field_indices_by_name[] = { + 1, /* field[1] = Day */ + 0, /* field[0] = FPGAId */ + 2, /* field[2] = Month */ + 5, /* field[5] = Status */ + 6, /* field[6] = StatusWord */ + 4, /* field[4] = Ver_num */ + 3, /* field[3] = Year */ +}; +static const ProtobufCIntRange stub_fpgaread_version_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor stub_fpgaread_version_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubFPGAReadVersionResponse", + "StubFPGAReadVersionResponse", + "StubFPGAReadVersionResponse", + "", + sizeof(StubFPGAReadVersionResponse), + 7, + stub_fpgaread_version_response__field_descriptors, + stub_fpgaread_version_response__field_indices_by_name, + 1, stub_fpgaread_version_response__number_ranges, + (ProtobufCMessageInit) stub_fpgaread_version_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionResponse.pb-c.h new file mode 100644 index 000000000..360f7faac --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubFPGAReadVersionResponse.pb-c.h @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubFPGAReadVersionResponse.proto */ + +#ifndef PROTOBUF_C_StubFPGAReadVersionResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubFPGAReadVersionResponse_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 _StubFPGAReadVersionResponse StubFPGAReadVersionResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubFPGAReadVersionResponse +{ + ProtobufCMessage base; + /* + * 0..2 + */ + protobuf_c_boolean has_fpgaid; + uint32_t fpgaid; + protobuf_c_boolean has_day; + uint32_t day; + protobuf_c_boolean has_month; + uint32_t month; + protobuf_c_boolean has_year; + uint32_t year; + protobuf_c_boolean has_ver_num; + uint32_t ver_num; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_FPGAREAD_VERSION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_fpgaread_version_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0 } + + +/* StubFPGAReadVersionResponse methods */ +void stub_fpgaread_version_response__init + (StubFPGAReadVersionResponse *message); +size_t stub_fpgaread_version_response__get_packed_size + (const StubFPGAReadVersionResponse *message); +size_t stub_fpgaread_version_response__pack + (const StubFPGAReadVersionResponse *message, + uint8_t *out); +size_t stub_fpgaread_version_response__pack_to_buffer + (const StubFPGAReadVersionResponse *message, + ProtobufCBuffer *buffer); +StubFPGAReadVersionResponse * + stub_fpgaread_version_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_fpgaread_version_response__free_unpacked + (StubFPGAReadVersionResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubFPGAReadVersionResponse_Closure) + (const StubFPGAReadVersionResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_fpgaread_version_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubFPGAReadVersionResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionRequest.pb-c.c new file mode 100644 index 000000000..fba567238 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubHWVersionRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubHWVersionRequest.pb-c.h" +void stub_hwversion_request__init + (StubHWVersionRequest *message) +{ + static const StubHWVersionRequest init_value = STUB_HWVERSION_REQUEST__INIT; + *message = init_value; +} +size_t stub_hwversion_request__get_packed_size + (const StubHWVersionRequest *message) +{ + assert(message->base.descriptor == &stub_hwversion_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_hwversion_request__pack + (const StubHWVersionRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_hwversion_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_hwversion_request__pack_to_buffer + (const StubHWVersionRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_hwversion_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubHWVersionRequest * + stub_hwversion_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubHWVersionRequest *) + protobuf_c_message_unpack (&stub_hwversion_request__descriptor, + allocator, len, data); +} +void stub_hwversion_request__free_unpacked + (StubHWVersionRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_hwversion_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define stub_hwversion_request__field_descriptors NULL +#define stub_hwversion_request__field_indices_by_name NULL +#define stub_hwversion_request__number_ranges NULL +const ProtobufCMessageDescriptor stub_hwversion_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubHWVersionRequest", + "StubHWVersionRequest", + "StubHWVersionRequest", + "", + sizeof(StubHWVersionRequest), + 0, + stub_hwversion_request__field_descriptors, + stub_hwversion_request__field_indices_by_name, + 0, stub_hwversion_request__number_ranges, + (ProtobufCMessageInit) stub_hwversion_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionRequest.pb-c.h new file mode 100644 index 000000000..017aa8cd2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubHWVersionRequest.proto */ + +#ifndef PROTOBUF_C_StubHWVersionRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubHWVersionRequest_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 _StubHWVersionRequest StubHWVersionRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubHWVersionRequest +{ + ProtobufCMessage base; +}; +#define STUB_HWVERSION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_hwversion_request__descriptor) \ + } + + +/* StubHWVersionRequest methods */ +void stub_hwversion_request__init + (StubHWVersionRequest *message); +size_t stub_hwversion_request__get_packed_size + (const StubHWVersionRequest *message); +size_t stub_hwversion_request__pack + (const StubHWVersionRequest *message, + uint8_t *out); +size_t stub_hwversion_request__pack_to_buffer + (const StubHWVersionRequest *message, + ProtobufCBuffer *buffer); +StubHWVersionRequest * + stub_hwversion_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_hwversion_request__free_unpacked + (StubHWVersionRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubHWVersionRequest_Closure) + (const StubHWVersionRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_hwversion_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubHWVersionRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionResponse.pb-c.c new file mode 100644 index 000000000..4aec291a0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionResponse.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubHWVersionResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubHWVersionResponse.pb-c.h" +void stub_hwversion_response__init + (StubHWVersionResponse *message) +{ + static const StubHWVersionResponse init_value = STUB_HWVERSION_RESPONSE__INIT; + *message = init_value; +} +size_t stub_hwversion_response__get_packed_size + (const StubHWVersionResponse *message) +{ + assert(message->base.descriptor == &stub_hwversion_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_hwversion_response__pack + (const StubHWVersionResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_hwversion_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_hwversion_response__pack_to_buffer + (const StubHWVersionResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_hwversion_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubHWVersionResponse * + stub_hwversion_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubHWVersionResponse *) + protobuf_c_message_unpack (&stub_hwversion_response__descriptor, + allocator, len, data); +} +void stub_hwversion_response__free_unpacked + (StubHWVersionResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_hwversion_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_hwversion_response__field_descriptors[4] = +{ + { + "BRD_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubHWVersionResponse, has_brd_id), + offsetof(StubHWVersionResponse, brd_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ASSY_ID", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubHWVersionResponse, has_assy_id), + offsetof(StubHWVersionResponse, assy_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubHWVersionResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubHWVersionResponse, has_statusword), + offsetof(StubHWVersionResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_hwversion_response__field_indices_by_name[] = { + 1, /* field[1] = ASSY_ID */ + 0, /* field[0] = BRD_ID */ + 2, /* field[2] = Status */ + 3, /* field[3] = StatusWord */ +}; +static const ProtobufCIntRange stub_hwversion_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor stub_hwversion_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubHWVersionResponse", + "StubHWVersionResponse", + "StubHWVersionResponse", + "", + sizeof(StubHWVersionResponse), + 4, + stub_hwversion_response__field_descriptors, + stub_hwversion_response__field_indices_by_name, + 1, stub_hwversion_response__number_ranges, + (ProtobufCMessageInit) stub_hwversion_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionResponse.pb-c.h new file mode 100644 index 000000000..349ff1452 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubHWVersionResponse.pb-c.h @@ -0,0 +1,83 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubHWVersionResponse.proto */ + +#ifndef PROTOBUF_C_StubHWVersionResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubHWVersionResponse_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 _StubHWVersionResponse StubHWVersionResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubHWVersionResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_brd_id; + uint32_t brd_id; + protobuf_c_boolean has_assy_id; + uint32_t assy_id; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_HWVERSION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_hwversion_response__descriptor) \ + , 0, 0, 0, 0, NULL, 0, 0 } + + +/* StubHWVersionResponse methods */ +void stub_hwversion_response__init + (StubHWVersionResponse *message); +size_t stub_hwversion_response__get_packed_size + (const StubHWVersionResponse *message); +size_t stub_hwversion_response__pack + (const StubHWVersionResponse *message, + uint8_t *out); +size_t stub_hwversion_response__pack_to_buffer + (const StubHWVersionResponse *message, + ProtobufCBuffer *buffer); +StubHWVersionResponse * + stub_hwversion_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_hwversion_response__free_unpacked + (StubHWVersionResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubHWVersionResponse_Closure) + (const StubHWVersionResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_hwversion_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubHWVersionResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverRequest.pb-c.c new file mode 100644 index 000000000..3771b60a9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverRequest.pb-c.c @@ -0,0 +1,339 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubL6470DriverRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubL6470DriverRequest.pb-c.h" +void stub_l6470_driver_request__init + (StubL6470DriverRequest *message) +{ + static const StubL6470DriverRequest init_value = STUB_L6470_DRIVER_REQUEST__INIT; + *message = init_value; +} +size_t stub_l6470_driver_request__get_packed_size + (const StubL6470DriverRequest *message) +{ + assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_l6470_driver_request__pack + (const StubL6470DriverRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_l6470_driver_request__pack_to_buffer + (const StubL6470DriverRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubL6470DriverRequest * + stub_l6470_driver_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubL6470DriverRequest *) + protobuf_c_message_unpack (&stub_l6470_driver_request__descriptor, + allocator, len, data); +} +void stub_l6470_driver_request__free_unpacked + (StubL6470DriverRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_l6470_driver_request__field_descriptors[20] = +{ + { + "Run_Value", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_run_value), + offsetof(StubL6470DriverRequest, run_value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Mov_Value", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_mov_value), + offsetof(StubL6470DriverRequest, mov_value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Direction", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_direction), + offsetof(StubL6470DriverRequest, direction), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Time_2_Change_Direction", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_time_2_change_direction), + offsetof(StubL6470DriverRequest, time_2_change_direction), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Display_Tx_ON_LCD", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_display_tx_on_lcd), + offsetof(StubL6470DriverRequest, display_tx_on_lcd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Display_Rx_on_LCD", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_display_rx_on_lcd), + offsetof(StubL6470DriverRequest, display_rx_on_lcd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Init_MicroStep", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_init_microstep), + offsetof(StubL6470DriverRequest, init_microstep), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Init_Acc", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_init_acc), + offsetof(StubL6470DriverRequest, init_acc), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Init_Dec", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_init_dec), + offsetof(StubL6470DriverRequest, init_dec), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_1", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_testbool_1), + offsetof(StubL6470DriverRequest, testbool_1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_2", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_testbool_2), + offsetof(StubL6470DriverRequest, testbool_2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_3", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_testbool_3), + offsetof(StubL6470DriverRequest, testbool_3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_4", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_testbool_4), + offsetof(StubL6470DriverRequest, testbool_4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_5", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverRequest, has_testbool_5), + offsetof(StubL6470DriverRequest, testbool_5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_1", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_testuint32_1), + offsetof(StubL6470DriverRequest, testuint32_1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_2", + 16, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_testuint32_2), + offsetof(StubL6470DriverRequest, testuint32_2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_3", + 17, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_testuint32_3), + offsetof(StubL6470DriverRequest, testuint32_3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_4", + 18, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_testuint32_4), + offsetof(StubL6470DriverRequest, testuint32_4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_5", + 19, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_testuint32_5), + offsetof(StubL6470DriverRequest, testuint32_5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_6", + 20, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverRequest, has_testuint32_6), + offsetof(StubL6470DriverRequest, testuint32_6), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_l6470_driver_request__field_indices_by_name[] = { + 2, /* field[2] = Direction */ + 5, /* field[5] = Display_Rx_on_LCD */ + 4, /* field[4] = Display_Tx_ON_LCD */ + 7, /* field[7] = Init_Acc */ + 8, /* field[8] = Init_Dec */ + 6, /* field[6] = Init_MicroStep */ + 1, /* field[1] = Mov_Value */ + 0, /* field[0] = Run_Value */ + 9, /* field[9] = TestBool_1 */ + 10, /* field[10] = TestBool_2 */ + 11, /* field[11] = TestBool_3 */ + 12, /* field[12] = TestBool_4 */ + 13, /* field[13] = TestBool_5 */ + 14, /* field[14] = TestUint32_1 */ + 15, /* field[15] = TestUint32_2 */ + 16, /* field[16] = TestUint32_3 */ + 17, /* field[17] = TestUint32_4 */ + 18, /* field[18] = TestUint32_5 */ + 19, /* field[19] = TestUint32_6 */ + 3, /* field[3] = Time_2_Change_Direction */ +}; +static const ProtobufCIntRange stub_l6470_driver_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 20 } +}; +const ProtobufCMessageDescriptor stub_l6470_driver_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubL6470DriverRequest", + "StubL6470DriverRequest", + "StubL6470DriverRequest", + "", + sizeof(StubL6470DriverRequest), + 20, + stub_l6470_driver_request__field_descriptors, + stub_l6470_driver_request__field_indices_by_name, + 1, stub_l6470_driver_request__number_ranges, + (ProtobufCMessageInit) stub_l6470_driver_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverRequest.pb-c.h new file mode 100644 index 000000000..ee4e261c9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverRequest.pb-c.h @@ -0,0 +1,110 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubL6470DriverRequest.proto */ + +#ifndef PROTOBUF_C_StubL6470DriverRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubL6470DriverRequest_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 _StubL6470DriverRequest StubL6470DriverRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubL6470DriverRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_run_value; + uint32_t run_value; + protobuf_c_boolean has_mov_value; + uint32_t mov_value; + protobuf_c_boolean has_direction; + protobuf_c_boolean direction; + protobuf_c_boolean has_time_2_change_direction; + uint32_t time_2_change_direction; + protobuf_c_boolean has_display_tx_on_lcd; + protobuf_c_boolean display_tx_on_lcd; + protobuf_c_boolean has_display_rx_on_lcd; + protobuf_c_boolean display_rx_on_lcd; + protobuf_c_boolean has_init_microstep; + uint32_t init_microstep; + protobuf_c_boolean has_init_acc; + uint32_t init_acc; + protobuf_c_boolean has_init_dec; + uint32_t init_dec; + protobuf_c_boolean has_testbool_1; + protobuf_c_boolean testbool_1; + protobuf_c_boolean has_testbool_2; + protobuf_c_boolean testbool_2; + protobuf_c_boolean has_testbool_3; + protobuf_c_boolean testbool_3; + protobuf_c_boolean has_testbool_4; + protobuf_c_boolean testbool_4; + protobuf_c_boolean has_testbool_5; + protobuf_c_boolean testbool_5; + protobuf_c_boolean has_testuint32_1; + uint32_t testuint32_1; + protobuf_c_boolean has_testuint32_2; + uint32_t testuint32_2; + protobuf_c_boolean has_testuint32_3; + uint32_t testuint32_3; + protobuf_c_boolean has_testuint32_4; + uint32_t testuint32_4; + protobuf_c_boolean has_testuint32_5; + uint32_t testuint32_5; + protobuf_c_boolean has_testuint32_6; + uint32_t testuint32_6; +}; +#define STUB_L6470_DRIVER_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_l6470_driver_request__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubL6470DriverRequest methods */ +void stub_l6470_driver_request__init + (StubL6470DriverRequest *message); +size_t stub_l6470_driver_request__get_packed_size + (const StubL6470DriverRequest *message); +size_t stub_l6470_driver_request__pack + (const StubL6470DriverRequest *message, + uint8_t *out); +size_t stub_l6470_driver_request__pack_to_buffer + (const StubL6470DriverRequest *message, + ProtobufCBuffer *buffer); +StubL6470DriverRequest * + stub_l6470_driver_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_l6470_driver_request__free_unpacked + (StubL6470DriverRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubL6470DriverRequest_Closure) + (const StubL6470DriverRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_l6470_driver_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubL6470DriverRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverResponse.pb-c.c new file mode 100644 index 000000000..b129bb930 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverResponse.pb-c.c @@ -0,0 +1,274 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubL6470DriverResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubL6470DriverResponse.pb-c.h" +void stub_l6470_driver_response__init + (StubL6470DriverResponse *message) +{ + static const StubL6470DriverResponse init_value = STUB_L6470_DRIVER_RESPONSE__INIT; + *message = init_value; +} +size_t stub_l6470_driver_response__get_packed_size + (const StubL6470DriverResponse *message) +{ + assert(message->base.descriptor == &stub_l6470_driver_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_l6470_driver_response__pack + (const StubL6470DriverResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_l6470_driver_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_l6470_driver_response__pack_to_buffer + (const StubL6470DriverResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_l6470_driver_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubL6470DriverResponse * + stub_l6470_driver_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubL6470DriverResponse *) + protobuf_c_message_unpack (&stub_l6470_driver_response__descriptor, + allocator, len, data); +} +void stub_l6470_driver_response__free_unpacked + (StubL6470DriverResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_l6470_driver_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_l6470_driver_response__field_descriptors[15] = +{ + { + "Run_Value", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_run_value), + offsetof(StubL6470DriverResponse, run_value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Mov_Value", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_mov_value), + offsetof(StubL6470DriverResponse, mov_value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_1", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverResponse, has_testbool_1), + offsetof(StubL6470DriverResponse, testbool_1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_2", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverResponse, has_testbool_2), + offsetof(StubL6470DriverResponse, testbool_2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_3", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverResponse, has_testbool_3), + offsetof(StubL6470DriverResponse, testbool_3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_4", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverResponse, has_testbool_4), + offsetof(StubL6470DriverResponse, testbool_4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestBool_5", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubL6470DriverResponse, has_testbool_5), + offsetof(StubL6470DriverResponse, testbool_5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_1", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_testuint32_1), + offsetof(StubL6470DriverResponse, testuint32_1), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_2", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_testuint32_2), + offsetof(StubL6470DriverResponse, testuint32_2), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_3", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_testuint32_3), + offsetof(StubL6470DriverResponse, testuint32_3), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_4", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_testuint32_4), + offsetof(StubL6470DriverResponse, testuint32_4), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_5", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_testuint32_5), + offsetof(StubL6470DriverResponse, testuint32_5), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TestUint32_6", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_testuint32_6), + offsetof(StubL6470DriverResponse, testuint32_6), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubL6470DriverResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubL6470DriverResponse, has_statusword), + offsetof(StubL6470DriverResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_l6470_driver_response__field_indices_by_name[] = { + 1, /* field[1] = Mov_Value */ + 0, /* field[0] = Run_Value */ + 13, /* field[13] = Status */ + 14, /* field[14] = StatusWord */ + 2, /* field[2] = TestBool_1 */ + 3, /* field[3] = TestBool_2 */ + 4, /* field[4] = TestBool_3 */ + 5, /* field[5] = TestBool_4 */ + 6, /* field[6] = TestBool_5 */ + 7, /* field[7] = TestUint32_1 */ + 8, /* field[8] = TestUint32_2 */ + 9, /* field[9] = TestUint32_3 */ + 10, /* field[10] = TestUint32_4 */ + 11, /* field[11] = TestUint32_5 */ + 12, /* field[12] = TestUint32_6 */ +}; +static const ProtobufCIntRange stub_l6470_driver_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 15 } +}; +const ProtobufCMessageDescriptor stub_l6470_driver_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubL6470DriverResponse", + "StubL6470DriverResponse", + "StubL6470DriverResponse", + "", + sizeof(StubL6470DriverResponse), + 15, + stub_l6470_driver_response__field_descriptors, + stub_l6470_driver_response__field_indices_by_name, + 1, stub_l6470_driver_response__number_ranges, + (ProtobufCMessageInit) stub_l6470_driver_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverResponse.pb-c.h new file mode 100644 index 000000000..ca18da2a9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubL6470DriverResponse.pb-c.h @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubL6470DriverResponse.proto */ + +#ifndef PROTOBUF_C_StubL6470DriverResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubL6470DriverResponse_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 _StubL6470DriverResponse StubL6470DriverResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubL6470DriverResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_run_value; + uint32_t run_value; + protobuf_c_boolean has_mov_value; + uint32_t mov_value; + protobuf_c_boolean has_testbool_1; + protobuf_c_boolean testbool_1; + protobuf_c_boolean has_testbool_2; + protobuf_c_boolean testbool_2; + protobuf_c_boolean has_testbool_3; + protobuf_c_boolean testbool_3; + protobuf_c_boolean has_testbool_4; + protobuf_c_boolean testbool_4; + protobuf_c_boolean has_testbool_5; + protobuf_c_boolean testbool_5; + protobuf_c_boolean has_testuint32_1; + uint32_t testuint32_1; + protobuf_c_boolean has_testuint32_2; + uint32_t testuint32_2; + protobuf_c_boolean has_testuint32_3; + uint32_t testuint32_3; + protobuf_c_boolean has_testuint32_4; + uint32_t testuint32_4; + protobuf_c_boolean has_testuint32_5; + uint32_t testuint32_5; + protobuf_c_boolean has_testuint32_6; + uint32_t testuint32_6; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_L6470_DRIVER_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_l6470_driver_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0 } + + +/* StubL6470DriverResponse methods */ +void stub_l6470_driver_response__init + (StubL6470DriverResponse *message); +size_t stub_l6470_driver_response__get_packed_size + (const StubL6470DriverResponse *message); +size_t stub_l6470_driver_response__pack + (const StubL6470DriverResponse *message, + uint8_t *out); +size_t stub_l6470_driver_response__pack_to_buffer + (const StubL6470DriverResponse *message, + ProtobufCBuffer *buffer); +StubL6470DriverResponse * + stub_l6470_driver_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_l6470_driver_response__free_unpacked + (StubL6470DriverResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubL6470DriverResponse_Closure) + (const StubL6470DriverResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_l6470_driver_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubL6470DriverResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitRequest.pb-c.c new file mode 100644 index 000000000..0f01b16d4 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitRequest.pb-c.c @@ -0,0 +1,196 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorInitRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorInitRequest.pb-c.h" +void stub_motor_init_request__init + (StubMotorInitRequest *message) +{ + static const StubMotorInitRequest init_value = STUB_MOTOR_INIT_REQUEST__INIT; + *message = init_value; +} +size_t stub_motor_init_request__get_packed_size + (const StubMotorInitRequest *message) +{ + assert(message->base.descriptor == &stub_motor_init_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_init_request__pack + (const StubMotorInitRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_init_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_init_request__pack_to_buffer + (const StubMotorInitRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_init_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorInitRequest * + stub_motor_init_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorInitRequest *) + protobuf_c_message_unpack (&stub_motor_init_request__descriptor, + allocator, len, data); +} +void stub_motor_init_request__free_unpacked + (StubMotorInitRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_init_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_init_request__field_descriptors[9] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorInitRequest, has_motor_id), + offsetof(StubMotorInitRequest, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Micro_Steps", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorInitRequest, has_micro_steps), + offsetof(StubMotorInitRequest, micro_steps), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Set_Micro_Steps", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorInitRequest, has_set_micro_steps), + offsetof(StubMotorInitRequest, set_micro_steps), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ACC", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorInitRequest, has_acc), + offsetof(StubMotorInitRequest, acc), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Set_ACC", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorInitRequest, has_set_acc), + offsetof(StubMotorInitRequest, set_acc), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DEC", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorInitRequest, has_dec), + offsetof(StubMotorInitRequest, dec), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Set_Dec", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorInitRequest, has_set_dec), + offsetof(StubMotorInitRequest, set_dec), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Max_Speed", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorInitRequest, has_max_speed), + offsetof(StubMotorInitRequest, max_speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Set_Max_Speed", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorInitRequest, has_set_max_speed), + offsetof(StubMotorInitRequest, set_max_speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_init_request__field_indices_by_name[] = { + 3, /* field[3] = ACC */ + 5, /* field[5] = DEC */ + 7, /* field[7] = Max_Speed */ + 1, /* field[1] = Micro_Steps */ + 0, /* field[0] = Motor_ID */ + 4, /* field[4] = Set_ACC */ + 6, /* field[6] = Set_Dec */ + 8, /* field[8] = Set_Max_Speed */ + 2, /* field[2] = Set_Micro_Steps */ +}; +static const ProtobufCIntRange stub_motor_init_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 9 } +}; +const ProtobufCMessageDescriptor stub_motor_init_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorInitRequest", + "StubMotorInitRequest", + "StubMotorInitRequest", + "", + sizeof(StubMotorInitRequest), + 9, + stub_motor_init_request__field_descriptors, + stub_motor_init_request__field_indices_by_name, + 1, stub_motor_init_request__number_ranges, + (ProtobufCMessageInit) stub_motor_init_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitRequest.pb-c.h new file mode 100644 index 000000000..29b1f6036 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitRequest.pb-c.h @@ -0,0 +1,91 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorInitRequest.proto */ + +#ifndef PROTOBUF_C_StubMotorInitRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorInitRequest_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 _StubMotorInitRequest StubMotorInitRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorInitRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + /* + * 1/2/4/8/16/32/64/128 + */ + protobuf_c_boolean has_micro_steps; + uint32_t micro_steps; + protobuf_c_boolean has_set_micro_steps; + protobuf_c_boolean set_micro_steps; + protobuf_c_boolean has_acc; + uint32_t acc; + protobuf_c_boolean has_set_acc; + protobuf_c_boolean set_acc; + protobuf_c_boolean has_dec; + uint32_t dec; + protobuf_c_boolean has_set_dec; + protobuf_c_boolean set_dec; + protobuf_c_boolean has_max_speed; + uint32_t max_speed; + protobuf_c_boolean has_set_max_speed; + protobuf_c_boolean set_max_speed; +}; +#define STUB_MOTOR_INIT_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_init_request__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubMotorInitRequest methods */ +void stub_motor_init_request__init + (StubMotorInitRequest *message); +size_t stub_motor_init_request__get_packed_size + (const StubMotorInitRequest *message); +size_t stub_motor_init_request__pack + (const StubMotorInitRequest *message, + uint8_t *out); +size_t stub_motor_init_request__pack_to_buffer + (const StubMotorInitRequest *message, + ProtobufCBuffer *buffer); +StubMotorInitRequest * + stub_motor_init_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_init_request__free_unpacked + (StubMotorInitRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorInitRequest_Closure) + (const StubMotorInitRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_init_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorInitRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitResponse.pb-c.c new file mode 100644 index 000000000..17c436fa3 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorInitResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorInitResponse.pb-c.h" +void stub_motor_init_response__init + (StubMotorInitResponse *message) +{ + static const StubMotorInitResponse init_value = STUB_MOTOR_INIT_RESPONSE__INIT; + *message = init_value; +} +size_t stub_motor_init_response__get_packed_size + (const StubMotorInitResponse *message) +{ + assert(message->base.descriptor == &stub_motor_init_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_init_response__pack + (const StubMotorInitResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_init_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_init_response__pack_to_buffer + (const StubMotorInitResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_init_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorInitResponse * + stub_motor_init_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorInitResponse *) + protobuf_c_message_unpack (&stub_motor_init_response__descriptor, + allocator, len, data); +} +void stub_motor_init_response__free_unpacked + (StubMotorInitResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_init_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_init_response__field_descriptors[2] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorInitResponse, has_motor_id), + offsetof(StubMotorInitResponse, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorInitResponse, has_status), + offsetof(StubMotorInitResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_init_response__field_indices_by_name[] = { + 0, /* field[0] = Motor_ID */ + 1, /* field[1] = Status */ +}; +static const ProtobufCIntRange stub_motor_init_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_motor_init_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorInitResponse", + "StubMotorInitResponse", + "StubMotorInitResponse", + "", + sizeof(StubMotorInitResponse), + 2, + stub_motor_init_response__field_descriptors, + stub_motor_init_response__field_indices_by_name, + 1, stub_motor_init_response__number_ranges, + (ProtobufCMessageInit) stub_motor_init_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitResponse.pb-c.h new file mode 100644 index 000000000..c4f825818 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorInitResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorInitResponse.proto */ + +#ifndef PROTOBUF_C_StubMotorInitResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorInitResponse_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 _StubMotorInitResponse StubMotorInitResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorInitResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_status; + uint32_t status; +}; +#define STUB_MOTOR_INIT_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_init_response__descriptor) \ + , 0, 0, 0, 0 } + + +/* StubMotorInitResponse methods */ +void stub_motor_init_response__init + (StubMotorInitResponse *message); +size_t stub_motor_init_response__get_packed_size + (const StubMotorInitResponse *message); +size_t stub_motor_init_response__pack + (const StubMotorInitResponse *message, + uint8_t *out); +size_t stub_motor_init_response__pack_to_buffer + (const StubMotorInitResponse *message, + ProtobufCBuffer *buffer); +StubMotorInitResponse * + stub_motor_init_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_init_response__free_unpacked + (StubMotorInitResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorInitResponse_Closure) + (const StubMotorInitResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_init_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorInitResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovRequest.pb-c.c new file mode 100644 index 000000000..ed5152830 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovRequest.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorMovRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorMovRequest.pb-c.h" +void stub_motor_mov_request__init + (StubMotorMovRequest *message) +{ + static const StubMotorMovRequest init_value = STUB_MOTOR_MOV_REQUEST__INIT; + *message = init_value; +} +size_t stub_motor_mov_request__get_packed_size + (const StubMotorMovRequest *message) +{ + assert(message->base.descriptor == &stub_motor_mov_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_mov_request__pack + (const StubMotorMovRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_mov_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_mov_request__pack_to_buffer + (const StubMotorMovRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_mov_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorMovRequest * + stub_motor_mov_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorMovRequest *) + protobuf_c_message_unpack (&stub_motor_mov_request__descriptor, + allocator, len, data); +} +void stub_motor_mov_request__free_unpacked + (StubMotorMovRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_mov_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_mov_request__field_descriptors[3] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorMovRequest, has_motor_id), + offsetof(StubMotorMovRequest, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Direction", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorMovRequest, has_direction), + offsetof(StubMotorMovRequest, direction), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Position", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorMovRequest, has_position), + offsetof(StubMotorMovRequest, position), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_mov_request__field_indices_by_name[] = { + 1, /* field[1] = Direction */ + 0, /* field[0] = Motor_ID */ + 2, /* field[2] = Position */ +}; +static const ProtobufCIntRange stub_motor_mov_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor stub_motor_mov_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorMovRequest", + "StubMotorMovRequest", + "StubMotorMovRequest", + "", + sizeof(StubMotorMovRequest), + 3, + stub_motor_mov_request__field_descriptors, + stub_motor_mov_request__field_indices_by_name, + 1, stub_motor_mov_request__number_ranges, + (ProtobufCMessageInit) stub_motor_mov_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovRequest.pb-c.h new file mode 100644 index 000000000..8957b336a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovRequest.pb-c.h @@ -0,0 +1,76 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorMovRequest.proto */ + +#ifndef PROTOBUF_C_StubMotorMovRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorMovRequest_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 _StubMotorMovRequest StubMotorMovRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorMovRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_direction; + protobuf_c_boolean direction; + protobuf_c_boolean has_position; + uint32_t position; +}; +#define STUB_MOTOR_MOV_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_mov_request__descriptor) \ + , 0, 0, 0, 0, 0, 0 } + + +/* StubMotorMovRequest methods */ +void stub_motor_mov_request__init + (StubMotorMovRequest *message); +size_t stub_motor_mov_request__get_packed_size + (const StubMotorMovRequest *message); +size_t stub_motor_mov_request__pack + (const StubMotorMovRequest *message, + uint8_t *out); +size_t stub_motor_mov_request__pack_to_buffer + (const StubMotorMovRequest *message, + ProtobufCBuffer *buffer); +StubMotorMovRequest * + stub_motor_mov_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_mov_request__free_unpacked + (StubMotorMovRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorMovRequest_Closure) + (const StubMotorMovRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_mov_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorMovRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovResponse.pb-c.c new file mode 100644 index 000000000..e0da6c0b3 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovResponse.pb-c.c @@ -0,0 +1,170 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorMovResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorMovResponse.pb-c.h" +void stub_motor_mov_response__init + (StubMotorMovResponse *message) +{ + static const StubMotorMovResponse init_value = STUB_MOTOR_MOV_RESPONSE__INIT; + *message = init_value; +} +size_t stub_motor_mov_response__get_packed_size + (const StubMotorMovResponse *message) +{ + assert(message->base.descriptor == &stub_motor_mov_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_mov_response__pack + (const StubMotorMovResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_mov_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_mov_response__pack_to_buffer + (const StubMotorMovResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_mov_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorMovResponse * + stub_motor_mov_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorMovResponse *) + protobuf_c_message_unpack (&stub_motor_mov_response__descriptor, + allocator, len, data); +} +void stub_motor_mov_response__free_unpacked + (StubMotorMovResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_mov_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_mov_response__field_descriptors[7] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorMovResponse, has_motor_id), + offsetof(StubMotorMovResponse, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Position", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorMovResponse, has_position), + offsetof(StubMotorMovResponse, position), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status_Reg", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorMovResponse, has_status_reg), + offsetof(StubMotorMovResponse, status_reg), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Direction", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorMovResponse, has_direction), + offsetof(StubMotorMovResponse, direction), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Mot_Status", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorMovResponse, has_mot_status), + offsetof(StubMotorMovResponse, mot_status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "STEP_LOSS_A", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorMovResponse, has_step_loss_a), + offsetof(StubMotorMovResponse, step_loss_a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "STEP_LOSS_B", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorMovResponse, has_step_loss_b), + offsetof(StubMotorMovResponse, step_loss_b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_mov_response__field_indices_by_name[] = { + 3, /* field[3] = Direction */ + 4, /* field[4] = Mot_Status */ + 0, /* field[0] = Motor_ID */ + 1, /* field[1] = Position */ + 5, /* field[5] = STEP_LOSS_A */ + 6, /* field[6] = STEP_LOSS_B */ + 2, /* field[2] = Status_Reg */ +}; +static const ProtobufCIntRange stub_motor_mov_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor stub_motor_mov_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorMovResponse", + "StubMotorMovResponse", + "StubMotorMovResponse", + "", + sizeof(StubMotorMovResponse), + 7, + stub_motor_mov_response__field_descriptors, + stub_motor_mov_response__field_indices_by_name, + 1, stub_motor_mov_response__number_ranges, + (ProtobufCMessageInit) stub_motor_mov_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovResponse.pb-c.h new file mode 100644 index 000000000..cd80996ed --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorMovResponse.pb-c.h @@ -0,0 +1,90 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorMovResponse.proto */ + +#ifndef PROTOBUF_C_StubMotorMovResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorMovResponse_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 _StubMotorMovResponse StubMotorMovResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorMovResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_position; + uint32_t position; + protobuf_c_boolean has_status_reg; + uint32_t status_reg; + /* + * Reverse / Forward + */ + protobuf_c_boolean has_direction; + protobuf_c_boolean direction; + /* + *Stopped / Acceleration / Deceleration / Constant speed + */ + protobuf_c_boolean has_mot_status; + uint32_t mot_status; + protobuf_c_boolean has_step_loss_a; + protobuf_c_boolean step_loss_a; + protobuf_c_boolean has_step_loss_b; + protobuf_c_boolean step_loss_b; +}; +#define STUB_MOTOR_MOV_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_mov_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubMotorMovResponse methods */ +void stub_motor_mov_response__init + (StubMotorMovResponse *message); +size_t stub_motor_mov_response__get_packed_size + (const StubMotorMovResponse *message); +size_t stub_motor_mov_response__pack + (const StubMotorMovResponse *message, + uint8_t *out); +size_t stub_motor_mov_response__pack_to_buffer + (const StubMotorMovResponse *message, + ProtobufCBuffer *buffer); +StubMotorMovResponse * + stub_motor_mov_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_mov_response__free_unpacked + (StubMotorMovResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorMovResponse_Closure) + (const StubMotorMovResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_mov_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorMovResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionRequest.pb-c.c new file mode 100644 index 000000000..08f43e778 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorPositionRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorPositionRequest.pb-c.h" +void stub_motor_position_request__init + (StubMotorPositionRequest *message) +{ + static const StubMotorPositionRequest init_value = STUB_MOTOR_POSITION_REQUEST__INIT; + *message = init_value; +} +size_t stub_motor_position_request__get_packed_size + (const StubMotorPositionRequest *message) +{ + assert(message->base.descriptor == &stub_motor_position_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_position_request__pack + (const StubMotorPositionRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_position_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_position_request__pack_to_buffer + (const StubMotorPositionRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_position_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorPositionRequest * + stub_motor_position_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorPositionRequest *) + protobuf_c_message_unpack (&stub_motor_position_request__descriptor, + allocator, len, data); +} +void stub_motor_position_request__free_unpacked + (StubMotorPositionRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_position_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_position_request__field_descriptors[1] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorPositionRequest, has_motor_id), + offsetof(StubMotorPositionRequest, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_position_request__field_indices_by_name[] = { + 0, /* field[0] = Motor_ID */ +}; +static const ProtobufCIntRange stub_motor_position_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor stub_motor_position_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorPositionRequest", + "StubMotorPositionRequest", + "StubMotorPositionRequest", + "", + sizeof(StubMotorPositionRequest), + 1, + stub_motor_position_request__field_descriptors, + stub_motor_position_request__field_indices_by_name, + 1, stub_motor_position_request__number_ranges, + (ProtobufCMessageInit) stub_motor_position_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionRequest.pb-c.h new file mode 100644 index 000000000..439a0f31d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorPositionRequest.proto */ + +#ifndef PROTOBUF_C_StubMotorPositionRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorPositionRequest_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 _StubMotorPositionRequest StubMotorPositionRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorPositionRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; +}; +#define STUB_MOTOR_POSITION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_position_request__descriptor) \ + , 0, 0 } + + +/* StubMotorPositionRequest methods */ +void stub_motor_position_request__init + (StubMotorPositionRequest *message); +size_t stub_motor_position_request__get_packed_size + (const StubMotorPositionRequest *message); +size_t stub_motor_position_request__pack + (const StubMotorPositionRequest *message, + uint8_t *out); +size_t stub_motor_position_request__pack_to_buffer + (const StubMotorPositionRequest *message, + ProtobufCBuffer *buffer); +StubMotorPositionRequest * + stub_motor_position_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_position_request__free_unpacked + (StubMotorPositionRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorPositionRequest_Closure) + (const StubMotorPositionRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_position_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorPositionRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionResponse.pb-c.c new file mode 100644 index 000000000..4354eb2da --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorPositionResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorPositionResponse.pb-c.h" +void stub_motor_position_response__init + (StubMotorPositionResponse *message) +{ + static const StubMotorPositionResponse init_value = STUB_MOTOR_POSITION_RESPONSE__INIT; + *message = init_value; +} +size_t stub_motor_position_response__get_packed_size + (const StubMotorPositionResponse *message) +{ + assert(message->base.descriptor == &stub_motor_position_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_position_response__pack + (const StubMotorPositionResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_position_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_position_response__pack_to_buffer + (const StubMotorPositionResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_position_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorPositionResponse * + stub_motor_position_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorPositionResponse *) + protobuf_c_message_unpack (&stub_motor_position_response__descriptor, + allocator, len, data); +} +void stub_motor_position_response__free_unpacked + (StubMotorPositionResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_position_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_position_response__field_descriptors[2] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorPositionResponse, has_motor_id), + offsetof(StubMotorPositionResponse, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Position", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorPositionResponse, has_position), + offsetof(StubMotorPositionResponse, position), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_position_response__field_indices_by_name[] = { + 0, /* field[0] = Motor_ID */ + 1, /* field[1] = Position */ +}; +static const ProtobufCIntRange stub_motor_position_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_motor_position_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorPositionResponse", + "StubMotorPositionResponse", + "StubMotorPositionResponse", + "", + sizeof(StubMotorPositionResponse), + 2, + stub_motor_position_response__field_descriptors, + stub_motor_position_response__field_indices_by_name, + 1, stub_motor_position_response__number_ranges, + (ProtobufCMessageInit) stub_motor_position_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionResponse.pb-c.h new file mode 100644 index 000000000..13c7c3c95 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorPositionResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorPositionResponse.proto */ + +#ifndef PROTOBUF_C_StubMotorPositionResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorPositionResponse_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 _StubMotorPositionResponse StubMotorPositionResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorPositionResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_position; + uint32_t position; +}; +#define STUB_MOTOR_POSITION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_position_response__descriptor) \ + , 0, 0, 0, 0 } + + +/* StubMotorPositionResponse methods */ +void stub_motor_position_response__init + (StubMotorPositionResponse *message); +size_t stub_motor_position_response__get_packed_size + (const StubMotorPositionResponse *message); +size_t stub_motor_position_response__pack + (const StubMotorPositionResponse *message, + uint8_t *out); +size_t stub_motor_position_response__pack_to_buffer + (const StubMotorPositionResponse *message, + ProtobufCBuffer *buffer); +StubMotorPositionResponse * + stub_motor_position_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_position_response__free_unpacked + (StubMotorPositionResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorPositionResponse_Closure) + (const StubMotorPositionResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_position_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorPositionResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunRequest.pb-c.c new file mode 100644 index 000000000..30cf9ccf2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunRequest.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorRunRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorRunRequest.pb-c.h" +void stub_motor_run_request__init + (StubMotorRunRequest *message) +{ + static const StubMotorRunRequest init_value = STUB_MOTOR_RUN_REQUEST__INIT; + *message = init_value; +} +size_t stub_motor_run_request__get_packed_size + (const StubMotorRunRequest *message) +{ + assert(message->base.descriptor == &stub_motor_run_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_run_request__pack + (const StubMotorRunRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_run_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_run_request__pack_to_buffer + (const StubMotorRunRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_run_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorRunRequest * + stub_motor_run_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorRunRequest *) + protobuf_c_message_unpack (&stub_motor_run_request__descriptor, + allocator, len, data); +} +void stub_motor_run_request__free_unpacked + (StubMotorRunRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_run_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_run_request__field_descriptors[3] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorRunRequest, has_motor_id), + offsetof(StubMotorRunRequest, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Direction", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorRunRequest, has_direction), + offsetof(StubMotorRunRequest, direction), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(StubMotorRunRequest, has_speed), + offsetof(StubMotorRunRequest, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_run_request__field_indices_by_name[] = { + 1, /* field[1] = Direction */ + 0, /* field[0] = Motor_ID */ + 2, /* field[2] = Speed */ +}; +static const ProtobufCIntRange stub_motor_run_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor stub_motor_run_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorRunRequest", + "StubMotorRunRequest", + "StubMotorRunRequest", + "", + sizeof(StubMotorRunRequest), + 3, + stub_motor_run_request__field_descriptors, + stub_motor_run_request__field_indices_by_name, + 1, stub_motor_run_request__number_ranges, + (ProtobufCMessageInit) stub_motor_run_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunRequest.pb-c.h new file mode 100644 index 000000000..5c4ce2efd --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunRequest.pb-c.h @@ -0,0 +1,76 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorRunRequest.proto */ + +#ifndef PROTOBUF_C_StubMotorRunRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorRunRequest_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 _StubMotorRunRequest StubMotorRunRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorRunRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_direction; + protobuf_c_boolean direction; + protobuf_c_boolean has_speed; + double speed; +}; +#define STUB_MOTOR_RUN_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_run_request__descriptor) \ + , 0, 0, 0, 0, 0, 0 } + + +/* StubMotorRunRequest methods */ +void stub_motor_run_request__init + (StubMotorRunRequest *message); +size_t stub_motor_run_request__get_packed_size + (const StubMotorRunRequest *message); +size_t stub_motor_run_request__pack + (const StubMotorRunRequest *message, + uint8_t *out); +size_t stub_motor_run_request__pack_to_buffer + (const StubMotorRunRequest *message, + ProtobufCBuffer *buffer); +StubMotorRunRequest * + stub_motor_run_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_run_request__free_unpacked + (StubMotorRunRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorRunRequest_Closure) + (const StubMotorRunRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_run_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorRunRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunResponse.pb-c.c new file mode 100644 index 000000000..4d437ab7e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunResponse.pb-c.c @@ -0,0 +1,183 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorRunResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorRunResponse.pb-c.h" +void stub_motor_run_response__init + (StubMotorRunResponse *message) +{ + static const StubMotorRunResponse init_value = STUB_MOTOR_RUN_RESPONSE__INIT; + *message = init_value; +} +size_t stub_motor_run_response__get_packed_size + (const StubMotorRunResponse *message) +{ + assert(message->base.descriptor == &stub_motor_run_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_run_response__pack + (const StubMotorRunResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_run_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_run_response__pack_to_buffer + (const StubMotorRunResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_run_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorRunResponse * + stub_motor_run_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorRunResponse *) + protobuf_c_message_unpack (&stub_motor_run_response__descriptor, + allocator, len, data); +} +void stub_motor_run_response__free_unpacked + (StubMotorRunResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_run_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_run_response__field_descriptors[8] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorRunResponse, has_motor_id), + offsetof(StubMotorRunResponse, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(StubMotorRunResponse, has_speed), + offsetof(StubMotorRunResponse, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status_Reg", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorRunResponse, has_status_reg), + offsetof(StubMotorRunResponse, status_reg), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Direction", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorRunResponse, has_direction), + offsetof(StubMotorRunResponse, direction), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Mot_Status", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorRunResponse, has_mot_status), + offsetof(StubMotorRunResponse, mot_status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "STEP_LOSS_A", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorRunResponse, has_step_loss_a), + offsetof(StubMotorRunResponse, step_loss_a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "STEP_LOSS_B", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorRunResponse, has_step_loss_b), + offsetof(StubMotorRunResponse, step_loss_b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "BUSY", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorRunResponse, has_busy), + offsetof(StubMotorRunResponse, busy), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_run_response__field_indices_by_name[] = { + 7, /* field[7] = BUSY */ + 3, /* field[3] = Direction */ + 4, /* field[4] = Mot_Status */ + 0, /* field[0] = Motor_ID */ + 5, /* field[5] = STEP_LOSS_A */ + 6, /* field[6] = STEP_LOSS_B */ + 1, /* field[1] = Speed */ + 2, /* field[2] = Status_Reg */ +}; +static const ProtobufCIntRange stub_motor_run_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor stub_motor_run_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorRunResponse", + "StubMotorRunResponse", + "StubMotorRunResponse", + "", + sizeof(StubMotorRunResponse), + 8, + stub_motor_run_response__field_descriptors, + stub_motor_run_response__field_indices_by_name, + 1, stub_motor_run_response__number_ranges, + (ProtobufCMessageInit) stub_motor_run_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunResponse.pb-c.h new file mode 100644 index 000000000..9c80cd28d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorRunResponse.pb-c.h @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorRunResponse.proto */ + +#ifndef PROTOBUF_C_StubMotorRunResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorRunResponse_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 _StubMotorRunResponse StubMotorRunResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorRunResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_speed; + double speed; + protobuf_c_boolean has_status_reg; + uint32_t status_reg; + /* + * Reverse / Forward + */ + protobuf_c_boolean has_direction; + protobuf_c_boolean direction; + /* + *Stopped / Acceleration / Deceleration / Constant speed + */ + protobuf_c_boolean has_mot_status; + uint32_t mot_status; + protobuf_c_boolean has_step_loss_a; + protobuf_c_boolean step_loss_a; + protobuf_c_boolean has_step_loss_b; + protobuf_c_boolean step_loss_b; + protobuf_c_boolean has_busy; + protobuf_c_boolean busy; +}; +#define STUB_MOTOR_RUN_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_run_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubMotorRunResponse methods */ +void stub_motor_run_response__init + (StubMotorRunResponse *message); +size_t stub_motor_run_response__get_packed_size + (const StubMotorRunResponse *message); +size_t stub_motor_run_response__pack + (const StubMotorRunResponse *message, + uint8_t *out); +size_t stub_motor_run_response__pack_to_buffer + (const StubMotorRunResponse *message, + ProtobufCBuffer *buffer); +StubMotorRunResponse * + stub_motor_run_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_run_response__free_unpacked + (StubMotorRunResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorRunResponse_Closure) + (const StubMotorRunResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_run_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorRunResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedRequest.pb-c.c new file mode 100644 index 000000000..c8acbfdfd --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorSpeedRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorSpeedRequest.pb-c.h" +void stub_motor_speed_request__init + (StubMotorSpeedRequest *message) +{ + static const StubMotorSpeedRequest init_value = STUB_MOTOR_SPEED_REQUEST__INIT; + *message = init_value; +} +size_t stub_motor_speed_request__get_packed_size + (const StubMotorSpeedRequest *message) +{ + assert(message->base.descriptor == &stub_motor_speed_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_speed_request__pack + (const StubMotorSpeedRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_speed_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_speed_request__pack_to_buffer + (const StubMotorSpeedRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_speed_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorSpeedRequest * + stub_motor_speed_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorSpeedRequest *) + protobuf_c_message_unpack (&stub_motor_speed_request__descriptor, + allocator, len, data); +} +void stub_motor_speed_request__free_unpacked + (StubMotorSpeedRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_speed_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_speed_request__field_descriptors[1] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorSpeedRequest, has_motor_id), + offsetof(StubMotorSpeedRequest, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_speed_request__field_indices_by_name[] = { + 0, /* field[0] = Motor_ID */ +}; +static const ProtobufCIntRange stub_motor_speed_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor stub_motor_speed_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorSpeedRequest", + "StubMotorSpeedRequest", + "StubMotorSpeedRequest", + "", + sizeof(StubMotorSpeedRequest), + 1, + stub_motor_speed_request__field_descriptors, + stub_motor_speed_request__field_indices_by_name, + 1, stub_motor_speed_request__number_ranges, + (ProtobufCMessageInit) stub_motor_speed_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedRequest.pb-c.h new file mode 100644 index 000000000..537ca4da6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorSpeedRequest.proto */ + +#ifndef PROTOBUF_C_StubMotorSpeedRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorSpeedRequest_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 _StubMotorSpeedRequest StubMotorSpeedRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorSpeedRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; +}; +#define STUB_MOTOR_SPEED_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_speed_request__descriptor) \ + , 0, 0 } + + +/* StubMotorSpeedRequest methods */ +void stub_motor_speed_request__init + (StubMotorSpeedRequest *message); +size_t stub_motor_speed_request__get_packed_size + (const StubMotorSpeedRequest *message); +size_t stub_motor_speed_request__pack + (const StubMotorSpeedRequest *message, + uint8_t *out); +size_t stub_motor_speed_request__pack_to_buffer + (const StubMotorSpeedRequest *message, + ProtobufCBuffer *buffer); +StubMotorSpeedRequest * + stub_motor_speed_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_speed_request__free_unpacked + (StubMotorSpeedRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorSpeedRequest_Closure) + (const StubMotorSpeedRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_speed_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorSpeedRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedResponse.pb-c.c new file mode 100644 index 000000000..34d826880 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorSpeedResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorSpeedResponse.pb-c.h" +void stub_motor_speed_response__init + (StubMotorSpeedResponse *message) +{ + static const StubMotorSpeedResponse init_value = STUB_MOTOR_SPEED_RESPONSE__INIT; + *message = init_value; +} +size_t stub_motor_speed_response__get_packed_size + (const StubMotorSpeedResponse *message) +{ + assert(message->base.descriptor == &stub_motor_speed_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_speed_response__pack + (const StubMotorSpeedResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_speed_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_speed_response__pack_to_buffer + (const StubMotorSpeedResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_speed_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorSpeedResponse * + stub_motor_speed_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorSpeedResponse *) + protobuf_c_message_unpack (&stub_motor_speed_response__descriptor, + allocator, len, data); +} +void stub_motor_speed_response__free_unpacked + (StubMotorSpeedResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_speed_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_speed_response__field_descriptors[2] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorSpeedResponse, has_motor_id), + offsetof(StubMotorSpeedResponse, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(StubMotorSpeedResponse, has_speed), + offsetof(StubMotorSpeedResponse, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_speed_response__field_indices_by_name[] = { + 0, /* field[0] = Motor_ID */ + 1, /* field[1] = Speed */ +}; +static const ProtobufCIntRange stub_motor_speed_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_motor_speed_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorSpeedResponse", + "StubMotorSpeedResponse", + "StubMotorSpeedResponse", + "", + sizeof(StubMotorSpeedResponse), + 2, + stub_motor_speed_response__field_descriptors, + stub_motor_speed_response__field_indices_by_name, + 1, stub_motor_speed_response__number_ranges, + (ProtobufCMessageInit) stub_motor_speed_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedResponse.pb-c.h new file mode 100644 index 000000000..d113e02d9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorSpeedResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorSpeedResponse.proto */ + +#ifndef PROTOBUF_C_StubMotorSpeedResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorSpeedResponse_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 _StubMotorSpeedResponse StubMotorSpeedResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorSpeedResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_speed; + double speed; +}; +#define STUB_MOTOR_SPEED_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_speed_response__descriptor) \ + , 0, 0, 0, 0 } + + +/* StubMotorSpeedResponse methods */ +void stub_motor_speed_response__init + (StubMotorSpeedResponse *message); +size_t stub_motor_speed_response__get_packed_size + (const StubMotorSpeedResponse *message); +size_t stub_motor_speed_response__pack + (const StubMotorSpeedResponse *message, + uint8_t *out); +size_t stub_motor_speed_response__pack_to_buffer + (const StubMotorSpeedResponse *message, + ProtobufCBuffer *buffer); +StubMotorSpeedResponse * + stub_motor_speed_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_speed_response__free_unpacked + (StubMotorSpeedResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorSpeedResponse_Closure) + (const StubMotorSpeedResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_speed_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorSpeedResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusRequest.pb-c.c new file mode 100644 index 000000000..21ff45bab --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStatusRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorStatusRequest.pb-c.h" +void stub_motor_status_request__init + (StubMotorStatusRequest *message) +{ + static const StubMotorStatusRequest init_value = STUB_MOTOR_STATUS_REQUEST__INIT; + *message = init_value; +} +size_t stub_motor_status_request__get_packed_size + (const StubMotorStatusRequest *message) +{ + assert(message->base.descriptor == &stub_motor_status_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_status_request__pack + (const StubMotorStatusRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_status_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_status_request__pack_to_buffer + (const StubMotorStatusRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_status_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorStatusRequest * + stub_motor_status_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorStatusRequest *) + protobuf_c_message_unpack (&stub_motor_status_request__descriptor, + allocator, len, data); +} +void stub_motor_status_request__free_unpacked + (StubMotorStatusRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_status_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_status_request__field_descriptors[2] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorStatusRequest, has_motor_id), + offsetof(StubMotorStatusRequest, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ClearStatus", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusRequest, has_clearstatus), + offsetof(StubMotorStatusRequest, clearstatus), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_status_request__field_indices_by_name[] = { + 1, /* field[1] = ClearStatus */ + 0, /* field[0] = Motor_ID */ +}; +static const ProtobufCIntRange stub_motor_status_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_motor_status_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorStatusRequest", + "StubMotorStatusRequest", + "StubMotorStatusRequest", + "", + sizeof(StubMotorStatusRequest), + 2, + stub_motor_status_request__field_descriptors, + stub_motor_status_request__field_indices_by_name, + 1, stub_motor_status_request__number_ranges, + (ProtobufCMessageInit) stub_motor_status_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusRequest.pb-c.h new file mode 100644 index 000000000..84fbd6080 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusRequest.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStatusRequest.proto */ + +#ifndef PROTOBUF_C_StubMotorStatusRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorStatusRequest_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 _StubMotorStatusRequest StubMotorStatusRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorStatusRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_clearstatus; + protobuf_c_boolean clearstatus; +}; +#define STUB_MOTOR_STATUS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_status_request__descriptor) \ + , 0, 0, 0, 0 } + + +/* StubMotorStatusRequest methods */ +void stub_motor_status_request__init + (StubMotorStatusRequest *message); +size_t stub_motor_status_request__get_packed_size + (const StubMotorStatusRequest *message); +size_t stub_motor_status_request__pack + (const StubMotorStatusRequest *message, + uint8_t *out); +size_t stub_motor_status_request__pack_to_buffer + (const StubMotorStatusRequest *message, + ProtobufCBuffer *buffer); +StubMotorStatusRequest * + stub_motor_status_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_status_request__free_unpacked + (StubMotorStatusRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorStatusRequest_Closure) + (const StubMotorStatusRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_status_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorStatusRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusResponse.pb-c.c new file mode 100644 index 000000000..9236abdea --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusResponse.pb-c.c @@ -0,0 +1,287 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStatusResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorStatusResponse.pb-c.h" +void stub_motor_status_response__init + (StubMotorStatusResponse *message) +{ + static const StubMotorStatusResponse init_value = STUB_MOTOR_STATUS_RESPONSE__INIT; + *message = init_value; +} +size_t stub_motor_status_response__get_packed_size + (const StubMotorStatusResponse *message) +{ + assert(message->base.descriptor == &stub_motor_status_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_status_response__pack + (const StubMotorStatusResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_status_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_status_response__pack_to_buffer + (const StubMotorStatusResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_status_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorStatusResponse * + stub_motor_status_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorStatusResponse *) + protobuf_c_message_unpack (&stub_motor_status_response__descriptor, + allocator, len, data); +} +void stub_motor_status_response__free_unpacked + (StubMotorStatusResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_status_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_status_response__field_descriptors[16] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorStatusResponse, has_motor_id), + offsetof(StubMotorStatusResponse, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SCK_MOD", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_sck_mod), + offsetof(StubMotorStatusResponse, sck_mod), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "STEP_LOSS_B", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_step_loss_b), + offsetof(StubMotorStatusResponse, step_loss_b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "STEP_LOSS_A", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_step_loss_a), + offsetof(StubMotorStatusResponse, step_loss_a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OCD", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_ocd), + offsetof(StubMotorStatusResponse, ocd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TH_SD", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_th_sd), + offsetof(StubMotorStatusResponse, th_sd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "TH_WRN", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_th_wrn), + offsetof(StubMotorStatusResponse, th_wrn), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "UVLO", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_uvlo), + offsetof(StubMotorStatusResponse, uvlo), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "WRONG_CMD", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_wrong_cmd), + offsetof(StubMotorStatusResponse, wrong_cmd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "NOTPERF_CMD", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_notperf_cmd), + offsetof(StubMotorStatusResponse, notperf_cmd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MOT_STATUS", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorStatusResponse, has_mot_status), + offsetof(StubMotorStatusResponse, mot_status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "DIR", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_dir), + offsetof(StubMotorStatusResponse, dir), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SW_EVN", + 13, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_sw_evn), + offsetof(StubMotorStatusResponse, sw_evn), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "SW_F", + 14, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_sw_f), + offsetof(StubMotorStatusResponse, sw_f), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "BUSY", + 15, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_busy), + offsetof(StubMotorStatusResponse, busy), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HiZ", + 16, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStatusResponse, has_hiz), + offsetof(StubMotorStatusResponse, hiz), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_status_response__field_indices_by_name[] = { + 14, /* field[14] = BUSY */ + 11, /* field[11] = DIR */ + 15, /* field[15] = HiZ */ + 10, /* field[10] = MOT_STATUS */ + 0, /* field[0] = Motor_ID */ + 9, /* field[9] = NOTPERF_CMD */ + 4, /* field[4] = OCD */ + 1, /* field[1] = SCK_MOD */ + 3, /* field[3] = STEP_LOSS_A */ + 2, /* field[2] = STEP_LOSS_B */ + 12, /* field[12] = SW_EVN */ + 13, /* field[13] = SW_F */ + 5, /* field[5] = TH_SD */ + 6, /* field[6] = TH_WRN */ + 7, /* field[7] = UVLO */ + 8, /* field[8] = WRONG_CMD */ +}; +static const ProtobufCIntRange stub_motor_status_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 16 } +}; +const ProtobufCMessageDescriptor stub_motor_status_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorStatusResponse", + "StubMotorStatusResponse", + "StubMotorStatusResponse", + "", + sizeof(StubMotorStatusResponse), + 16, + stub_motor_status_response__field_descriptors, + stub_motor_status_response__field_indices_by_name, + 1, stub_motor_status_response__number_ranges, + (ProtobufCMessageInit) stub_motor_status_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusResponse.pb-c.h new file mode 100644 index 000000000..440830b3b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStatusResponse.pb-c.h @@ -0,0 +1,102 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStatusResponse.proto */ + +#ifndef PROTOBUF_C_StubMotorStatusResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorStatusResponse_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 _StubMotorStatusResponse StubMotorStatusResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorStatusResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + protobuf_c_boolean has_sck_mod; + protobuf_c_boolean sck_mod; + protobuf_c_boolean has_step_loss_b; + protobuf_c_boolean step_loss_b; + protobuf_c_boolean has_step_loss_a; + protobuf_c_boolean step_loss_a; + protobuf_c_boolean has_ocd; + protobuf_c_boolean ocd; + protobuf_c_boolean has_th_sd; + protobuf_c_boolean th_sd; + protobuf_c_boolean has_th_wrn; + protobuf_c_boolean th_wrn; + protobuf_c_boolean has_uvlo; + protobuf_c_boolean uvlo; + protobuf_c_boolean has_wrong_cmd; + protobuf_c_boolean wrong_cmd; + protobuf_c_boolean has_notperf_cmd; + protobuf_c_boolean notperf_cmd; + protobuf_c_boolean has_mot_status; + uint32_t mot_status; + protobuf_c_boolean has_dir; + protobuf_c_boolean dir; + protobuf_c_boolean has_sw_evn; + protobuf_c_boolean sw_evn; + protobuf_c_boolean has_sw_f; + protobuf_c_boolean sw_f; + protobuf_c_boolean has_busy; + protobuf_c_boolean busy; + protobuf_c_boolean has_hiz; + protobuf_c_boolean hiz; +}; +#define STUB_MOTOR_STATUS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_status_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubMotorStatusResponse methods */ +void stub_motor_status_response__init + (StubMotorStatusResponse *message); +size_t stub_motor_status_response__get_packed_size + (const StubMotorStatusResponse *message); +size_t stub_motor_status_response__pack + (const StubMotorStatusResponse *message, + uint8_t *out); +size_t stub_motor_status_response__pack_to_buffer + (const StubMotorStatusResponse *message, + ProtobufCBuffer *buffer); +StubMotorStatusResponse * + stub_motor_status_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_status_response__free_unpacked + (StubMotorStatusResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorStatusResponse_Closure) + (const StubMotorStatusResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_status_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorStatusResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopRequest.pb-c.c new file mode 100644 index 000000000..1bcdca7be --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStopRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorStopRequest.pb-c.h" +void stub_motor_stop_request__init + (StubMotorStopRequest *message) +{ + static const StubMotorStopRequest init_value = STUB_MOTOR_STOP_REQUEST__INIT; + *message = init_value; +} +size_t stub_motor_stop_request__get_packed_size + (const StubMotorStopRequest *message) +{ + assert(message->base.descriptor == &stub_motor_stop_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_stop_request__pack + (const StubMotorStopRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_stop_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_stop_request__pack_to_buffer + (const StubMotorStopRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_stop_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorStopRequest * + stub_motor_stop_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorStopRequest *) + protobuf_c_message_unpack (&stub_motor_stop_request__descriptor, + allocator, len, data); +} +void stub_motor_stop_request__free_unpacked + (StubMotorStopRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_stop_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_stop_request__field_descriptors[2] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorStopRequest, has_motor_id), + offsetof(StubMotorStopRequest, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Stop_CMD", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorStopRequest, has_stop_cmd), + offsetof(StubMotorStopRequest, stop_cmd), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_stop_request__field_indices_by_name[] = { + 0, /* field[0] = Motor_ID */ + 1, /* field[1] = Stop_CMD */ +}; +static const ProtobufCIntRange stub_motor_stop_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor stub_motor_stop_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorStopRequest", + "StubMotorStopRequest", + "StubMotorStopRequest", + "", + sizeof(StubMotorStopRequest), + 2, + stub_motor_stop_request__field_descriptors, + stub_motor_stop_request__field_indices_by_name, + 1, stub_motor_stop_request__number_ranges, + (ProtobufCMessageInit) stub_motor_stop_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopRequest.pb-c.h new file mode 100644 index 000000000..2c89fc185 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopRequest.pb-c.h @@ -0,0 +1,77 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStopRequest.proto */ + +#ifndef PROTOBUF_C_StubMotorStopRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorStopRequest_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 _StubMotorStopRequest StubMotorStopRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorStopRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + /* + * 1 - Hard_Stop/ 2 - Soft_Stop/ 3 - Hard_Hiz/ 4 - Soft_Hiz + */ + protobuf_c_boolean has_stop_cmd; + uint32_t stop_cmd; +}; +#define STUB_MOTOR_STOP_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_stop_request__descriptor) \ + , 0, 0, 0, 0 } + + +/* StubMotorStopRequest methods */ +void stub_motor_stop_request__init + (StubMotorStopRequest *message); +size_t stub_motor_stop_request__get_packed_size + (const StubMotorStopRequest *message); +size_t stub_motor_stop_request__pack + (const StubMotorStopRequest *message, + uint8_t *out); +size_t stub_motor_stop_request__pack_to_buffer + (const StubMotorStopRequest *message, + ProtobufCBuffer *buffer); +StubMotorStopRequest * + stub_motor_stop_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_stop_request__free_unpacked + (StubMotorStopRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorStopRequest_Closure) + (const StubMotorStopRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_stop_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorStopRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopResponse.pb-c.c new file mode 100644 index 000000000..60cacfcb7 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopResponse.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStopResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubMotorStopResponse.pb-c.h" +void stub_motor_stop_response__init + (StubMotorStopResponse *message) +{ + static const StubMotorStopResponse init_value = STUB_MOTOR_STOP_RESPONSE__INIT; + *message = init_value; +} +size_t stub_motor_stop_response__get_packed_size + (const StubMotorStopResponse *message) +{ + assert(message->base.descriptor == &stub_motor_stop_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_motor_stop_response__pack + (const StubMotorStopResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_motor_stop_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_motor_stop_response__pack_to_buffer + (const StubMotorStopResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_motor_stop_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubMotorStopResponse * + stub_motor_stop_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubMotorStopResponse *) + protobuf_c_message_unpack (&stub_motor_stop_response__descriptor, + allocator, len, data); +} +void stub_motor_stop_response__free_unpacked + (StubMotorStopResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_motor_stop_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_motor_stop_response__field_descriptors[4] = +{ + { + "Motor_ID", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorStopResponse, has_motor_id), + offsetof(StubMotorStopResponse, motor_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Mot_Status", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubMotorStopResponse, has_mot_status), + offsetof(StubMotorStopResponse, mot_status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "HiZ", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStopResponse, has_hiz), + offsetof(StubMotorStopResponse, hiz), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "BUSY", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(StubMotorStopResponse, has_busy), + offsetof(StubMotorStopResponse, busy), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_motor_stop_response__field_indices_by_name[] = { + 3, /* field[3] = BUSY */ + 2, /* field[2] = HiZ */ + 1, /* field[1] = Mot_Status */ + 0, /* field[0] = Motor_ID */ +}; +static const ProtobufCIntRange stub_motor_stop_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor stub_motor_stop_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubMotorStopResponse", + "StubMotorStopResponse", + "StubMotorStopResponse", + "", + sizeof(StubMotorStopResponse), + 4, + stub_motor_stop_response__field_descriptors, + stub_motor_stop_response__field_indices_by_name, + 1, stub_motor_stop_response__number_ranges, + (ProtobufCMessageInit) stub_motor_stop_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopResponse.pb-c.h new file mode 100644 index 000000000..1a41f11ef --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Stubs/StubMotorStopResponse.pb-c.h @@ -0,0 +1,84 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubMotorStopResponse.proto */ + +#ifndef PROTOBUF_C_StubMotorStopResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubMotorStopResponse_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 _StubMotorStopResponse StubMotorStopResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubMotorStopResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_motor_id; + uint32_t motor_id; + /* + * Stopped / Acceleration / Deceleration / Constant speed + */ + protobuf_c_boolean has_mot_status; + uint32_t mot_status; + /* + * 1 - high impedance state. + */ + protobuf_c_boolean has_hiz; + protobuf_c_boolean hiz; + protobuf_c_boolean has_busy; + protobuf_c_boolean busy; +}; +#define STUB_MOTOR_STOP_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_motor_stop_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0 } + + +/* StubMotorStopResponse methods */ +void stub_motor_stop_response__init + (StubMotorStopResponse *message); +size_t stub_motor_stop_response__get_packed_size + (const StubMotorStopResponse *message); +size_t stub_motor_stop_response__pack + (const StubMotorStopResponse *message, + uint8_t *out); +size_t stub_motor_stop_response__pack_to_buffer + (const StubMotorStopResponse *message, + ProtobufCBuffer *buffer); +StubMotorStopResponse * + stub_motor_stop_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_motor_stop_response__free_unpacked + (StubMotorStopResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubMotorStopResponse_Closure) + (const StubMotorStopResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_motor_stop_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubMotorStopResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj b/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj index 4b6946228..071c0a4bc 100644 --- a/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj +++ b/Software/Visual_Studio/Native/Tango.ColorLib/Tango.ColorLib.vcxproj @@ -97,7 +97,7 @@ <SubSystem>Windows</SubSystem> </Link> <PreBuildEvent> - <Command>"$(TargetDir)proto-tc.exe" -i "$(SolutionDir)..\PMR\Messages" -o "$(SolutionDir)Native\Tango.ColorLib\PMR" -l C</Command> + <Command>"$(TargetDir)proto-tc.exe" -i "$(SolutionDir)..\PMR\Messages" -o "$(SolutionDir)Native\Tango.ColorLib\PMR" -l C -c "ColorLab"</Command> </PreBuildEvent> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
