Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

Module passives

Module passives 

Source
Expand description

Full-parity passive orientation/symbol virtual layers: CAPACITORS_TOP/BOTTOM, INDUCTORS_TOP/BOTTOM, RESISTORS_TOP/BOTTOM.

Mirrors Python kicad_monkey/fab/virtual/{_capacitors,_inductors,_resistors}.py.

Structs§

CapacitorOptions
Options for CAPACITORS_TOP / CAPACITORS_BOTTOM (matches Python CapacitorLayerOptions).
InductorOptions
Options for INDUCTORS_TOP / INDUCTORS_BOTTOM (matches Python InductorLayerOptions).
ResolvedCapacitor
Classified capacitor polarity & pin split (reused by PIN1_* and CAPACITORS_*).
ResolvedInductor
Classified inductor polarity & pin split (reused by PIN1_* and INDUCTORS_*).

Functions§

build_capacitors_layer
Synthesize CAPACITORS_TOP or CAPACITORS_BOTTOM schematic symbols (polarized-only default).
build_capacitors_layer_with_options
Synthesize CAPACITORS_TOP or CAPACITORS_BOTTOM with explicit options.
build_inductors_layer
Synthesize INDUCTORS_TOP or INDUCTORS_BOTTOM schematic coil symbols (polarized-only default).
build_inductors_layer_with_options
Synthesize INDUCTORS_TOP or INDUCTORS_BOTTOM with explicit options.
build_resistors_layer
Synthesize RESISTORS_TOP or RESISTORS_BOTTOM IEEE zig-zag (or IEC box) schematic symbols.
resolve_capacitor
Classify a component as a capacitor and infer whether it is polarized.
resolve_inductor
Classify a component as an inductor and infer whether it has a declared polarity/start pad.