circuit module#
- class VoltageDividerCircuit(sol: VoltageDividerSolution)[source]#
Bases:
CircuitCircuit for a voltage divider solution. Ports: hi, out, lo Instances: r_hi, r_lo
- Parameters:
sol (VoltageDividerSolution)
-
output_voltage:
Toleranced#
- voltage_divider(sol, name=None)[source]#
Construct a voltage divider circuit from a solution. The returned class will be an instantiable subclass of VoltageDividerCircuit. The returned class will have the type name set to name if provided.
- Return type:
- Parameters:
sol (VoltageDividerSolution)
name (str | None)
- voltage_divider_from_constraints(cxt, name=None)[source]#
Construct a voltage divider circuit from constraints (forward or inverse).
- Return type:
- Parameters:
name (str | None)
- forward_divider(v_in, v_out, current, name=None)[source]#
Construct a forward voltage divider circuit from basic parameters.
- Return type:
- Parameters:
v_in (Toleranced)
v_out (Toleranced)
current (float)
name (str | None)
- inverse_divider(v_in, v_out, current, name=None)[source]#
Construct an inverse voltage divider circuit from basic parameters.
- Return type:
- Parameters:
v_in (Toleranced)
v_out (Toleranced)
current (float)
name (str | None)