Loading...
Searching...
No Matches
Go to the documentation of this file.
9" <td> <br><samp>^{superscript}</samp></td>\n"
11" <td> <br><samp><sup>superscript</sup> </samp></td>\n"
14" <td> <br><samp>Driver Board^{Rev A}</samp></td>\n"
16" <td> <br><samp>Driver Board<sup>Rev A</sup></samp></td>\n"
22" <td> <br><samp>_{subscript}</samp></td>\n"
24" <td> <br><samp><sub>subscript</sub> </samp></td>\n"
27" <td> <br><samp>D_{0} - D_{15}</samp></td>\n"
29" <td> <br><samp>D<sub>0</sub> - D<sub>15</sub></samp></td>\n"
35" <td> <br><samp>~{overbar}</samp><br> <br><samp>~{CLK}</samp></td>\n"
37" <td> <samp><u> </u></samp><br> <samp>overbar</samp><br> <samp><u> </u></samp><br> <samp>CLK</samp></td>\n"
43" <td> <br><samp>${variable}</samp></td>\n"
45" <td> <br><samp><i>variable_value</i></samp></td>\n"
48" <td> <br><samp>${PROJECTNAME}</samp></td>\n"
50" <td> <br><samp>MyBoard</samp></td>\n"
56" <th>PCB Variables</th>\n"
61" <td> <br><samp>${FILENAME}</samp></td>\n"
63" <td> <br><samp>board.kicad_pcb</samp></td>\n"
66" <td> <br><samp>${FILEPATH}</samp></td>\n"
68" <td> <br><samp>/path/to/board.kicad_pcb</samp></td>\n"
71" <td> <br><samp>${LAYER}</samp> (in text/tables)</td>\n"
73" <td> <br><samp>F.Cu, B.Cu, F.SilkS...</samp></td>\n"
79" <th>Footprint Cross-References</th>\n"
84" <td> <br><samp>${refdes:field}</samp></td>\n"
86" <td> <br><samp><i>field_value</i> of footprint <i>refdes</i></samp></td>\n"
89" <td> <br><samp>${U1:REFERENCE}</samp></td>\n"
91" <td> <br><samp>U1</samp></td>\n"
94" <td> <br><samp>${U1:VALUE}</samp></td>\n"
96" <td> <br><samp>STM32F407VGT6</samp></td>\n"
99" <td> <br><samp>${U1:FOOTPRINT_LIBRARY}</samp></td>\n"
101" <td> <br><samp>Package_QFP</samp></td>\n"
104" <td> <br><samp>${U1:FOOTPRINT_NAME}</samp></td>\n"
106" <td> <br><samp>LQFP-100_14x14mm_P0.5mm</samp></td>\n"
112" <th>Pad/Pin Functions</th>\n"
117" <td> <br><samp>${refdes:NET_NAME(pad)}</samp></td>\n"
119" <td> <br><samp>Net name connected to pad</samp></td>\n"
122" <td> <br><samp>${U1:NET_NAME(5)}</samp></td>\n"
124" <td> <br><samp>VCC</samp></td>\n"
127" <td> <br><samp>${refdes:SHORT_NET_NAME(pad)}</samp></td>\n"
129" <td> <br><samp>Short net name or NC</samp></td>\n"
132" <td> <br><samp>${J1:SHORT_NET_NAME(3)}</samp></td>\n"
134" <td> <br><samp>GND</samp> or <samp>NC</samp></td>\n"
137" <td> <br><samp>${refdes:NET_CLASS(pad)}</samp></td>\n"
139" <td> <br><samp>Net class for pad</samp></td>\n"
142" <td> <br><samp>${J1:NET_CLASS(1)}</samp></td>\n"
144" <td> <br><samp>Power</samp></td>\n"
147" <td> <br><samp>${refdes:PIN_NAME(pad)}</samp></td>\n"
149" <td> <br><samp>Pin function/name</samp></td>\n"
152" <td> <br><samp>${U1:PIN_NAME(5)}</samp></td>\n"
154" <td> <br><samp>USART1_TX</samp></td>\n"
160" <th>Table Variables</th>\n"
165" <td> <br><samp>${ROW}</samp> (in tables)</td>\n"
167" <td> <br><samp>1, 2, 3...</samp></td>\n"
170" <td> <br><samp>${COL}</samp> (in tables)</td>\n"
172" <td> <br><samp>1, 2, 3...</samp></td>\n"
175" <td> <br><samp>${ADDR}</samp> (in tables)</td>\n"
177" <td> <br><samp>A1, B2, C3...</samp></td>\n"
183" <th>Math Expressions</th>\n"
188" <td> <br><samp>@{expression}</samp></td>\n"
190" <td> <br><samp><i>evaluated_result</i></samp></td>\n"
193" <td> <br><samp>@{2 + 3}</samp></td>\n"
195" <td> <br><samp>5</samp></td>\n"
198" <td> <br><samp>@{${ROW} - 1}</samp></td>\n"
200" <td> <br><samp>3</samp> (when ROW=4)</td>\n"
206" <th>String Comparison & Conditional Text</th>\n"
211" <td> <br><samp>@{\"text\" == \"text\"}</samp></td>\n"
213" <td> <br><samp>1</samp></td>\n"
216" <td> <br><samp>@{\"text\" != \"other\"}</samp></td>\n"
218" <td> <br><samp>1</samp></td>\n"
221" <td> <br><samp>@{if(condition, true_val, false_val)}</samp></td>\n"
223" <td> <br><samp>Conditional text display</samp></td>\n"
226" <td> <br><samp>@{if(\"${LAYER}\" == \"F.Cu\", \"TOP\", \"BOTTOM\")}</samp></td>\n"
228" <td> <br><samp>TOP</samp> (on front layer) or <samp>BOTTOM</samp></td>\n"
231" <td> <br><samp>@{if(${ROW} > 5, \"High\", \"Low\")}</samp></td>\n"
233" <td> <br><samp>Numeric comparisons work too</samp></td>\n"
239" <th>Escape Sequences</th>\n"
244" <td> <br><samp>\\${LITERAL}</samp></td>\n"
246" <td> <br><samp>${LITERAL}</samp> (not expanded)</td>\n"
249" <td> <br><samp>Price: \\$25.00</samp></td>\n"
251" <td> <br><samp>Price: $25.00</samp></td>\n"
254" <td> <br><samp>\\@{x+y}</samp></td>\n"
256" <td> <br><samp>@{x+y}</samp> (not evaluated)</td>\n"
262" <th>Nested Variables</th>\n"
267" <td> <br><samp>${U1:NET_NAME(@{${ROW}-2})}</samp></td>\n"
269" <td> <br><samp>Dynamic net lookup in tables</samp></td>\n"
272" <td> <br><samp>${U${ROW}:VALUE}</samp></td>\n"
274" <td> <br><samp>Dynamic footprint reference</samp></td>\n"
282"<i>Note that markup has precedence over variable expansion.</i>\n"
284"<p><b>Footprint Cross-References:</b> Reference fields and pads on other footprints using <samp>${refdes:field}</samp> or <samp>${refdes:function(pad)}</samp> syntax.</p>\n"
285"<p><b>Nested Variables:</b> Variables can contain other variables. Inner variables are expanded first. Maximum nesting depth: 10 levels.</p>\n"
286"<p><b>Error Messages:</b></p>\n"
288"<li><samp><UNRESOLVED: token></samp> - Variable or function cannot be resolved</li>\n"
289"<li><samp><Unknown reference: U1></samp> - Footprint not found</li>\n"