diff options
Diffstat (limited to 'Software/Code_Composer')
16 files changed, 955 insertions, 10 deletions
diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveRequest.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveRequest.pb-c.c new file mode 100644 index 000000000..70fca2425 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "KeepAliveRequest.pb-c.h" +void keep_alive_request__init + (KeepAliveRequest *message) +{ + static const KeepAliveRequest init_value = KEEP_ALIVE_REQUEST__INIT; + *message = init_value; +} +size_t keep_alive_request__get_packed_size + (const KeepAliveRequest *message) +{ + assert(message->base.descriptor == &keep_alive_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t keep_alive_request__pack + (const KeepAliveRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &keep_alive_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t keep_alive_request__pack_to_buffer + (const KeepAliveRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &keep_alive_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +KeepAliveRequest * + keep_alive_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (KeepAliveRequest *) + protobuf_c_message_unpack (&keep_alive_request__descriptor, + allocator, len, data); +} +void keep_alive_request__free_unpacked + (KeepAliveRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &keep_alive_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define keep_alive_request__field_descriptors NULL +#define keep_alive_request__field_indices_by_name NULL +#define keep_alive_request__number_ranges NULL +const ProtobufCMessageDescriptor keep_alive_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "KeepAliveRequest", + "KeepAliveRequest", + "KeepAliveRequest", + "", + sizeof(KeepAliveRequest), + 0, + keep_alive_request__field_descriptors, + keep_alive_request__field_indices_by_name, + 0, keep_alive_request__number_ranges, + (ProtobufCMessageInit) keep_alive_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveRequest.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveRequest.pb-c.h new file mode 100644 index 000000000..379aa6caa --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveRequest.proto */ + +#ifndef PROTOBUF_C_KeepAliveRequest_2eproto__INCLUDED +#define PROTOBUF_C_KeepAliveRequest_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 _KeepAliveRequest KeepAliveRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _KeepAliveRequest +{ + ProtobufCMessage base; +}; +#define KEEP_ALIVE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&keep_alive_request__descriptor) \ + } + + +/* KeepAliveRequest methods */ +void keep_alive_request__init + (KeepAliveRequest *message); +size_t keep_alive_request__get_packed_size + (const KeepAliveRequest *message); +size_t keep_alive_request__pack + (const KeepAliveRequest *message, + uint8_t *out); +size_t keep_alive_request__pack_to_buffer + (const KeepAliveRequest *message, + ProtobufCBuffer *buffer); +KeepAliveRequest * + keep_alive_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void keep_alive_request__free_unpacked + (KeepAliveRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*KeepAliveRequest_Closure) + (const KeepAliveRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor keep_alive_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_KeepAliveRequest_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveResponse.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveResponse.pb-c.c new file mode 100644 index 000000000..9bae1f119 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "KeepAliveResponse.pb-c.h" +void keep_alive_response__init + (KeepAliveResponse *message) +{ + static const KeepAliveResponse init_value = KEEP_ALIVE_RESPONSE__INIT; + *message = init_value; +} +size_t keep_alive_response__get_packed_size + (const KeepAliveResponse *message) +{ + assert(message->base.descriptor == &keep_alive_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t keep_alive_response__pack + (const KeepAliveResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &keep_alive_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t keep_alive_response__pack_to_buffer + (const KeepAliveResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &keep_alive_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +KeepAliveResponse * + keep_alive_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (KeepAliveResponse *) + protobuf_c_message_unpack (&keep_alive_response__descriptor, + allocator, len, data); +} +void keep_alive_response__free_unpacked + (KeepAliveResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &keep_alive_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define keep_alive_response__field_descriptors NULL +#define keep_alive_response__field_indices_by_name NULL +#define keep_alive_response__number_ranges NULL +const ProtobufCMessageDescriptor keep_alive_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "KeepAliveResponse", + "KeepAliveResponse", + "KeepAliveResponse", + "", + sizeof(KeepAliveResponse), + 0, + keep_alive_response__field_descriptors, + keep_alive_response__field_indices_by_name, + 0, keep_alive_response__number_ranges, + (ProtobufCMessageInit) keep_alive_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveResponse.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveResponse.pb-c.h new file mode 100644 index 000000000..a29f79c99 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/KeepAliveResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: KeepAliveResponse.proto */ + +#ifndef PROTOBUF_C_KeepAliveResponse_2eproto__INCLUDED +#define PROTOBUF_C_KeepAliveResponse_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 _KeepAliveResponse KeepAliveResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _KeepAliveResponse +{ + ProtobufCMessage base; +}; +#define KEEP_ALIVE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&keep_alive_response__descriptor) \ + } + + +/* KeepAliveResponse methods */ +void keep_alive_response__init + (KeepAliveResponse *message); +size_t keep_alive_response__get_packed_size + (const KeepAliveResponse *message); +size_t keep_alive_response__pack + (const KeepAliveResponse *message, + uint8_t *out); +size_t keep_alive_response__pack_to_buffer + (const KeepAliveResponse *message, + ProtobufCBuffer *buffer); +KeepAliveResponse * + keep_alive_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void keep_alive_response__free_unpacked + (KeepAliveResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*KeepAliveResponse_Closure) + (const KeepAliveResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor keep_alive_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_KeepAliveResponse_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.c index 0f52fa295..350a5e5bd 100644 --- a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.c +++ b/Software/Code_Composer/twine_usblib_demo/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[37] = +static const ProtobufCEnumValue message_type__enum_values_by_number[46] = { { "RGB", "MESSAGE_TYPE__RGB", 0 }, { "Job", "MESSAGE_TYPE__Job", 1 }, @@ -46,15 +46,33 @@ static const ProtobufCEnumValue message_type__enum_values_by_number[37] = { "StubExtFlashReadResponse", "MESSAGE_TYPE__StubExtFlashReadResponse", 34 }, { "StubExtFlashWriteRequest", "MESSAGE_TYPE__StubExtFlashWriteRequest", 35 }, { "StubExtFlashWriteResponse", "MESSAGE_TYPE__StubExtFlashWriteResponse", 36 }, + { "ExternalBridgeUdpDiscoveryPacket", "MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket", 37 }, + { "ExternalClientLoginRequest", "MESSAGE_TYPE__ExternalClientLoginRequest", 38 }, + { "ExternalClientLoginResponse", "MESSAGE_TYPE__ExternalClientLoginResponse", 39 }, + { "DirectSynchronizationRequest", "MESSAGE_TYPE__DirectSynchronizationRequest", 40 }, + { "DirectSynchronizationResponse", "MESSAGE_TYPE__DirectSynchronizationResponse", 41 }, + { "OverrideDataBaseRequest", "MESSAGE_TYPE__OverrideDataBaseRequest", 42 }, + { "OverrideDataBaseResponse", "MESSAGE_TYPE__OverrideDataBaseResponse", 43 }, + { "KeepAliveRequest", "MESSAGE_TYPE__KeepAliveRequest", 44 }, + { "KeepAliveResponse", "MESSAGE_TYPE__KeepAliveResponse", 45 }, }; static const ProtobufCIntRange message_type__value_ranges[] = { -{0, 0},{0, 37} +{0, 0},{0, 46} }; -static const ProtobufCEnumValueIndex message_type__enum_values_by_name[37] = +static const ProtobufCEnumValueIndex message_type__enum_values_by_name[46] = { { "CalculateRequest", 3 }, { "CalculateResponse", 4 }, + { "DirectSynchronizationRequest", 40 }, + { "DirectSynchronizationResponse", 41 }, + { "ExternalBridgeUdpDiscoveryPacket", 37 }, + { "ExternalClientLoginRequest", 38 }, + { "ExternalClientLoginResponse", 39 }, { "Job", 1 }, + { "KeepAliveRequest", 44 }, + { "KeepAliveResponse", 45 }, + { "OverrideDataBaseRequest", 42 }, + { "OverrideDataBaseResponse", 43 }, { "ProgressRequest", 5 }, { "ProgressResponse", 6 }, { "RGB", 0 }, @@ -97,9 +115,9 @@ const ProtobufCEnumDescriptor message_type__descriptor = "MessageType", "MessageType", "", - 37, + 46, message_type__enum_values_by_number, - 37, + 46, message_type__enum_values_by_name, 1, message_type__value_ranges, diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.h index 1f6bc4229..18fb45844 100644 --- a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.h +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.h @@ -56,7 +56,16 @@ typedef enum _MessageType { MESSAGE_TYPE__StubExtFlashReadRequest = 33, MESSAGE_TYPE__StubExtFlashReadResponse = 34, MESSAGE_TYPE__StubExtFlashWriteRequest = 35, - MESSAGE_TYPE__StubExtFlashWriteResponse = 36 + MESSAGE_TYPE__StubExtFlashWriteResponse = 36, + MESSAGE_TYPE__ExternalBridgeUdpDiscoveryPacket = 37, + MESSAGE_TYPE__ExternalClientLoginRequest = 38, + MESSAGE_TYPE__ExternalClientLoginResponse = 39, + MESSAGE_TYPE__DirectSynchronizationRequest = 40, + MESSAGE_TYPE__DirectSynchronizationResponse = 41, + MESSAGE_TYPE__OverrideDataBaseRequest = 42, + MESSAGE_TYPE__OverrideDataBaseResponse = 43, + MESSAGE_TYPE__KeepAliveRequest = 44, + MESSAGE_TYPE__KeepAliveResponse = 45 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(MESSAGE_TYPE) } MessageType; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationRequest.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationRequest.pb-c.c new file mode 100644 index 000000000..cb729fed6 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DirectSynchronizationRequest.pb-c.h" +void direct_synchronization_request__init + (DirectSynchronizationRequest *message) +{ + static const DirectSynchronizationRequest init_value = DIRECT_SYNCHRONIZATION_REQUEST__INIT; + *message = init_value; +} +size_t direct_synchronization_request__get_packed_size + (const DirectSynchronizationRequest *message) +{ + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t direct_synchronization_request__pack + (const DirectSynchronizationRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t direct_synchronization_request__pack_to_buffer + (const DirectSynchronizationRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DirectSynchronizationRequest * + direct_synchronization_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DirectSynchronizationRequest *) + protobuf_c_message_unpack (&direct_synchronization_request__descriptor, + allocator, len, data); +} +void direct_synchronization_request__free_unpacked + (DirectSynchronizationRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &direct_synchronization_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define direct_synchronization_request__field_descriptors NULL +#define direct_synchronization_request__field_indices_by_name NULL +#define direct_synchronization_request__number_ranges NULL +const ProtobufCMessageDescriptor direct_synchronization_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DirectSynchronizationRequest", + "DirectSynchronizationRequest", + "DirectSynchronizationRequest", + "", + sizeof(DirectSynchronizationRequest), + 0, + direct_synchronization_request__field_descriptors, + direct_synchronization_request__field_indices_by_name, + 0, direct_synchronization_request__number_ranges, + (ProtobufCMessageInit) direct_synchronization_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationRequest.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationRequest.pb-c.h new file mode 100644 index 000000000..81cdae5b9 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationRequest.proto */ + +#ifndef PROTOBUF_C_DirectSynchronizationRequest_2eproto__INCLUDED +#define PROTOBUF_C_DirectSynchronizationRequest_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 _DirectSynchronizationRequest DirectSynchronizationRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DirectSynchronizationRequest +{ + ProtobufCMessage base; +}; +#define DIRECT_SYNCHRONIZATION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&direct_synchronization_request__descriptor) \ + } + + +/* DirectSynchronizationRequest methods */ +void direct_synchronization_request__init + (DirectSynchronizationRequest *message); +size_t direct_synchronization_request__get_packed_size + (const DirectSynchronizationRequest *message); +size_t direct_synchronization_request__pack + (const DirectSynchronizationRequest *message, + uint8_t *out); +size_t direct_synchronization_request__pack_to_buffer + (const DirectSynchronizationRequest *message, + ProtobufCBuffer *buffer); +DirectSynchronizationRequest * + direct_synchronization_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void direct_synchronization_request__free_unpacked + (DirectSynchronizationRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DirectSynchronizationRequest_Closure) + (const DirectSynchronizationRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor direct_synchronization_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DirectSynchronizationRequest_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationResponse.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationResponse.pb-c.c new file mode 100644 index 000000000..d37e0a020 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DirectSynchronizationResponse.pb-c.h" +void direct_synchronization_response__init + (DirectSynchronizationResponse *message) +{ + static const DirectSynchronizationResponse init_value = DIRECT_SYNCHRONIZATION_RESPONSE__INIT; + *message = init_value; +} +size_t direct_synchronization_response__get_packed_size + (const DirectSynchronizationResponse *message) +{ + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t direct_synchronization_response__pack + (const DirectSynchronizationResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t direct_synchronization_response__pack_to_buffer + (const DirectSynchronizationResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DirectSynchronizationResponse * + direct_synchronization_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DirectSynchronizationResponse *) + protobuf_c_message_unpack (&direct_synchronization_response__descriptor, + allocator, len, data); +} +void direct_synchronization_response__free_unpacked + (DirectSynchronizationResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &direct_synchronization_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor direct_synchronization_response__field_descriptors[1] = +{ + { + "LocalDB", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(DirectSynchronizationResponse, has_localdb), + offsetof(DirectSynchronizationResponse, localdb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned direct_synchronization_response__field_indices_by_name[] = { + 0, /* field[0] = LocalDB */ +}; +static const ProtobufCIntRange direct_synchronization_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor direct_synchronization_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DirectSynchronizationResponse", + "DirectSynchronizationResponse", + "DirectSynchronizationResponse", + "", + sizeof(DirectSynchronizationResponse), + 1, + direct_synchronization_response__field_descriptors, + direct_synchronization_response__field_indices_by_name, + 1, direct_synchronization_response__number_ranges, + (ProtobufCMessageInit) direct_synchronization_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationResponse.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationResponse.pb-c.h new file mode 100644 index 000000000..c263b6831 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/DirectSynchronizationResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DirectSynchronizationResponse.proto */ + +#ifndef PROTOBUF_C_DirectSynchronizationResponse_2eproto__INCLUDED +#define PROTOBUF_C_DirectSynchronizationResponse_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 _DirectSynchronizationResponse DirectSynchronizationResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DirectSynchronizationResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_localdb; + ProtobufCBinaryData localdb; +}; +#define DIRECT_SYNCHRONIZATION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&direct_synchronization_response__descriptor) \ + , 0, {0,NULL} } + + +/* DirectSynchronizationResponse methods */ +void direct_synchronization_response__init + (DirectSynchronizationResponse *message); +size_t direct_synchronization_response__get_packed_size + (const DirectSynchronizationResponse *message); +size_t direct_synchronization_response__pack + (const DirectSynchronizationResponse *message, + uint8_t *out); +size_t direct_synchronization_response__pack_to_buffer + (const DirectSynchronizationResponse *message, + ProtobufCBuffer *buffer); +DirectSynchronizationResponse * + direct_synchronization_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void direct_synchronization_response__free_unpacked + (DirectSynchronizationResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DirectSynchronizationResponse_Closure) + (const DirectSynchronizationResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor direct_synchronization_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DirectSynchronizationResponse_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.c index a19339ec5..d4be46d19 100644 --- a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.c +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.c @@ -55,12 +55,12 @@ void external_client_login_request__free_unpacked static const ProtobufCFieldDescriptor external_client_login_request__field_descriptors[1] = { { - "key", + "Password", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(ExternalClientLoginRequest, key), + offsetof(ExternalClientLoginRequest, password), NULL, NULL, 0, /* flags */ @@ -68,7 +68,7 @@ static const ProtobufCFieldDescriptor external_client_login_request__field_descr }, }; static const unsigned external_client_login_request__field_indices_by_name[] = { - 0, /* field[0] = key */ + 0, /* field[0] = Password */ }; static const ProtobufCIntRange external_client_login_request__number_ranges[1 + 1] = { diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.h index b2ff576b0..86ea53825 100644 --- a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.h +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/ExternalClientLoginRequest.pb-c.h @@ -26,7 +26,7 @@ typedef struct _ExternalClientLoginRequest ExternalClientLoginRequest; struct _ExternalClientLoginRequest { ProtobufCMessage base; - char *key; + char *password; }; #define EXTERNAL_CLIENT_LOGIN_REQUEST__INIT \ { PROTOBUF_C_MESSAGE_INIT (&external_client_login_request__descriptor) \ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseRequest.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseRequest.pb-c.c new file mode 100644 index 000000000..5c80a3949 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "OverrideDataBaseRequest.pb-c.h" +void override_data_base_request__init + (OverrideDataBaseRequest *message) +{ + static const OverrideDataBaseRequest init_value = OVERRIDE_DATA_BASE_REQUEST__INIT; + *message = init_value; +} +size_t override_data_base_request__get_packed_size + (const OverrideDataBaseRequest *message) +{ + assert(message->base.descriptor == &override_data_base_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t override_data_base_request__pack + (const OverrideDataBaseRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &override_data_base_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t override_data_base_request__pack_to_buffer + (const OverrideDataBaseRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &override_data_base_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +OverrideDataBaseRequest * + override_data_base_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (OverrideDataBaseRequest *) + protobuf_c_message_unpack (&override_data_base_request__descriptor, + allocator, len, data); +} +void override_data_base_request__free_unpacked + (OverrideDataBaseRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &override_data_base_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor override_data_base_request__field_descriptors[1] = +{ + { + "RemoteDB", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(OverrideDataBaseRequest, has_remotedb), + offsetof(OverrideDataBaseRequest, remotedb), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned override_data_base_request__field_indices_by_name[] = { + 0, /* field[0] = RemoteDB */ +}; +static const ProtobufCIntRange override_data_base_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor override_data_base_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "OverrideDataBaseRequest", + "OverrideDataBaseRequest", + "OverrideDataBaseRequest", + "", + sizeof(OverrideDataBaseRequest), + 1, + override_data_base_request__field_descriptors, + override_data_base_request__field_indices_by_name, + 1, override_data_base_request__number_ranges, + (ProtobufCMessageInit) override_data_base_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseRequest.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseRequest.pb-c.h new file mode 100644 index 000000000..e73ab63cc --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseRequest.proto */ + +#ifndef PROTOBUF_C_OverrideDataBaseRequest_2eproto__INCLUDED +#define PROTOBUF_C_OverrideDataBaseRequest_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 _OverrideDataBaseRequest OverrideDataBaseRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _OverrideDataBaseRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_remotedb; + ProtobufCBinaryData remotedb; +}; +#define OVERRIDE_DATA_BASE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&override_data_base_request__descriptor) \ + , 0, {0,NULL} } + + +/* OverrideDataBaseRequest methods */ +void override_data_base_request__init + (OverrideDataBaseRequest *message); +size_t override_data_base_request__get_packed_size + (const OverrideDataBaseRequest *message); +size_t override_data_base_request__pack + (const OverrideDataBaseRequest *message, + uint8_t *out); +size_t override_data_base_request__pack_to_buffer + (const OverrideDataBaseRequest *message, + ProtobufCBuffer *buffer); +OverrideDataBaseRequest * + override_data_base_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void override_data_base_request__free_unpacked + (OverrideDataBaseRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*OverrideDataBaseRequest_Closure) + (const OverrideDataBaseRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor override_data_base_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_OverrideDataBaseRequest_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseResponse.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseResponse.pb-c.c new file mode 100644 index 000000000..fe11e66f0 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "OverrideDataBaseResponse.pb-c.h" +void override_data_base_response__init + (OverrideDataBaseResponse *message) +{ + static const OverrideDataBaseResponse init_value = OVERRIDE_DATA_BASE_RESPONSE__INIT; + *message = init_value; +} +size_t override_data_base_response__get_packed_size + (const OverrideDataBaseResponse *message) +{ + assert(message->base.descriptor == &override_data_base_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t override_data_base_response__pack + (const OverrideDataBaseResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &override_data_base_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t override_data_base_response__pack_to_buffer + (const OverrideDataBaseResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &override_data_base_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +OverrideDataBaseResponse * + override_data_base_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (OverrideDataBaseResponse *) + protobuf_c_message_unpack (&override_data_base_response__descriptor, + allocator, len, data); +} +void override_data_base_response__free_unpacked + (OverrideDataBaseResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &override_data_base_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor override_data_base_response__field_descriptors[1] = +{ + { + "Successful", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(OverrideDataBaseResponse, has_successful), + offsetof(OverrideDataBaseResponse, successful), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned override_data_base_response__field_indices_by_name[] = { + 0, /* field[0] = Successful */ +}; +static const ProtobufCIntRange override_data_base_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor override_data_base_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "OverrideDataBaseResponse", + "OverrideDataBaseResponse", + "OverrideDataBaseResponse", + "", + sizeof(OverrideDataBaseResponse), + 1, + override_data_base_response__field_descriptors, + override_data_base_response__field_indices_by_name, + 1, override_data_base_response__number_ranges, + (ProtobufCMessageInit) override_data_base_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseResponse.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseResponse.pb-c.h new file mode 100644 index 000000000..339349441 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Integration/OverrideDataBaseResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OverrideDataBaseResponse.proto */ + +#ifndef PROTOBUF_C_OverrideDataBaseResponse_2eproto__INCLUDED +#define PROTOBUF_C_OverrideDataBaseResponse_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 _OverrideDataBaseResponse OverrideDataBaseResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _OverrideDataBaseResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_successful; + protobuf_c_boolean successful; +}; +#define OVERRIDE_DATA_BASE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&override_data_base_response__descriptor) \ + , 0, 0 } + + +/* OverrideDataBaseResponse methods */ +void override_data_base_response__init + (OverrideDataBaseResponse *message); +size_t override_data_base_response__get_packed_size + (const OverrideDataBaseResponse *message); +size_t override_data_base_response__pack + (const OverrideDataBaseResponse *message, + uint8_t *out); +size_t override_data_base_response__pack_to_buffer + (const OverrideDataBaseResponse *message, + ProtobufCBuffer *buffer); +OverrideDataBaseResponse * + override_data_base_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void override_data_base_response__free_unpacked + (OverrideDataBaseResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*OverrideDataBaseResponse_Closure) + (const OverrideDataBaseResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor override_data_base_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_OverrideDataBaseResponse_2eproto__INCLUDED */ |
