aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/ConfigurationParameters.pb-c.h
blob: 4901daef576dd8228ad66e9a1b5cdd96c3dde461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: ConfigurationParameters.proto */

#ifndef PROTOBUF_C_ConfigurationParameters_2eproto__INCLUDED
#define PROTOBUF_C_ConfigurationParameters_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 _ConfigurationParameters ConfigurationParameters;


/* --- enums --- */


/* --- messages --- */

struct  _ConfigurationParameters
{
  ProtobufCMessage base;
  protobuf_c_boolean has_breaksensorlimit;
  uint32_t breaksensorlimit;
  protobuf_c_boolean has_diagnosticcollectionlimit;
  uint32_t diagnosticcollectionlimit;
  protobuf_c_boolean has_overheatcountlimit;
  uint32_t overheatcountlimit;
  protobuf_c_boolean has_underheatcountlimit;
  uint32_t underheatcountlimit;
  protobuf_c_boolean has_closevalvetimeout;
  uint32_t closevalvetimeout;
  protobuf_c_boolean has_openvalvetimeout;
  uint32_t openvalvetimeout;
  protobuf_c_boolean has_initialdispenserpressure;
  double initialdispenserpressure;
  protobuf_c_boolean has_initialdispensertimeout;
  uint32_t initialdispensertimeout;
  protobuf_c_boolean has_initialdispensertimelag;
  uint32_t initialdispensertimelag;
  protobuf_c_boolean has_dispenserbuildpressurespeed;
  uint32_t dispenserbuildpressurespeed;
  protobuf_c_boolean has_dispenserbuildpressurelimit;
  double dispenserbuildpressurelimit;
  protobuf_c_boolean has_dispenserbuildpressuretimeout;
  uint32_t dispenserbuildpressuretimeout;
  protobuf_c_boolean has_dispenserbuildpressurelag;
  uint32_t dispenserbuildpressurelag;
  protobuf_c_boolean has_acheatersloweroperationlimit;
  uint32_t acheatersloweroperationlimit;
  protobuf_c_boolean has_acheatersupperoperationlimit;
  uint32_t acheatersupperoperationlimit;
  protobuf_c_boolean has_dcheatersloweroperationlimit;
  uint32_t dcheatersloweroperationlimit;
  protobuf_c_boolean has_dcheatersupperoperationlimit;
  uint32_t dcheatersupperoperationlimit;
  protobuf_c_boolean has_midtankpressurecorrection;
  double midtankpressurecorrection;
  protobuf_c_boolean has_dispenserpresegmentwfcf;
  double dispenserpresegmentwfcf;
  protobuf_c_boolean has_startheatingoninitsequence;
  protobuf_c_boolean startheatingoninitsequence;
  size_t n_generalparameters;
  double *generalparameters;
  protobuf_c_boolean has_currentalarmlowlimit;
  double currentalarmlowlimit;
  protobuf_c_boolean has_currentalarmhighlimit;
  double currentalarmhighlimit;
  protobuf_c_boolean has_ids_segmentrefilltimeout;
  double ids_segmentrefilltimeout;
  protobuf_c_boolean has_ids_presegmentbuilduptime;
  double ids_presegmentbuilduptime;
  protobuf_c_boolean has_ids_cleaningspeed;
  double ids_cleaningspeed;
  protobuf_c_boolean has_ids_cleaningstopbeforesegmenttime;
  double ids_cleaningstopbeforesegmenttime;
  protobuf_c_boolean has_ids_cleaningstartspraypresegmenttime;
  double ids_cleaningstartspraypresegmenttime;
  protobuf_c_boolean has_ids_leftcleaningmotorspeed;
  double ids_leftcleaningmotorspeed;
  protobuf_c_boolean has_ids_rightcleaningmotorspeed;
  double ids_rightcleaningmotorspeed;
  protobuf_c_boolean has_switchtoidletimeinseconds;
  uint32_t switchtoidletimeinseconds;
  protobuf_c_boolean has_idledriertemperature;
  uint32_t idledriertemperature;
  protobuf_c_boolean has_idleheadtemperature;
  uint32_t idleheadtemperature;
  protobuf_c_boolean has_idlemixertemperature;
  uint32_t idlemixertemperature;
  protobuf_c_boolean has_powerofftemperaturelimit;
  uint32_t powerofftemperaturelimit;
  protobuf_c_boolean has_ids_presegment_wfcf_timebeforesegment;
  double ids_presegment_wfcf_timebeforesegment;
};
#define CONFIGURATION_PARAMETERS__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&configuration_parameters__descriptor) \
    , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }


/* ConfigurationParameters methods */
void   configuration_parameters__init
                     (ConfigurationParameters         *message);
size_t configuration_parameters__get_packed_size
                     (const ConfigurationParameters   *message);
size_t configuration_parameters__pack
                     (const ConfigurationParameters   *message,
                      uint8_t             *out);
size_t configuration_parameters__pack_to_buffer
                     (const ConfigurationParameters   *message,
                      ProtobufCBuffer     *buffer);
