jsl/symbols/op-amps¶
Package name: jsl/symbols/op-amps
Summary¶
Data Types¶
OpAmpSymbolParams¶
Op-Amp Triangle Symbol Parameterization
Constructors¶
Function | Description |
---|---|
OpAmpSymbolParams (+ 1) | Constructor for defstruct OpAmpSymbolParams |
Functions¶
Function | Description |
---|---|
build-opamp-glyphs | |
set-default-opamp-symbol-params | |
get-default-opamp-symbol-params | |
to-tuple |
OpAmpSymbol¶
Constructors¶
Function | Description |
---|---|
OpAmpSymbol (+ 1) | Constructor for defstruct OpAmpSymbol |
Functions¶
Function | Description |
---|---|
get-input-refs | |
add-opamp-pins |
General Definitions¶
Variable | Description |
---|---|
DEF_OPAMP_PITCH | Best for this value to be divisible by 2. This will |
OPAMP_IN_BASE_REF | |
OPAMP_OUT_REF |
Definitions¶
OpAmpSymbolParams¶
Op-Amp Triangle Symbol Parameterization
public defstruct OpAmpSymbolParams <: SymbolParams :
line-width: Double
pad-ref-size: Double
pin-length: Double
tri-height: Double
tri-width: Double
-
line-width: Double
-
pad-ref-size: Double
-
pin-length: Double
-
tri-height: Double
-
tri-width: Double
Constructors¶
OpAmpSymbolParams¶
Constructor for defstruct OpAmpSymbolParams
public defn OpAmpSymbolParams (tri-height:Double, tri-width:Double = ?, line-width:Double = ?, pin-length:Double = ?, pad-ref-size:Double = ?, label-params?:Maybe<SymbolLabelParams> = ?)
OpAmpSymbolParams¶
Constructor for defstruct OpAmpSymbolParams
public defn OpAmpSymbolParams ( -- tri-height:Double = ?, tri-width:Double = ?, line-width:Double = ?, pin-length:Double = ?, pad-ref-size:Double = ?, label-params?:Maybe<SymbolLabelParams> = ?)
Functions¶
build-opamp-glyphs¶
public defn build-opamp-glyphs (node:SymbolNode, pitch:Double, params:OpAmpSymbolParams)
set-default-opamp-symbol-params¶
public defn set-default-opamp-symbol-params (v:OpAmpSymbolParams) -> False
- Returns
False
get-default-opamp-symbol-params¶
public defn get-default-opamp-symbol-params () -> OpAmpSymbolParams
- Returns
OpAmpSymbolParams
to-tuple¶
public defn to-tuple (p:OpAmpSymbolParams) -> [Double, Double, Double, Double, Double]
- Returns
[Double, Double, Double, Double, Double]
OpAmpSymbol¶
public defstruct OpAmpSymbol <: SymbolDefn :
in-ref: Ref|[Ref, Ref]
out-ref: Ref
params: Maybe<OpAmpSymbolParams>
pitch: Double
-
in-ref: Ref|[Ref, Ref]
- Input Base Reference or Explicit Input References. The symbol needs individual refs for each of the positive and negative input pins. To construct these the user has two options:- Pass a base reference from which to construct the positive and negative inputs
- With this option, the passed reference will be used to construct individual
Ref
values from this baseRef
for the positive and negative inputs to the opamp. - By default, the base Ref
in
will be used, resulting in input pinsin+
andin-
.
- With this option, the passed reference will be used to construct individual
- Pass two explicit Refs, one for each of the positive and negative inputs.
- In this case, the user passes an ordered Tuple of
[PosRef, NegRef]
wherePosRef
is the reference for the positive input andNegReg
is the reference for the negative input.
- In this case, the user passes an ordered Tuple of
- Pass a base reference from which to construct the positive and negative inputs
-
out-ref: Ref
- Output Reference User can override the default for supporting multi-channel chips. The default expected output pin ref isout
-
params: Maybe<OpAmpSymbolParams>
-
pitch: Double
Constructors¶
OpAmpSymbol¶
Constructor for defstruct OpAmpSymbol
public defn OpAmpSymbol (pitch:Double, in-ref:Ref|[Ref, Ref] = ?, out-ref:Ref = ?, params:Maybe<OpAmpSymbolParams> = ?)
OpAmpSymbol¶
Constructor for defstruct OpAmpSymbol
public defn OpAmpSymbol ( -- pitch:Double = ?, in-ref:Ref|[Ref, Ref] = ?, out-ref:Ref = ?, params:Maybe<OpAmpSymbolParams> = ?)
Functions¶
get-input-refs¶
public defn get-input-refs (x:OpAmpSymbol) -> [Ref, Ref]
- Returns
[Ref, Ref]
add-opamp-pins¶
public defn add-opamp-pins (x:OpAmpSymbol, node:SymbolNode)
General Definitions¶
DEF_OPAMP_PITCH¶
Best for this value to be divisible by 2. This will
public val DEF_OPAMP_PITCH
make the output pin resolve on the same grid in the Y axis.
OPAMP_IN_BASE_REF¶
public val OPAMP_IN_BASE_REF
OPAMP_OUT_REF¶
public val OPAMP_OUT_REF
Related Packages¶
Forwarded by packages: jsl/symbols/generators, jsl/symbols