pcbnew/api: Expose pad-to-die delay

Addresses #21346.
This commit is contained in:
Ben Gamari 2025-07-26 10:16:41 -04:00 committed by Jon Evans
parent eaac9a6465
commit e6ab1194ed
2 changed files with 5 additions and 0 deletions

View File

@ -520,6 +520,9 @@ message Pad
// Since: 9.0.4
kiapi.common.types.Distance pad_to_die_length = 9;
// Since: 10.0.0
kiapi.common.types.Time pad_to_die_delay = 10;
}
enum ZoneType

View File

@ -164,6 +164,7 @@ void PAD::Serialize( google::protobuf::Any &aContainer ) const
pad.set_number( GetNumber().ToUTF8() );
pad.set_type( ToProtoEnum<PAD_ATTRIB, PadType>( GetAttribute() ) );
pad.mutable_pad_to_die_length()->set_value_nm( GetPadToDieLength() );
pad.mutable_pad_to_die_delay()->set_value_ps( GetPadToDieDelay() );
google::protobuf::Any padStackMsg;
m_padStack.Serialize( padStackMsg );
@ -190,6 +191,7 @@ bool PAD::Deserialize( const google::protobuf::Any &aContainer )
SetAttribute( FromProtoEnum<PAD_ATTRIB>( pad.type() ) );
SetNumber( wxString::FromUTF8( pad.number() ) );
SetPadToDieLength( pad.pad_to_die_length().value_nm() );
SetPadToDieDelay( pad.pad_to_die_delay().value_ps() );
google::protobuf::Any padStackWrapper;
padStackWrapper.PackFrom( pad.pad_stack() );