From 3e05c85df26bcf7bd8795c65212dbd4b41fbec4f Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 17 Oct 2023 16:29:52 +0800 Subject: [PATCH] scf_eda.proto --- scf_eda.pb-c.c | 35 ++++++++++++++++++++++++----------- scf_eda.pb-c.h | 3 ++- scf_eda.proto | 9 +++++---- 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/scf_eda.pb-c.c b/scf_eda.pb-c.c index dc2927b..8689756 100644 --- a/scf_eda.pb-c.c +++ b/scf_eda.pb-c.c @@ -385,7 +385,7 @@ const ProtobufCMessageDescriptor scf_line__descriptor = (ProtobufCMessageInit) scf_line__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor scf_epin__field_descriptors[28] = +static const ProtobufCFieldDescriptor scf_epin__field_descriptors[29] = { { "id", @@ -676,9 +676,21 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[28] = 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "vflag", + "l_pos", 25, PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(ScfEpin, l_pos), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "vflag", + 26, + PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(ScfEpin, vflag), @@ -689,7 +701,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[28] = }, { "pflag", - 26, + 27, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ @@ -701,7 +713,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[28] = }, { "vconst", - 27, + 28, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ @@ -713,7 +725,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[28] = }, { "aconst", - 28, + 29, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ @@ -726,7 +738,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[28] = }; static const unsigned scf_epin__field_indices_by_name[] = { 8, /* field[8] = a */ - 27, /* field[27] = aconst */ + 28, /* field[28] = aconst */ 5, /* field[5] = c_lid */ 1, /* field[1] = cid */ 15, /* field[15] = dr */ @@ -739,9 +751,10 @@ static const unsigned scf_epin__field_indices_by_name[] = { 11, /* field[11] = jr */ 18, /* field[18] = jsr */ 7, /* field[7] = jv */ + 24, /* field[24] = l_pos */ 2, /* field[2] = lid */ 23, /* field[23] = n_diodes */ - 25, /* field[25] = pflag */ + 26, /* field[26] = pflag */ 19, /* field[19] = pr */ 10, /* field[10] = r */ 17, /* field[17] = sr */ @@ -749,15 +762,15 @@ static const unsigned scf_epin__field_indices_by_name[] = { 12, /* field[12] = uF */ 13, /* field[13] = uH */ 6, /* field[6] = v */ - 26, /* field[26] = vconst */ - 24, /* field[24] = vflag */ + 27, /* field[27] = vconst */ + 25, /* field[25] = vflag */ 21, /* field[21] = x */ 22, /* field[22] = y */ }; static const ProtobufCIntRange scf_epin__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 28 } + { 0, 29 } }; const ProtobufCMessageDescriptor scf_epin__descriptor = { @@ -767,7 +780,7 @@ const ProtobufCMessageDescriptor scf_epin__descriptor = "ScfEpin", "", sizeof(ScfEpin), - 28, + 29, scf_epin__field_descriptors, scf_epin__field_indices_by_name, 1, scf_epin__number_ranges, diff --git a/scf_eda.pb-c.h b/scf_eda.pb-c.h index 24e3c9d..c8234f3 100644 --- a/scf_eda.pb-c.h +++ b/scf_eda.pb-c.h @@ -70,6 +70,7 @@ struct _ScfEpin int32_t x; int32_t y; int32_t n_diodes; + int32_t l_pos; protobuf_c_boolean vflag; protobuf_c_boolean pflag; protobuf_c_boolean vconst; @@ -77,7 +78,7 @@ struct _ScfEpin }; #define SCF_EPIN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_epin__descriptor) \ - , 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,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 } struct _ScfEconn diff --git a/scf_eda.proto b/scf_eda.proto index 9338efe..f793189 100644 --- a/scf_eda.proto +++ b/scf_eda.proto @@ -41,12 +41,13 @@ message scf_epin required int32 y = 23; required int32 n_diodes = 24; + required int32 l_pos = 25; - required bool vflag = 25; - required bool pflag = 26; + required bool vflag = 26; + required bool pflag = 27; - required bool vconst = 27; - required bool aconst = 28; + required bool vconst = 28; + required bool aconst = 29; } message scf_econn -- 2.25.1