aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/DigitalInterfaceState.pb-c.c
blob: 6e7a7e462618658634ab1fb624ae70329230c112 (generated by cgit v1.3.1 (git 2.54.0) at 2026-07-30 10:40:05 +0000
#dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: DigitalInterfaceState.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "DigitalInterfaceState.pb-c.h"
void   digital_interface_state__init
                     (DigitalInterfaceState         *message)
{
  static const DigitalInterfaceState init_value = DIGITAL_INTERFACE_STATE__INIT;
  *message = init_value;
}
size_t digital_interface_state__get_packed_size
                     (const DigitalInterfaceState *message)
{
  assert(message->base.descriptor == &digital_interface_state__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t digital_interface_state__pack
                     (const DigitalInterfaceState *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &digital_interface_state__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t digital_interface_state__pack_to_buffer
                     (const DigitalInterfaceState *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &digital_interface_state__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
DigitalInterfaceState *
       digital_interface_state__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (DigitalInterfaceState *)
     protobuf_c_message_unpack (&digital_interface_state__descriptor,
                                allocator, len, data);
}
void   digital_interface_state__free_unpacked
                     (DigitalInterfaceState *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &digital_interface_state__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor digital_interface_state__field_descriptors[2] =
{
  {
    "InterfaceIO",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_ENUM,
    offsetof(DigitalInterfaceState, has_interfaceio),
    offsetof(DigitalInterfaceState, interfaceio),
    &interface_ios__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "Value",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(DigitalInterfaceState, has_value),
    offsetof(DigitalInterfaceState, value),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned digital_interface_state__field_indices_by_name[] = {
  0,   /* field[0] = InterfaceIO */
  1,   /* field[1] = Value */
};
static const ProtobufCIntRange digital_interface_state__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor digital_interface_state__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "DigitalInterfaceState",
  "DigitalInterfaceState",
  "DigitalInterfaceState",
  "",
  sizeof(DigitalInterfaceState),
  2,
  digital_interface_state__field_descriptors,
  digital_interface_state__field_indices_by_name,
  1,  digital_interface_state__number_ranges,
  (ProtobufCMessageInit) digital_interface_state__init,
  NULL,NULL,NULL    /* reserved[123] */
};