27wxString bridget_tee_formula =
31wxString splitter_formula =
37 m_Name = wxT(
"att_base" );
68 wxASSERT( cfg->m_Attenuators.attenuators.count(
name ) );
71 m_Zin = cfg->m_Attenuators.attenuators.at(
name ).zin;
72 m_Zout = cfg->m_Attenuators.attenuators.at(
name ).zout;
82 cfg->m_Attenuators.attenuators[
name ].zin =
m_Zin;
83 cfg->m_Attenuators.attenuators[
name ].zout =
m_Zout;
89 m_Name = wxT(
"att_pi" );
91 m_FormulaName = &pi_formula;
110 m_Name = wxT(
"att_tee" );
112 m_FormulaName = &tee_formula;
131 m_Name = wxT(
"att_bridge" );
132 m_Zin_Enable =
false;
135 m_FormulaName = &bridget_tee_formula;
156 m_Name = wxT(
"att_splitter" );
157 m_Attenuation_Enable =
false;
160 m_Zin_Enable =
false;
162 m_FormulaName = &splitter_formula;
179 A = (
L + 1) / (
L - 1);
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
virtual bool Calculate() override
Calculates the values of components in attenuator.
virtual bool Calculate() override
Calculates the values of components in attenuator.
virtual bool Calculate() override
Calculates the values of components in attenuator.
virtual bool Calculate() override
Calculates the values of components in attenuator.
ATTENUATORS_TYPE m_Topology
void ReadConfig()
Read values stored in config for this attenuator.
void WriteConfig()
Read values stored in config for this attenuator.
virtual bool Calculate()
Calculates the values of components in attenuator.
bool m_Attenuation_Enable
ATTENUATOR(ATTENUATORS_TYPE Topology)
APP_SETTINGS_BASE * KifaceSettings() const
Some functions to handle hotkeys in KiCad.