aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/Hardware
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/PMR/Hardware')
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c118
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h77
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c35
-rw-r--r--Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h45
4 files changed, 275 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c
new file mode 100644
index 000000000..a0f34fe31
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.c
@@ -0,0 +1,118 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensor.proto */
+
+/* Do not generate deprecated warnings for self */
+#ifndef PROTOBUF_C__NO_DEPRECATED
+#define PROTOBUF_C__NO_DEPRECATED
+#endif
+
+#include "HardwareSpeedSensor.pb-c.h"
+void hardware_speed_sensor__init
+ (HardwareSpeedSensor *message)
+{
+ static const HardwareSpeedSensor init_value = HARDWARE_SPEED_SENSOR__INIT;
+ *message = init_value;
+}
+size_t hardware_speed_sensor__get_packed_size
+ (const HardwareSpeedSensor *message)
+{
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t hardware_speed_sensor__pack
+ (const HardwareSpeedSensor *message,
+ uint8_t *out)
+{
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t hardware_speed_sensor__pack_to_buffer
+ (const HardwareSpeedSensor *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+HardwareSpeedSensor *
+ hardware_speed_sensor__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (HardwareSpeedSensor *)
+ protobuf_c_message_unpack (&hardware_speed_sensor__descriptor,
+ allocator, len, data);
+}
+void hardware_speed_sensor__free_unpacked
+ (HardwareSpeedSensor *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->base.descriptor == &hardware_speed_sensor__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+static const ProtobufCFieldDescriptor hardware_speed_sensor__field_descriptors[3] =
+{
+ {
+ "HardwareSpeedSensorType",
+ 1,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_ENUM,
+ offsetof(HardwareSpeedSensor, has_hardwarespeedsensortype),
+ offsetof(HardwareSpeedSensor, hardwarespeedsensortype),
+ &hardware_speed_sensor_type__descriptor,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "ResolutionBits",
+ 2,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_INT32,
+ offsetof(HardwareSpeedSensor, has_resolutionbits),
+ offsetof(HardwareSpeedSensor, resolutionbits),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "Perimeter",
+ 3,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_DOUBLE,
+ offsetof(HardwareSpeedSensor, has_perimeter),
+ offsetof(HardwareSpeedSensor, perimeter),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned hardware_speed_sensor__field_indices_by_name[] = {
+ 0, /* field[0] = HardwareSpeedSensorType */
+ 2, /* field[2] = Perimeter */
+ 1, /* field[1] = ResolutionBits */
+};
+static const ProtobufCIntRange hardware_speed_sensor__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 3 }
+};
+const ProtobufCMessageDescriptor hardware_speed_sensor__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "HardwareSpeedSensor",
+ "HardwareSpeedSensor",
+ "HardwareSpeedSensor",
+ "",
+ sizeof(HardwareSpeedSensor),
+ 3,
+ hardware_speed_sensor__field_descriptors,
+ hardware_speed_sensor__field_indices_by_name,
+ 1, hardware_speed_sensor__number_ranges,
+ (ProtobufCMessageInit) hardware_speed_sensor__init,
+ NULL,NULL,NULL /* reserved[123] */
+};
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h
new file mode 100644
index 000000000..8c46e86c0
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensor.pb-c.h
@@ -0,0 +1,77 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensor.proto */
+
+#ifndef PROTOBUF_C_HardwareSpeedSensor_2eproto__INCLUDED
+#define PROTOBUF_C_HardwareSpeedSensor_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 "HardwareSpeedSensorType.pb-c.h"
+
+typedef struct _HardwareSpeedSensor HardwareSpeedSensor;
+
+
+/* --- enums --- */
+
+
+/* --- messages --- */
+
+struct _HardwareSpeedSensor
+{
+ ProtobufCMessage base;
+ protobuf_c_boolean has_hardwarespeedsensortype;
+ HardwareSpeedSensorType hardwarespeedsensortype;
+ protobuf_c_boolean has_resolutionbits;
+ int32_t resolutionbits;
+ protobuf_c_boolean has_perimeter;
+ double perimeter;
+};
+#define HARDWARE_SPEED_SENSOR__INIT \
+ { PROTOBUF_C_MESSAGE_INIT (&hardware_speed_sensor__descriptor) \
+ , 0, HARDWARE_SPEED_SENSOR_TYPE__DefaultSpeedSensor, 0, 0, 0, 0 }
+
+
+/* HardwareSpeedSensor methods */
+void hardware_speed_sensor__init
+ (HardwareSpeedSensor *message);
+size_t hardware_speed_sensor__get_packed_size
+ (const HardwareSpeedSensor *message);
+size_t hardware_speed_sensor__pack
+ (const HardwareSpeedSensor *message,
+ uint8_t *out);
+size_t hardware_speed_sensor__pack_to_buffer
+ (const HardwareSpeedSensor *message,
+ ProtobufCBuffer *buffer);
+HardwareSpeedSensor *
+ hardware_speed_sensor__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void hardware_speed_sensor__free_unpacked
+ (HardwareSpeedSensor *message,
+ ProtobufCAllocator *allocator);
+/* --- per-message closures --- */
+
+typedef void (*HardwareSpeedSensor_Closure)
+ (const HardwareSpeedSensor *message,
+ void *closure_data);
+
+/* --- services --- */
+
+
+/* --- descriptors --- */
+
+extern const ProtobufCMessageDescriptor hardware_speed_sensor__descriptor;
+
+PROTOBUF_C__END_DECLS
+
+
+#endif /* PROTOBUF_C_HardwareSpeedSensor_2eproto__INCLUDED */
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c
new file mode 100644
index 000000000..20c66aff3
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.c
@@ -0,0 +1,35 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensorType.proto */
+
+/* Do not generate deprecated warnings for self */
+#ifndef PROTOBUF_C__NO_DEPRECATED
+#define PROTOBUF_C__NO_DEPRECATED
+#endif
+
+#include "HardwareSpeedSensorType.pb-c.h"
+static const ProtobufCEnumValue hardware_speed_sensor_type__enum_values_by_number[1] =
+{
+ { "DefaultSpeedSensor", "HARDWARE_SPEED_SENSOR_TYPE__DefaultSpeedSensor", 0 },
+};
+static const ProtobufCIntRange hardware_speed_sensor_type__value_ranges[] = {
+{0, 0},{0, 1}
+};
+static const ProtobufCEnumValueIndex hardware_speed_sensor_type__enum_values_by_name[1] =
+{
+ { "DefaultSpeedSensor", 0 },
+};
+const ProtobufCEnumDescriptor hardware_speed_sensor_type__descriptor =
+{
+ PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
+ "HardwareSpeedSensorType",
+ "HardwareSpeedSensorType",
+ "HardwareSpeedSensorType",
+ "",
+ 1,
+ hardware_speed_sensor_type__enum_values_by_number,
+ 1,
+ hardware_speed_sensor_type__enum_values_by_name,
+ 1,
+ hardware_speed_sensor_type__value_ranges,
+ NULL,NULL,NULL,NULL /* reserved[1234] */
+};
diff --git a/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h
new file mode 100644
index 000000000..567c2246e
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Communication/PMR/Hardware/HardwareSpeedSensorType.pb-c.h
@@ -0,0 +1,45 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: HardwareSpeedSensorType.proto */
+
+#ifndef PROTOBUF_C_HardwareSpeedSensorType_2eproto__INCLUDED
+#define PROTOBUF_C_HardwareSpeedSensorType_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 _HardwareSpeedSensorType {
+ /*
+ *Default Speed Sensor
+ */
+ HARDWARE_SPEED_SENSOR_TYPE__DefaultSpeedSensor = 0
+ PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(HARDWARE_SPEED_SENSOR_TYPE)
+} HardwareSpeedSensorType;
+
+/* --- messages --- */
+
+/* --- per-message closures --- */
+
+
+/* --- services --- */
+
+
+/* --- descriptors --- */
+
+extern const ProtobufCEnumDescriptor hardware_speed_sensor_type__descriptor;
+
+PROTOBUF_C__END_DECLS
+
+
+#endif /* PROTOBUF_C_HardwareSpeedSensorType_2eproto__INCLUDED */