Root/modules/phonejack.fpd

Source at commit 7f3f9267cb007e13eca0af273f9eedad0c6c5659 created 1 year 6 months ago.
By Werner Almesberger, components/stm32.lib: add STM32L052x6/8 in QFN32 (KxU) package
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    __0: vec @(roundx/2, roundy/2)
5    __1: vec @(-roundx/2, -roundy/2)
6    hole . __0
7    __2: vec @(ratio*roundx/2, -ratio*roundy/2)
8    __3: vec @(-ratio*roundx/2, ratio*roundy/2)
9    rpad "$n" . __2 bare
10}
11
12frame pads {
13    table
14        { n, px, py }
15        { 1, -1.2mm, 0.85mm }
16        { 2, -9.3mm, -1.15mm }
17        { 3, -7.4mm, 0.85mm }
18        { 4, -12.9mm, 0.85mm }
19        { 5, -3.65mm, -1.15mm }
20
21    __0: vec @(px, py)
22    frame pad .
23}
24
25frame outline {
26    __0: vec @(0mm, rty)
27    __1: vec @(-rx, -rby)
28    rect . __0 w
29    __2: vec @(fx, 0mm)
30    __3: vec .(0mm, -fy/2)
31    __4: vec .(-fx, 0mm)
32    line __3 . w
33    __5: vec __2(0mm, fy/2)
34    line . __3 w
35    __6: vec .(-fx, 0mm)
36    line . __5 w
37    __7: vec @(-3.65mm, -1.15mm)
38    __8: vec @(-7.4mm, 0.85mm)
39    __9: vec @(-9.3mm, -1.15mm)
40}
41
42package "phonejack-${size}-${N}"
43unit mm
44
45table
46    { size, N, roundx, roundy, ratio, rty, rby, fx, fy, rx, diff }
47    { 3.5, 5, 0.6mm, 2mm, 1.8, 4.9mm, 8.2mm-rty, 4mm, 6mm, 14mm, 0.85mm }
48
49set w = 5mil
50
51frame pads @
52frame outline @
53measx pad.__1 -> pad.__0 -roundy/2
54measx pad.__3 -> pad.__2 0.5mm
55measy pad.__1 -> pad.__0 roundx
56measy pad.__2 -> pad.__3 ratio*roundx+1mm
57measy outline.__1 >> outline.__0 0.5mm
58measx outline.__1 >> outline.__0 rby+rty+3mm
59meas outline.__6 >> outline.__5 0.5mm
60meas outline.__3 >> outline.__5 -0.5mm
61measy outline.__2 >> outline.__0 fx+0.3mm
62measy outline.__2 >> pads.__0 fx+1.2mm+1mm
63measy outline.__7 >> outline.__2 1mm
64measx outline.__0 << pads.__0 rty
65measx pads.__0 >> outline.__0 rty+1.8mm
66measx outline.__7 >> outline.__0 rty+2.5mm
67measx outline.__8 >> outline.__0 rty+1mm
68measx outline.__0 >> outline.__9 -2.2mm
69

Archive Download this file

Branches:
master



interactive