Skip to main content

Module model_lookup

Module model_lookup 

Source
Expand description

Model lookup functions — bridges pedalkernel’s model DB to pedalkernel-rt types.

pedalkernel-rt defines the model structs (JfetModel, TriodeModel, etc.) but cannot contain the SPICE model database (it’s no_std). These free functions look up models by name from pedalkernel’s embedded model DB and convert them to the runtime types.

Functions§

bjt_model_by_name
Look up a Gummel-Poon BJT model by name from the model registry. Panics if the model name is not found.
bjt_try_by_name
Try to look up a Gummel-Poon model by name. Returns None if not found.
jfet_model_by_name
Look up a JFET model by name from the embedded SPICE model file.
jfet_try_by_name
Try to look up a JFET model by name. Returns None if not found.
opamp_model_by_name
Look up a compact op-amp model by name from the model registry. Panics if the model name is not found.
opamp_model_from_type
Convert from DSL OpAmpType to runtime OpAmpModel.
opamp_try_by_name
Try to look up a compact op-amp model by name. Returns None if not found.
ota_gm_from_type
Return an OTA transconductance from the model registry.
pentode_model_by_name
Look up a pentode model by name from the model registry. Panics if the name is not found.
pentode_try_by_name
Look up a pentode model by name, returning None if not found.
transformer_config_from_dsl
Resolve a DSL transformer instance against the embedded model registry.
triode_model_by_name
Look up a triode model by name from the model registry. Panics if the name is not found.
triode_try_by_name
Look up a triode model by name, returning None if not found.