ConfigurationParameters *
       configuration_parameters__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   configuration_parameters__free_unpacked
                     (ConfigurationParameters *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*ConfigurationParameters_Closure)
                 (const ConfigurationParameters *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor configuration_parameters__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_ConfigurationParameters_2eproto__INCLUDED */
pan>); if (viewedSegment == null) throw new ArgumentNullException("viewedSegment"); this.baseTextSource = baseTextSource; this.viewedSegment = viewedSegment; } /// <inheritdoc/> public event EventHandler TextChanged { add { baseTextSource.TextChanged += value; } remove { baseTextSource.TextChanged -= value; } } /// <inheritdoc/> public string Text { get { return baseTextSource.GetText(viewedSegment.Offset, viewedSegment.Length); } } /// <inheritdoc/> public int TextLength { get { return viewedSegment.Length; } } /// <inheritdoc/> public char GetCharAt(int offset) { return baseTextSource.GetCharAt(viewedSegment.Offset + offset); } /// <inheritdoc/> public string GetText(int offset, int length) { return baseTextSource.GetText(viewedSegment.Offset + offset, length); } /// <inheritdoc/> public ITextSource CreateSnapshot() { return baseTextSource.CreateSnapshot(viewedSegment.Offset, viewedSegment.Length); } /// <inheritdoc/> public ITextSource CreateSnapshot(int offset, int length) { return baseTextSource.CreateSnapshot(viewedSegment.Offset + offset, length); } /// <inheritdoc/> public TextReader CreateReader() { return CreateSnapshot().CreateReader(); } /// <inheritdoc/> public int IndexOfAny(char[] anyOf, int startIndex, int count) { int offset = viewedSegment.Offset; int result = baseTextSource.IndexOfAny(anyOf, startIndex + offset, count); return result >= 0 ? result - offset : result; } } /// <summary> /// Implements the ITextSource interface using a string. /// </summary> public sealed class StringTextSource : ITextSource { readonly string text; /// <summary> /// Creates a new StringTextSource. /// </summary> public StringTextSource(string text) { if (text == null) throw new ArgumentNullException("text"); this.text = text; } // Text can never change event EventHandler ITextSource.TextChanged { add {} remove {} } /// <inheritdoc/> public string Text { get { return text; } } /// <inheritdoc/> public int TextLength { get { return text.Length; } } /// <inheritdoc/> public char GetCharAt(int offset) { // GetCharAt must throw ArgumentOutOfRangeException, not IndexOutOfRangeException if (offset < 0 || offset >= text.Length) throw new ArgumentOutOfRangeException("offset", offset, "offset must be between 0 and " + (text.Length - 1)); return text[offset]; } /// <inheritdoc/> public string GetText(int offset, int length) { return text.Substring(offset, length); } /// <inheritdoc/> public TextReader CreateReader() { return new StringReader(text); } /// <inheritdoc/> public ITextSource CreateSnapshot() { return this; // StringTextSource already is immutable } /// <inheritdoc/> public ITextSource CreateSnapshot(int offset, int length) { return new StringTextSource(text.Substring(offset, length)); } /// <inheritdoc/> public int IndexOfAny(char[] anyOf, int startIndex, int count) { return text.IndexOfAny(anyOf, startIndex, count); } } /// <summary> /// Implements the ITextSource interface using a rope. /// </summary> public sealed class RopeTextSource : ITextSource { readonly Rope<char> rope; /// <summary> /// Creates a new RopeTextSource. /// </summary> public RopeTextSource(Rope<char> rope) { if (rope == null) throw new ArgumentNullException("rope"); this.rope = rope; } /// <summary> /// Returns a clone of the rope used for this text source. /// </summary> /// <remarks> /// RopeTextSource only publishes a copy of the contained rope to ensure that the underlying rope cannot be modified. /// Unless the creator of the RopeTextSource still has a reference on the rope, RopeTextSource is immutable. /// </remarks> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification="Not a property because it creates a clone")] public Rope<char> GetRope() { return rope.Clone(); } // Change event is not supported event EventHandler ITextSource.TextChanged { add {} remove {} } /// <inheritdoc/> public string Text { get { return rope.ToString(); } } /// <inheritdoc/> public int TextLength { get { return rope.Length; } } /// <inheritdoc/> public char GetCharAt(int offset) { return rope[offset]; } /// <inheritdoc/> public string GetText(int offset, int length) { return rope.ToString(offset, length); } /// <inheritdoc/> public TextReader CreateReader() { return new RopeTextReader(rope); } /// <inheritdoc/> public ITextSource CreateSnapshot() { // we clone the underlying rope because the creator of the RopeTextSource might be modifying it return new RopeTextSource(rope.Clone()); } /// <inheritdoc/> public ITextSource CreateSnapshot(int offset, int length) { return new RopeTextSource(rope.GetRange(offset, length)); } /// <inheritdoc/> public int IndexOfAny(char[] anyOf, int startIndex, int count) { return rope.IndexOfAny(anyOf, startIndex, count); } } }