Skip to content

jsl/symbols/TwoPinSymbol

Package name: jsl/symbols/TwoPinSymbol

Summary

TwoPinSymbol

Base SymbolDefn for Two-Pin Component Symbols

Constructors

Function Description
TwoPinSymbol Constructor for defstruct TwoPinSymbol

Functions

Function Description
two-pin-build-pins
two-pin-build-labels

General Definitions

Variable Description
PINREF Default Ref for the p pin array.
TWO_PIN_DEF_PITCH Typical Pitch for twp-pin components

Definitions

TwoPinSymbol

Base SymbolDefn for Two-Pin Component Symbols

public defstruct TwoPinSymbol <: SymbolDefn
    params: Maybe<SymbolParams>
    pitch: Double
    polarized?: True|False

  • params: Maybe<SymbolParams>

  • pitch: Double

  • polarized?: True|False

Two-pin components typically refer to components like resistors, capacitors, etc.

This type will be the base SymbolDefn type for all two-pin component symbols. These symbols will:

  1. Typically all use p[1] and p[2] as the two pins of the symbol
  2. For Polarized components, p[1] is the anode and p[2] is the cathode.
  3. Components are typically oriented vertically, ie, pins have an X coordinate equal to 0.0, and the Y coordinate is ± pitch / 2
  4. The pitch of the component is

Constructors

TwoPinSymbol

Constructor for defstruct TwoPinSymbol

public defn TwoPinSymbol (pitch:Double = ?, polarized?:True|False = ?, params:Maybe<SymbolParams> = ?)

Functions

two-pin-build-pins

public defn two-pin-build-pins (x:TwoPinSymbol, node:SymbolNode)

two-pin-build-labels

public defn two-pin-build-labels (x:TwoPinSymbol, sn:SymbolNode, symb-params:SymbolParams)

General Definitions

PINREF

Default Ref for the p pin array.

public val PINREF

TWO_PIN_DEF_PITCH

Typical Pitch for twp-pin components

public val TWO_PIN_DEF_PITCH

This value is in unitless schematic grid units and will depend on the scale factor.

It is typically a good idea to use the same pitch for all two-pin components in a design to make it easier to swap components in and out of a series/parallel arrangement.

Related Packages

Forwarded by packages: jsl/symbols/framework, jsl/symbols