aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/EmbeddedParameters/AlarmHandlingItem.pb-c.h
blob: 635c3854479328c54cf230a052d2700e807e97f2 (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
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: AlarmHandlingItem.proto */

#ifndef PROTOBUF_C_AlarmHandlingItem_2eproto__INCLUDED
#define PROTOBUF_C_AlarmHandlingItem_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 "AlarmSourceType.pb-c.h"
#include "DebugLogCategory.pb-c.h"
#include "EventType.pb-c.h"

typedef struct _AlarmHandlingItem AlarmHandlingItem;


/* --- enums --- */


/* --- messages --- */

struct  _AlarmHandlingItem
{
  ProtobufCMessage base;
  protobuf_c_boolean has_alarmsource;
  AlarmSourceType alarmsource;
  protobuf_c_boolean has_deviceid;
  uint32_t deviceid;
  protobuf_c_boolean has_moduledeviceid;
  uint32_t moduledeviceid;
  protobuf_c_boolean has_alarmvalue;
  uint32_t alarmvalue;
  protobuf_c_boolean has_alarmdirection;
  protobuf_c_boolean alarmdirection;
  protobuf_c_boolean has_severity;
  DebugLogCategory severity;
  protobuf_c_boolean has_debouncevalue;
  uint32_t debouncevalue;
  protobuf_c_boolean has_eventtype;
  EventType eventtype;
  char *eventname;
  protobuf_c_boolean has_ispersistent;
  protobuf_c_boolean ispersistent;
};
#define ALARM_HANDLING_ITEM__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&alarm_handling_item__descriptor) \
    , 0, ALARM_SOURCE_TYPE__TemperatureAlarm, 0, 0, 0, 0, 0, 0, 0, 0, 0, DEBUG_LOG_CATEGORY__Info, 0, 0, 0, EVENT_TYPE__None, NULL, 0, 0 }


/* AlarmHandlingItem methods */
void   alarm_handling_item__init
                     (AlarmHandlingItem         *message);
size_t alarm_handling_item__get_packed_size
                     (const AlarmHandlingItem   *message);
size_t alarm_handling_item__pack
                     (const AlarmHandlingItem   *message,
                      uint8_t             *out);
size_t alarm_handling_item__pack_to_buffer
                     (const AlarmHandlingItem   *message,
                      ProtobufCBuffer     *buffer);
AlarmHandlingItem *
       alarm_handling_item__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   alarm_handling_item__free_unpacked
                     (AlarmHandlingItem *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*AlarmHandlingItem_Closure)
                 (const AlarmHandlingItem *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor alarm_handling_item__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_AlarmHandlingItem_2eproto__INCLUDED */