Spice model editor: support for JFET models

This commit is contained in:
Maciej Suminski 2018-09-22 16:08:40 +02:00
parent f2f6dffd16
commit e6f2c49eae
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ static const std::vector<SPICE_MODEL_INFO> modelTypes =
{ SP_DIODE, _( "Diode" ), { "d" } },
{ SP_BJT, _( "BJT" ), { "npn", "pnp" } },
{ SP_MOSFET, _( "MOSFET" ), { "nmos", "pmos", "vdmos" } },
{ SP_JFET, _( "JFET" ), { "njf", "pjf" } },
{ SP_SUBCKT, _( "Subcircuit" ), {} },
};
@ -272,6 +273,7 @@ bool DIALOG_SPICE_MODEL::TransferDataToWindow()
case SP_DIODE:
case SP_BJT:
case SP_MOSFET:
case SP_JFET:
case SP_SUBCKT:
m_notebook->SetSelection( m_notebook->FindPage( m_model ) );
m_modelType->SetSelection( getModelTypeIdx( primitive ) );

View File

@ -57,6 +57,7 @@ enum SPICE_PRIMITIVE {
SP_DIODE = 'D',
SP_BJT = 'Q',
SP_MOSFET = 'M',
SP_JFET = 'J',
SP_SUBCKT = 'X',
SP_VSOURCE = 'V',
SP_ISOURCE = 'I'