Documentation
¶
Overview ¶
Package stackup reads a board's physical layer stack (geom.Stackup) for a person or a check: it describes a row in words, sums the rows' thicknesses, and says when that sum disagrees with the board thickness the file states (agni 1592). Readers fill the Stackup with what the file says and nothing more. Totals and the agreement check happen here, once, for every format.
Index ¶
Constants ¶
const Tolerance = 0.10
Tolerance is how far, as a fraction of the stated board thickness, the sum of the layers may differ from it before Check reports the difference. Fabricators commonly quote a finished thickness to plus or minus 10%.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check compares the sum of the layers with the board thickness the file states, and returns a sentence when they differ by more than Tolerance of the stated thickness. It returns "" when they agree, and also when the comparison cannot be made: the file states no thickness, or a copper or dielectric row has none.
func Describe ¶
func Describe(l *geom.StackLayer, unitNm int64) string
Describe is one row in words, in the order name, kind, the layer-table name, thickness, material, dielectric type, epsilon_r and loss tangent, leaving out what the file does not give. A row with no thickness says "thickness unknown" rather than leaving the gap silent. For example "dielectric 1 dielectric 0.1 mm PR1080 prepreg er=3.96 tand=0.02".
func MM ¶
MM formats a length in unit_nm units as millimetres, trimmed of trailing zeros, such as "0.035" or "1.6".
Types ¶
This section is empty.