Skip to content

jsl/symbols/crystal

Package name: jsl/symbols/crystal

Summary

Data Types

CrystalSymbolParams

Crystal Symbol Parameters Object

Constructors

Function Description
CrystalSymbolParams (+ 1) Constructor for defstruct CrystalSymbolParams

CrystalSymbol

Constructors

Function Description
CrystalSymbol (+ 1) Constructor for defstruct CrystalSymbol

Definitions

CrystalSymbolParams

Crystal Symbol Parameters Object

public defstruct CrystalSymbolParams <: SymbolParams :
    crystal-body: Dims
    crystal-case: Maybe<Dims>
    line-width: Double
    resonator-line-len: Percentage
    resonator-line-offset: Double

  • crystal-body: Dims - Dimensions for rectangular body shape Two pin components are drawn vertically so the Y dimension is between the pins of the symbol and the X dimension is the width.

  • crystal-case: Maybe<Dims> - Optional Case Representation Size This is often used when a crystal has a metal case around the device that is commonly connected to ground.

  • line-width: Double - Line width for the shapes drawn. Default value is 0.05 in symbol grid units.

  • resonator-line-len: Percentage - Sets the Resonator Line length as a proportion of the crystal body

  • resonator-line-offset: Double - Sets the Resonator Line's offset from the crystal body.

Constructors

CrystalSymbolParams

Constructor for defstruct CrystalSymbolParams

public defn CrystalSymbolParams (line-width:Double, resonator-line-len:Percentage = ?, resonator-line-offset:Double = ?, crystal-body:Dims = ?, crystal-case:Maybe<Dims> = ?, label-params?:Maybe<SymbolLabelParams> = ?)

CrystalSymbolParams

Constructor for defstruct CrystalSymbolParams

public defn CrystalSymbolParams ( -- line-width:Double = ?, resonator-line-len:Percentage = ?, resonator-line-offset:Double = ?, crystal-body:Dims = ?, crystal-case:Maybe<Dims> = ?, label-params?:Maybe<SymbolLabelParams> = ?)

Functions

get-default-crystal-symbol-params

public defn get-default-crystal-symbol-params () -> CrystalSymbolParams

  • Returns CrystalSymbolParams

set-default-crystal-symbol-params

public defn set-default-crystal-symbol-params (v:CrystalSymbolParams) -> False

  • Returns False

build-crystal-glyphs

public defn build-crystal-glyphs (node:SymbolNode, pitch:Double, case-ports:Int, params:CrystalSymbolParams)

CrystalSymbol

public defstruct CrystalSymbol <: TwoPinSymbol :
    case-ports: Int

  • case-ports: Int - Number of Case Ports on the Crystal package

Constructors

CrystalSymbol

Constructor for defstruct CrystalSymbol

public defn CrystalSymbol (pitch:Double, polarized?:True|False = ?, case-ports:Int = ?, params:Maybe<CrystalSymbolParams> = ?)

CrystalSymbol

Constructor for defstruct CrystalSymbol

public defn CrystalSymbol ( -- pitch:Double = ?, polarized?:True|False = ?, case-ports:Int = ?, params:Maybe<CrystalSymbolParams> = ?)

Related Packages

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