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

Module pin1

Module pin1 

Source
Expand description

Full-parity Pin 1 & Polarity virtual layer (PIN1_TOP, PIN1_BOTTOM).

Matches acr, pcbe (virtual_layers/pin1.rs), and Python _pin1.py:

  1. Explicit POSITIVE_PAD / NEGATIVE_PAD -> + / - pad-bounded labels.
  2. Explicit PIN1_PAD parameter -> Pin 1 marker (or suppresses if NONE/OFF/FALSE).
  3. Polarized inductors -> Pin 1 marker on winding-start pad.
  4. Resolved diodes (diode_ak_labels = true) -> A / K pad-bounded stroke labels.
  5. Polarized capacitors (cap_polarity_labels = true) -> + / - pad-bounded labels.
  6. Generic multi-pin ICs / connectors / BGAs (excluding R/C/L and 2-pin X/Y) -> exact "1" -> "A1" -> smallest BGA/LGA grid pad -> smart marker sizing.

Structs§

Pin1Marker
Structured Pin 1 marker with its lowered FabLayerItems geometry.
Pin1Options
Configuration for PIN1_TOP / PIN1_BOTTOM synthesis.
Pin1Override
Per-component override for PIN1_TOP / PIN1_BOTTOM.

Enums§

PadLabelOrientation
Orientation policy for pad-bounded Pin 1 / polarity text labels (A/K, +/-).
Pin1Role
Semantic role of one emitted Pin 1 / polarity marker (used for SVG DOM attributes).

Functions§

build_pin1_layer
Synthesize flat FabLayerItems for PIN1_TOP / PIN1_BOTTOM (used by Gerbers & bake).
build_pin1_markers
Build structured Pin 1 / polarity markers for side.
is_grid_pad_designator
Return true if a pin designator uses BGA/LGA letter-number syntax (e.g. A1, AA12), excluding mechanical/shield/mounting names.