Spice model editor: support for JFET models
This commit is contained in:
parent
f2f6dffd16
commit
e6f2c49eae
|
@ -70,6 +70,7 @@ static const std::vector<SPICE_MODEL_INFO> modelTypes =
|
||||||
{ SP_DIODE, _( "Diode" ), { "d" } },
|
{ SP_DIODE, _( "Diode" ), { "d" } },
|
||||||
{ SP_BJT, _( "BJT" ), { "npn", "pnp" } },
|
{ SP_BJT, _( "BJT" ), { "npn", "pnp" } },
|
||||||
{ SP_MOSFET, _( "MOSFET" ), { "nmos", "pmos", "vdmos" } },
|
{ SP_MOSFET, _( "MOSFET" ), { "nmos", "pmos", "vdmos" } },
|
||||||
|
{ SP_JFET, _( "JFET" ), { "njf", "pjf" } },
|
||||||
{ SP_SUBCKT, _( "Subcircuit" ), {} },
|
{ SP_SUBCKT, _( "Subcircuit" ), {} },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -272,6 +273,7 @@ bool DIALOG_SPICE_MODEL::TransferDataToWindow()
|
||||||
case SP_DIODE:
|
case SP_DIODE:
|
||||||
case SP_BJT:
|
case SP_BJT:
|
||||||
case SP_MOSFET:
|
case SP_MOSFET:
|
||||||
|
case SP_JFET:
|
||||||
case SP_SUBCKT:
|
case SP_SUBCKT:
|
||||||
m_notebook->SetSelection( m_notebook->FindPage( m_model ) );
|
m_notebook->SetSelection( m_notebook->FindPage( m_model ) );
|
||||||
m_modelType->SetSelection( getModelTypeIdx( primitive ) );
|
m_modelType->SetSelection( getModelTypeIdx( primitive ) );
|
||||||
|
|
|
@ -57,6 +57,7 @@ enum SPICE_PRIMITIVE {
|
||||||
SP_DIODE = 'D',
|
SP_DIODE = 'D',
|
||||||
SP_BJT = 'Q',
|
SP_BJT = 'Q',
|
||||||
SP_MOSFET = 'M',
|
SP_MOSFET = 'M',
|
||||||
|
SP_JFET = 'J',
|
||||||
SP_SUBCKT = 'X',
|
SP_SUBCKT = 'X',
|
||||||
SP_VSOURCE = 'V',
|
SP_VSOURCE = 'V',
|
||||||
SP_ISOURCE = 'I'
|
SP_ISOURCE = 'I'
|
||||||
|
|
Loading…
Reference in New Issue