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

#ifndef PROTOBUF_C_SetDigitalOutRequest_2eproto__INCLUDED
#define PROTOBUF_C_SetDigitalOutRequest_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 "InterfaceIOs.pb-c.h"

typedef struct _SetDigitalOutRequest SetDigitalOutRequest;


/* --- enums --- */


/* --- messages --- */

struct  _SetDigitalOutRequest
{
  ProtobufCMessage base;
  protobuf_c_boolean has_interfaceio;
  InterfaceIOs interfaceio;
  protobuf_c_boolean has_value;
  protobuf_c_boolean value;
};
#define SET_DIGITAL_OUT_REQUEST__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&set_digital_out_request__descriptor) \
    , 0, INTERFACE_IOS__ANALOG_MIXCHIP_TEMP, 0, 0 }


/* SetDigitalOutRequest methods */
void   set_digital_out_request__init
                     (SetDigitalOutRequest         *message);
size_t set_digital_out_request__get_packed_size
                     (const SetDigitalOutRequest   *message);
size_t set_digital_out_request__pack
                     (const SetDigitalOutRequest   *message,
                      uint8_t             *out);
size_t set_digital_out_request__pack_to_buffer
                     (const SetDigitalOutRequest   *message,
                      ProtobufCBuffer     *buffer);
SetDigitalOutRequest *
       set_digital_out_request__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   set_digital_out_request__free_unpacked
                     (SetDigitalOutRequest *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*SetDigitalOutRequest_Closure)
                 (const SetDigitalOutRequest *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor set_digital_out_request__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_SetDigitalOutRequest_2eproto__INCLUDED */
uffer (const MessageContainer *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &message_container__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } MessageContainer * message_container__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (MessageContainer *) protobuf_c_message_unpack (&message_container__descriptor, allocator, len, data); } void message_container__free_unpacked (MessageContainer *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &message_container__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor message_container__field_descriptors[7] = { { "Type", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(MessageContainer, has_type), offsetof(MessageContainer, type), &message_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Token", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(MessageContainer, token), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Continuous", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(MessageContainer, has_continuous), offsetof(MessageContainer, continuous), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Completed", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(MessageContainer, has_completed), offsetof(MessageContainer, completed), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Data", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, offsetof(MessageContainer, has_data), offsetof(MessageContainer, data), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "CRC", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(MessageContainer, has_crc), offsetof(MessageContainer, crc), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Error", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(MessageContainer, has_error), offsetof(MessageContainer, error), &error_code__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned message_container__field_indices_by_name[] = { 5, /* field[5] = CRC */ 3, /* field[3] = Completed */ 2, /* field[2] = Continuous */ 4, /* field[4] = Data */ 6, /* field[6] = Error */ 1, /* field[1] = Token */ 0, /* field[0] = Type */ }; static const ProtobufCIntRange message_container__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; const ProtobufCMessageDescriptor message_container__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "MessageContainer", "MessageContainer", "MessageContainer", "", sizeof(MessageContainer), 7, message_container__field_descriptors, message_container__field_indices_by_name, 1, message_container__number_ranges, (ProtobufCMessageInit) message_container__init, NULL,NULL,NULL /* reserved[123] */ };