From: yu.dongliang <18588496441@163.com> Date: Fri, 22 Sep 2023 07:00:47 +0000 (+0800) Subject: scf_eda.proto X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=489f54ae1470f95b5216ac22571f8ad6785ae1fb;p=ses.git scf_eda.proto --- diff --git a/scf_eda.pb-c.c b/scf_eda.pb-c.c index ff59055..dc2927b 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[27] = +static const ProtobufCFieldDescriptor scf_epin__field_descriptors[28] = { { "id", @@ -664,9 +664,21 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[27] = 0,NULL,NULL /* reserved1,reserved2, etc */ }, { - "vflag", + "n_diodes", 24, PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(ScfEpin, n_diodes), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "vflag", + 25, + PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(ScfEpin, vflag), @@ -677,7 +689,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[27] = }, { "pflag", - 25, + 26, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ @@ -689,7 +701,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[27] = }, { "vconst", - 26, + 27, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ @@ -701,7 +713,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[27] = }, { "aconst", - 27, + 28, PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ @@ -714,7 +726,7 @@ static const ProtobufCFieldDescriptor scf_epin__field_descriptors[27] = }; static const unsigned scf_epin__field_indices_by_name[] = { 8, /* field[8] = a */ - 26, /* field[26] = aconst */ + 27, /* field[27] = aconst */ 5, /* field[5] = c_lid */ 1, /* field[1] = cid */ 15, /* field[15] = dr */ @@ -728,7 +740,8 @@ static const unsigned scf_epin__field_indices_by_name[] = { 18, /* field[18] = jsr */ 7, /* field[7] = jv */ 2, /* field[2] = lid */ - 24, /* field[24] = pflag */ + 23, /* field[23] = n_diodes */ + 25, /* field[25] = pflag */ 19, /* field[19] = pr */ 10, /* field[10] = r */ 17, /* field[17] = sr */ @@ -736,15 +749,15 @@ static const unsigned scf_epin__field_indices_by_name[] = { 12, /* field[12] = uF */ 13, /* field[13] = uH */ 6, /* field[6] = v */ - 25, /* field[25] = vconst */ - 23, /* field[23] = vflag */ + 26, /* field[26] = vconst */ + 24, /* field[24] = vflag */ 21, /* field[21] = x */ 22, /* field[22] = y */ }; static const ProtobufCIntRange scf_epin__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 27 } + { 0, 28 } }; const ProtobufCMessageDescriptor scf_epin__descriptor = { @@ -754,7 +767,7 @@ const ProtobufCMessageDescriptor scf_epin__descriptor = "ScfEpin", "", sizeof(ScfEpin), - 27, + 28, 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 db9998a..24e3c9d 100644 --- a/scf_eda.pb-c.h +++ b/scf_eda.pb-c.h @@ -69,6 +69,7 @@ struct _ScfEpin double jpr; int32_t x; int32_t y; + int32_t n_diodes; protobuf_c_boolean vflag; protobuf_c_boolean pflag; protobuf_c_boolean vconst; @@ -76,7 +77,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,NULL, 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 e4d6fd3..9338efe 100644 --- a/scf_eda.proto +++ b/scf_eda.proto @@ -39,11 +39,14 @@ message scf_epin required int32 x = 22; required int32 y = 23; - required bool vflag = 24; - required bool pflag = 25; - required bool vconst = 26; - required bool aconst = 27; + required int32 n_diodes = 24; + + required bool vflag = 25; + required bool pflag = 26; + + required bool vconst = 27; + required bool aconst = 28; } message scf_econn