jsl/symbols/logic/AND¶
Package name: jsl/symbols/logic/AND
Summary¶
Data Types¶
ANDGateSymbolParams¶
Functions¶
Function | Description |
---|---|
ANDGateSymbolParams | |
get-default-and-gate-symbol-params | |
build-and-gate-glyphs | Construct the AND Gate Symbol Glyphs |
set-default-and-gate-symbol-params |
ANDGateSymbol¶
Constructors¶
Function | Description |
---|---|
ANDGateSymbol (+ 1) | Constructor for defstruct ANDGateSymbol |
General Definitions¶
Variable | Description |
---|---|
DEF_AND_W_OVER_H_RATIO | |
AND_IN_REF | |
AND_OUT_REF |
Definitions¶
ANDGateSymbolParams¶
public defstruct ANDGateSymbolParams <: SymbolParams :
filled?: True|False
line-width: Double
pad-ref-size: Double
pin-length: Double
size: Double|Dims
-
filled?: True|False
-
line-width: Double
-
pad-ref-size: Double
-
pin-length: Double
-
size: Double|Dims
- Gate Body Size The Y dimension defines the diameter of the rounded portion of the body. The X dimension defines the total body length from input edge to output tip of the rounded end.
Functions¶
ANDGateSymbolParams¶
public defn ANDGateSymbolParams ( -- size:Double|Dims = ?, filled?:True|False = ?, line-width:Double = ?, pin-length:Double = ?, pad-ref-size:Double = ?, label-params?:Maybe<SymbolLabelParams> = ?) -> ANDGateSymbolParams
- Returns
ANDGateSymbolParams
get-default-and-gate-symbol-params¶
public defn get-default-and-gate-symbol-params () -> ANDGateSymbolParams
- Returns
ANDGateSymbolParams
build-and-gate-glyphs¶
Construct the AND Gate Symbol Glyphs
public defn build-and-gate-glyphs (node:SymbolNode, num-inputs:Int, pin-pitch:Double, p:ANDGateSymbolParams)
The origin for the AND gate is the base of the output pin. This allows for the output pin to always be on grid. For the inputs, we add an extra line per input so that input pin lands on the grid.
set-default-and-gate-symbol-params¶
public defn set-default-and-gate-symbol-params (v:ANDGateSymbolParams) -> False
- Returns
False
ANDGateSymbol¶
public defstruct ANDGateSymbol <: SymbolDefn :
in-ref: Ref
inverted?: True|False
num-inputs: Int
open-collector?: Maybe<OpenCollectorType>
out-ref: Ref
params: Maybe<ANDGateSymbolParams>
pin-pitch: Double
-
in-ref: Ref
- Input Base Reference The symbol will construct individualIndexRef
values from this baseRef
, starting at 1. Example: For a 2-input AND gate, the input pins would bein[1]
andin[2]
. -
inverted?: True|False
- Sets a active low bubble out the output or not This is how to make an NAND gate symbol. -
num-inputs: Int
- Number of AND gate inputs The default is 2 and this value must be greater than 1 -
open-collector?: Maybe<OpenCollectorType>
- Optional open-collector symbol on output pin. Default is None() -
out-ref: Ref
- Output Reference User can override the default for supporting multi-channel chips. -
params: Maybe<ANDGateSymbolParams>
-
pin-pitch: Double
- Spacing between input pins. This value is in symbol grid units. The best values are whole numbers or half-numbers (0.5, 1.5, etc).
Constructors¶
ANDGateSymbol¶
Constructor for defstruct ANDGateSymbol
public defn ANDGateSymbol (inverted?:True|False, open-collector?:Maybe<OpenCollectorType> = ?, num-inputs:Int = ?, pin-pitch:Double = ?, in-ref:Ref = ?, out-ref:Ref = ?, params:Maybe<ANDGateSymbolParams> = ?)
ANDGateSymbol¶
Constructor for defstruct ANDGateSymbol
public defn ANDGateSymbol ( -- inverted?:True|False = ?, open-collector?:Maybe<OpenCollectorType> = ?, num-inputs:Int = ?, pin-pitch:Double = ?, in-ref:Ref = ?, out-ref:Ref = ?, params:Maybe<ANDGateSymbolParams> = ?)
General Definitions¶
DEF_AND_W_OVER_H_RATIO¶
public val DEF_AND_W_OVER_H_RATIO
AND_IN_REF¶
public val AND_IN_REF
AND_OUT_REF¶
public val AND_OUT_REF
Related Packages¶
Forwarded by packages: jsl/symbols/logic/generators, jsl/symbols/generators, jsl/symbols