diff options
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/PMR/Stubs')
5 files changed, 404 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.c new file mode 100644 index 000000000..3537ec062 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubIntADCReadRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubIntADCReadRequest.pb-c.h" +void stub_int_adcread_request__init + (StubIntADCReadRequest *message) +{ + static const StubIntADCReadRequest init_value = STUB_INT_ADCREAD_REQUEST__INIT; + *message = init_value; +} +size_t stub_int_adcread_request__get_packed_size + (const StubIntADCReadRequest *message) +{ + assert(message->base.descriptor == &stub_int_adcread_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_int_adcread_request__pack + (const StubIntADCReadRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_int_adcread_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_int_adcread_request__pack_to_buffer + (const StubIntADCReadRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_int_adcread_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubIntADCReadRequest * + stub_int_adcread_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubIntADCReadRequest *) + protobuf_c_message_unpack (&stub_int_adcread_request__descriptor, + allocator, len, data); +} +void stub_int_adcread_request__free_unpacked + (StubIntADCReadRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_int_adcread_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_int_adcread_request__field_descriptors[1] = +{ + { + "ADC_Device", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubIntADCReadRequest, has_adc_device), + offsetof(StubIntADCReadRequest, adc_device), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_int_adcread_request__field_indices_by_name[] = { + 0, /* field[0] = ADC_Device */ +}; +static const ProtobufCIntRange stub_int_adcread_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor stub_int_adcread_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubIntADCReadRequest", + "StubIntADCReadRequest", + "StubIntADCReadRequest", + "", + sizeof(StubIntADCReadRequest), + 1, + stub_int_adcread_request__field_descriptors, + stub_int_adcread_request__field_indices_by_name, + 1, stub_int_adcread_request__number_ranges, + (ProtobufCMessageInit) stub_int_adcread_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.h new file mode 100644 index 000000000..cbf4116a6 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadRequest.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubIntADCReadRequest.proto */ + +#ifndef PROTOBUF_C_StubIntADCReadRequest_2eproto__INCLUDED +#define PROTOBUF_C_StubIntADCReadRequest_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 _StubIntADCReadRequest StubIntADCReadRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubIntADCReadRequest +{ + ProtobufCMessage base; + /* + */ + protobuf_c_boolean has_adc_device; + uint32_t adc_device; +}; +#define STUB_INT_ADCREAD_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_int_adcread_request__descriptor) \ + , 0, 0 } + + +/* StubIntADCReadRequest methods */ +void stub_int_adcread_request__init + (StubIntADCReadRequest *message); +size_t stub_int_adcread_request__get_packed_size + (const StubIntADCReadRequest *message); +size_t stub_int_adcread_request__pack + (const StubIntADCReadRequest *message, + uint8_t *out); +size_t stub_int_adcread_request__pack_to_buffer + (const StubIntADCReadRequest *message, + ProtobufCBuffer *buffer); +StubIntADCReadRequest * + stub_int_adcread_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_int_adcread_request__free_unpacked + (StubIntADCReadRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubIntADCReadRequest_Closure) + (const StubIntADCReadRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_int_adcread_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubIntADCReadRequest_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.c new file mode 100644 index 000000000..00dd040fe --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubIntADCReadResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "StubIntADCReadResponse.pb-c.h" +void stub_int_adcread_response__init + (StubIntADCReadResponse *message) +{ + static const StubIntADCReadResponse init_value = STUB_INT_ADCREAD_RESPONSE__INIT; + *message = init_value; +} +size_t stub_int_adcread_response__get_packed_size + (const StubIntADCReadResponse *message) +{ + assert(message->base.descriptor == &stub_int_adcread_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t stub_int_adcread_response__pack + (const StubIntADCReadResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &stub_int_adcread_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t stub_int_adcread_response__pack_to_buffer + (const StubIntADCReadResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &stub_int_adcread_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +StubIntADCReadResponse * + stub_int_adcread_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (StubIntADCReadResponse *) + protobuf_c_message_unpack (&stub_int_adcread_response__descriptor, + allocator, len, data); +} +void stub_int_adcread_response__free_unpacked + (StubIntADCReadResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &stub_int_adcread_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor stub_int_adcread_response__field_descriptors[5] = +{ + { + "ADC_Device", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubIntADCReadResponse, has_adc_device), + offsetof(StubIntADCReadResponse, adc_device), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Sampling_in_Bits", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubIntADCReadResponse, has_sampling_in_bits), + offsetof(StubIntADCReadResponse, sampling_in_bits), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Voltage_Sampling_mv", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(StubIntADCReadResponse, has_voltage_sampling_mv), + offsetof(StubIntADCReadResponse, voltage_sampling_mv), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Status", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(StubIntADCReadResponse, status), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "StatusWord", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_UINT32, + offsetof(StubIntADCReadResponse, has_statusword), + offsetof(StubIntADCReadResponse, statusword), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned stub_int_adcread_response__field_indices_by_name[] = { + 0, /* field[0] = ADC_Device */ + 1, /* field[1] = Sampling_in_Bits */ + 3, /* field[3] = Status */ + 4, /* field[4] = StatusWord */ + 2, /* field[2] = Voltage_Sampling_mv */ +}; +static const ProtobufCIntRange stub_int_adcread_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor stub_int_adcread_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "StubIntADCReadResponse", + "StubIntADCReadResponse", + "StubIntADCReadResponse", + "", + sizeof(StubIntADCReadResponse), + 5, + stub_int_adcread_response__field_descriptors, + stub_int_adcread_response__field_indices_by_name, + 1, stub_int_adcread_response__number_ranges, + (ProtobufCMessageInit) stub_int_adcread_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.h new file mode 100644 index 000000000..24f17bf87 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubIntADCReadResponse.pb-c.h @@ -0,0 +1,91 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: StubIntADCReadResponse.proto */ + +#ifndef PROTOBUF_C_StubIntADCReadResponse_2eproto__INCLUDED +#define PROTOBUF_C_StubIntADCReadResponse_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 _StubIntADCReadResponse StubIntADCReadResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _StubIntADCReadResponse +{ + ProtobufCMessage base; + /* + */ + protobuf_c_boolean has_adc_device; + uint32_t adc_device; + /* + */ + protobuf_c_boolean has_sampling_in_bits; + int32_t sampling_in_bits; + /* + */ + protobuf_c_boolean has_voltage_sampling_mv; + int32_t voltage_sampling_mv; + /* + * Passed/Failed + */ + char *status; + /* + * Error number/bit when the status is Failed + */ + protobuf_c_boolean has_statusword; + uint32_t statusword; +}; +#define STUB_INT_ADCREAD_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&stub_int_adcread_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, NULL, 0, 0 } + + +/* StubIntADCReadResponse methods */ +void stub_int_adcread_response__init + (StubIntADCReadResponse *message); +size_t stub_int_adcread_response__get_packed_size + (const StubIntADCReadResponse *message); +size_t stub_int_adcread_response__pack + (const StubIntADCReadResponse *message, + uint8_t *out); +size_t stub_int_adcread_response__pack_to_buffer + (const StubIntADCReadResponse *message, + ProtobufCBuffer *buffer); +StubIntADCReadResponse * + stub_int_adcread_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void stub_int_adcread_response__free_unpacked + (StubIntADCReadResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*StubIntADCReadResponse_Closure) + (const StubIntADCReadResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor stub_int_adcread_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_StubIntADCReadResponse_2eproto__INCLUDED */ diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h index 2a98d2806..6bc9cfa68 100644 --- a/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h +++ b/Software/Embedded_SW/Embedded/Communication/PMR/Stubs/StubSpeedSensorResponse.pb-c.h @@ -26,6 +26,9 @@ typedef struct _StubSpeedSensorResponse StubSpeedSensorResponse; struct _StubSpeedSensorResponse { ProtobufCMessage base; + /* + *uint32 Speed_Sensor_ID = 1; + */ protobuf_c_boolean has_speed; uint32_t speed; }; |
