diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-12-18 09:00:24 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-12-18 09:00:24 +0200 |
| commit | 1b92f30f6dfa27392ffd8460ebeb17c17550db7b (patch) | |
| tree | 5bfafc883cbed960766b4455f024f208f1f76375 /Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading | |
| parent | e1ef835095c9a6f98c8b15fedc585e2caf77ecd6 (diff) | |
| download | Tango-1b92f30f6dfa27392ffd8460ebeb17c17550db7b.tar.gz Tango-1b92f30f6dfa27392ffd8460ebeb17c17550db7b.zip | |
version 1.4.6.1 PMR: thread load and power down reporting. fix USB driver large files bug. ids pressure relief. some looking into the thread load sequence
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading')
10 files changed, 759 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.c new file mode 100644 index 000000000..2fc811bf7 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ContinueThreadLoadingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ContinueThreadLoadingRequest.pb-c.h" +void continue_thread_loading_request__init + (ContinueThreadLoadingRequest *message) +{ + static const ContinueThreadLoadingRequest init_value = CONTINUE_THREAD_LOADING_REQUEST__INIT; + *message = init_value; +} +size_t continue_thread_loading_request__get_packed_size + (const ContinueThreadLoadingRequest *message) +{ + assert(message->base.descriptor == &continue_thread_loading_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t continue_thread_loading_request__pack + (const ContinueThreadLoadingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &continue_thread_loading_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t continue_thread_loading_request__pack_to_buffer + (const ContinueThreadLoadingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &continue_thread_loading_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ContinueThreadLoadingRequest * + continue_thread_loading_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ContinueThreadLoadingRequest *) + protobuf_c_message_unpack (&continue_thread_loading_request__descriptor, + allocator, len, data); +} +void continue_thread_loading_request__free_unpacked + (ContinueThreadLoadingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &continue_thread_loading_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor continue_thread_loading_request__field_descriptors[1] = +{ + { + "ProcessParameters", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(ContinueThreadLoadingRequest, processparameters), + &process_parameters__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned continue_thread_loading_request__field_indices_by_name[] = { + 0, /* field[0] = ProcessParameters */ +}; +static const ProtobufCIntRange continue_thread_loading_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor continue_thread_loading_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ContinueThreadLoadingRequest", + "ContinueThreadLoadingRequest", + "ContinueThreadLoadingRequest", + "", + sizeof(ContinueThreadLoadingRequest), + 1, + continue_thread_loading_request__field_descriptors, + continue_thread_loading_request__field_indices_by_name, + 1, continue_thread_loading_request__number_ranges, + (ProtobufCMessageInit) continue_thread_loading_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.h new file mode 100644 index 000000000..e37669179 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ContinueThreadLoadingRequest.proto */ + +#ifndef PROTOBUF_C_ContinueThreadLoadingRequest_2eproto__INCLUDED +#define PROTOBUF_C_ContinueThreadLoadingRequest_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 _ContinueThreadLoadingRequest ContinueThreadLoadingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ContinueThreadLoadingRequest +{ + ProtobufCMessage base; + ProcessParameters *processparameters; +}; +#define CONTINUE_THREAD_LOADING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&continue_thread_loading_request__descriptor) \ + , NULL } + + +/* ContinueThreadLoadingRequest methods */ +void continue_thread_loading_request__init + (ContinueThreadLoadingRequest *message); +size_t continue_thread_loading_request__get_packed_size + (const ContinueThreadLoadingRequest *message); +size_t continue_thread_loading_request__pack + (const ContinueThreadLoadingRequest *message, + uint8_t *out); +size_t continue_thread_loading_request__pack_to_buffer + (const ContinueThreadLoadingRequest *message, + ProtobufCBuffer *buffer); +ContinueThreadLoadingRequest * + continue_thread_loading_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void continue_thread_loading_request__free_unpacked + (ContinueThreadLoadingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ContinueThreadLoadingRequest_Closure) + (const ContinueThreadLoadingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor continue_thread_loading_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ContinueThreadLoadingRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.c new file mode 100644 index 000000000..aa61cd30e --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ContinueThreadLoadingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ContinueThreadLoadingResponse.pb-c.h" +void continue_thread_loading_response__init + (ContinueThreadLoadingResponse *message) +{ + static const ContinueThreadLoadingResponse init_value = CONTINUE_THREAD_LOADING_RESPONSE__INIT; + *message = init_value; +} +size_t continue_thread_loading_response__get_packed_size + (const ContinueThreadLoadingResponse *message) +{ + assert(message->base.descriptor == &continue_thread_loading_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t continue_thread_loading_response__pack + (const ContinueThreadLoadingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &continue_thread_loading_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t continue_thread_loading_response__pack_to_buffer + (const ContinueThreadLoadingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &continue_thread_loading_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ContinueThreadLoadingResponse * + continue_thread_loading_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ContinueThreadLoadingResponse *) + protobuf_c_message_unpack (&continue_thread_loading_response__descriptor, + allocator, len, data); +} +void continue_thread_loading_response__free_unpacked + (ContinueThreadLoadingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &continue_thread_loading_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor continue_thread_loading_response__field_descriptors[2] = +{ + { + "State", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(ContinueThreadLoadingResponse, has_state), + offsetof(ContinueThreadLoadingResponse, state), + &thread_loading_state__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ErrorReason", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(ContinueThreadLoadingResponse, errorreason), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned continue_thread_loading_response__field_indices_by_name[] = { + 1, /* field[1] = ErrorReason */ + 0, /* field[0] = State */ +}; +static const ProtobufCIntRange continue_thread_loading_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor continue_thread_loading_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ContinueThreadLoadingResponse", + "ContinueThreadLoadingResponse", + "ContinueThreadLoadingResponse", + "", + sizeof(ContinueThreadLoadingResponse), + 2, + continue_thread_loading_response__field_descriptors, + continue_thread_loading_response__field_indices_by_name, + 1, continue_thread_loading_response__number_ranges, + (ProtobufCMessageInit) continue_thread_loading_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.h new file mode 100644 index 000000000..ae83a671f --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ContinueThreadLoadingResponse.proto */ + +#ifndef PROTOBUF_C_ContinueThreadLoadingResponse_2eproto__INCLUDED +#define PROTOBUF_C_ContinueThreadLoadingResponse_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 "ThreadLoadingState.pb-c.h" + +typedef struct _ContinueThreadLoadingResponse ContinueThreadLoadingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ContinueThreadLoadingResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_state; + ThreadLoadingState state; + char *errorreason; +}; +#define CONTINUE_THREAD_LOADING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&continue_thread_loading_response__descriptor) \ + , 0, THREAD_LOADING_STATE__None, NULL } + + +/* ContinueThreadLoadingResponse methods */ +void continue_thread_loading_response__init + (ContinueThreadLoadingResponse *message); +size_t continue_thread_loading_response__get_packed_size + (const ContinueThreadLoadingResponse *message); +size_t continue_thread_loading_response__pack + (const ContinueThreadLoadingResponse *message, + uint8_t *out); +size_t continue_thread_loading_response__pack_to_buffer + (const ContinueThreadLoadingResponse *message, + ProtobufCBuffer *buffer); +ContinueThreadLoadingResponse * + continue_thread_loading_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void continue_thread_loading_response__free_unpacked + (ContinueThreadLoadingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ContinueThreadLoadingResponse_Closure) + (const ContinueThreadLoadingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor continue_thread_loading_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ContinueThreadLoadingResponse_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.c new file mode 100644 index 000000000..505d8e416 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StartThreadLoadingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StartThreadLoadingRequest.pb-c.h" +void start_thread_loading_request__init + (StartThreadLoadingRequest *message) +{ + static const StartThreadLoadingRequest init_value = START_THREAD_LOADING_REQUEST__INIT; + *message = init_value; +} +size_t start_thread_loading_request__get_packed_size + (const StartThreadLoadingRequest *message) +{ + assert(message->base.descriptor == &start_thread_loading_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t start_thread_loading_request__pack + (const StartThreadLoadingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &start_thread_loading_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t start_thread_loading_request__pack_to_buffer + (const StartThreadLoadingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &start_thread_loading_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StartThreadLoadingRequest * + start_thread_loading_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StartThreadLoadingRequest *) + protobuf_c_message_unpack (&start_thread_loading_request__descriptor, + allocator, len, data); +} +void start_thread_loading_request__free_unpacked + (StartThreadLoadingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &start_thread_loading_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define start_thread_loading_request__field_descriptors NULL +#define start_thread_loading_request__field_indices_by_name NULL +#define start_thread_loading_request__number_ranges NULL +const ProtobufCMessageDescriptor start_thread_loading_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StartThreadLoadingRequest", + "StartThreadLoadingRequest", + "StartThreadLoadingRequest", + "", + sizeof(StartThreadLoadingRequest), + 0, + start_thread_loading_request__field_descriptors, + start_thread_loading_request__field_indices_by_name, + 0, start_thread_loading_request__number_ranges, + (ProtobufCMessageInit) start_thread_loading_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.h new file mode 100644 index 000000000..a21a7ba7f --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StartThreadLoadingRequest.proto */ + +#ifndef PROTOBUF_C_StartThreadLoadingRequest_2eproto__INCLUDED +#define PROTOBUF_C_StartThreadLoadingRequest_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 _StartThreadLoadingRequest StartThreadLoadingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StartThreadLoadingRequest +{ + ProtobufCMessage base; +}; +#define START_THREAD_LOADING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&start_thread_loading_request__descriptor) \ + } + + +/* StartThreadLoadingRequest methods */ +void start_thread_loading_request__init + (StartThreadLoadingRequest *message); +size_t start_thread_loading_request__get_packed_size + (const StartThreadLoadingRequest *message); +size_t start_thread_loading_request__pack + (const StartThreadLoadingRequest *message, + uint8_t *out); +size_t start_thread_loading_request__pack_to_buffer + (const StartThreadLoadingRequest *message, + ProtobufCBuffer *buffer); +StartThreadLoadingRequest * + start_thread_loading_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void start_thread_loading_request__free_unpacked + (StartThreadLoadingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StartThreadLoadingRequest_Closure) + (const StartThreadLoadingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor start_thread_loading_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StartThreadLoadingRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.c new file mode 100644 index 000000000..01a110489 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StartThreadLoadingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StartThreadLoadingResponse.pb-c.h" +void start_thread_loading_response__init + (StartThreadLoadingResponse *message) +{ + static const StartThreadLoadingResponse init_value = START_THREAD_LOADING_RESPONSE__INIT; + *message = init_value; +} +size_t start_thread_loading_response__get_packed_size + (const StartThreadLoadingResponse *message) +{ + assert(message->base.descriptor == &start_thread_loading_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t start_thread_loading_response__pack + (const StartThreadLoadingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &start_thread_loading_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t start_thread_loading_response__pack_to_buffer + (const StartThreadLoadingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &start_thread_loading_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StartThreadLoadingResponse * + start_thread_loading_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StartThreadLoadingResponse *) + protobuf_c_message_unpack (&start_thread_loading_response__descriptor, + allocator, len, data); +} +void start_thread_loading_response__free_unpacked + (StartThreadLoadingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &start_thread_loading_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor start_thread_loading_response__field_descriptors[2] = +{ + { + "State", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(StartThreadLoadingResponse, has_state), + offsetof(StartThreadLoadingResponse, state), + &thread_loading_state__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ErrorReason", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StartThreadLoadingResponse, errorreason), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned start_thread_loading_response__field_indices_by_name[] = { + 1, /* field[1] = ErrorReason */ + 0, /* field[0] = State */ +}; +static const ProtobufCIntRange start_thread_loading_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor start_thread_loading_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StartThreadLoadingResponse", + "StartThreadLoadingResponse", + "StartThreadLoadingResponse", + "", + sizeof(StartThreadLoadingResponse), + 2, + start_thread_loading_response__field_descriptors, + start_thread_loading_response__field_indices_by_name, + 1, start_thread_loading_response__number_ranges, + (ProtobufCMessageInit) start_thread_loading_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.h new file mode 100644 index 000000000..559f04bb9 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StartThreadLoadingResponse.proto */ + +#ifndef PROTOBUF_C_StartThreadLoadingResponse_2eproto__INCLUDED +#define PROTOBUF_C_StartThreadLoadingResponse_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 "ThreadLoadingState.pb-c.h" + +typedef struct _StartThreadLoadingResponse StartThreadLoadingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StartThreadLoadingResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_state; + ThreadLoadingState state; + char *errorreason; +}; +#define START_THREAD_LOADING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&start_thread_loading_response__descriptor) \ + , 0, THREAD_LOADING_STATE__None, NULL } + + +/* StartThreadLoadingResponse methods */ +void start_thread_loading_response__init + (StartThreadLoadingResponse *message); +size_t start_thread_loading_response__get_packed_size + (const StartThreadLoadingResponse *message); +size_t start_thread_loading_response__pack + (const StartThreadLoadingResponse *message, + uint8_t *out); +size_t start_thread_loading_response__pack_to_buffer + (const StartThreadLoadingResponse *message, + ProtobufCBuffer *buffer); +StartThreadLoadingResponse * + start_thread_loading_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void start_thread_loading_response__free_unpacked + (StartThreadLoadingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StartThreadLoadingResponse_Closure) + (const StartThreadLoadingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor start_thread_loading_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StartThreadLoadingResponse_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.c new file mode 100644 index 000000000..bf926cdfa --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.c @@ -0,0 +1,47 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadLoadingState.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ThreadLoadingState.pb-c.h" +static const ProtobufCEnumValue thread_loading_state__enum_values_by_number[7] = +{ + { "None", "THREAD_LOADING_STATE__None", 0 }, + { "Preparing", "THREAD_LOADING_STATE__Preparing", 1 }, + { "ReadyForLoading", "THREAD_LOADING_STATE__ReadyForLoading", 2 }, + { "PreparationError", "THREAD_LOADING_STATE__PreparationError", 3 }, + { "Finalizing", "THREAD_LOADING_STATE__Finalizing", 4 }, + { "FinalizationError", "THREAD_LOADING_STATE__FinalizationError", 5 }, + { "Completed", "THREAD_LOADING_STATE__Completed", 6 }, +}; +static const ProtobufCIntRange thread_loading_state__value_ranges[] = { +{0, 0},{0, 7} +}; +static const ProtobufCEnumValueIndex thread_loading_state__enum_values_by_name[7] = +{ + { "Completed", 6 }, + { "FinalizationError", 5 }, + { "Finalizing", 4 }, + { "None", 0 }, + { "PreparationError", 3 }, + { "Preparing", 1 }, + { "ReadyForLoading", 2 }, +}; +const ProtobufCEnumDescriptor thread_loading_state__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "ThreadLoadingState", + "ThreadLoadingState", + "ThreadLoadingState", + "", + 7, + thread_loading_state__enum_values_by_number, + 7, + thread_loading_state__enum_values_by_name, + 1, + thread_loading_state__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.h new file mode 100644 index 000000000..4a08ce913 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.h @@ -0,0 +1,48 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadLoadingState.proto */ + +#ifndef PROTOBUF_C_ThreadLoadingState_2eproto__INCLUDED +#define PROTOBUF_C_ThreadLoadingState_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 _ThreadLoadingState { + THREAD_LOADING_STATE__None = 0, + THREAD_LOADING_STATE__Preparing = 1, + THREAD_LOADING_STATE__ReadyForLoading = 2, + THREAD_LOADING_STATE__PreparationError = 3, + THREAD_LOADING_STATE__Finalizing = 4, + THREAD_LOADING_STATE__FinalizationError = 5, + THREAD_LOADING_STATE__Completed = 6 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(THREAD_LOADING_STATE) +} ThreadLoadingState; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor thread_loading_state__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ThreadLoadingState_2eproto__INCLUDED */ |
