Root/modules/8_10-socket-ra-push-pull.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 switch {
4    table
5        { name, x, y, px, py }
6        { "SW1", 10.9mm-0.8mm-px/2, 9.15mm, 1mm, 10.7mm-y }
7        { "SW2", -1.85mm, 8.35mm-py/2, 1.85mm-0.4mm, 1mm }
8
9    __0: vec @(x, y)
10    __1: vec .(px, py)
11    pad "$name" __0 .
12}
13
14frame shield {
15    table
16        { name, x, y, px, py }
17        { "S1", 9.4mm, -py, 10.9mm-9.4mm, 1.5mm }
18        { "S2", -1.85mm, -py, 1.85mm-0.55mm, 1.5mm }
19        { "S3", 10.9mm-px, 7.5mm-py/2, 0.8mm, 1.4mm }
20        { "S4", -1.85mm, 6.85mm-py/2, 0.8mm, 1.5mm }
21
22    __0: vec @(x, y)
23    __1: vec .(px, py)
24    pad "$name" __0 .
25}
26
27frame pins {
28    set n = 8-i
29
30    loop i = 0, 7
31
32    __0: vec @(i*e-px/2, 0mm)
33    __1: vec .(px, -py)
34    pad "$n" __0 .
35}
36
37frame keepout {
38    table
39        { x, y, rx, ry }
40        { -0.4mm, 4mm, 8.1mm+0.4mm, 2mm }
41        { 2.55mm, y1-ry, 5.05mm-2.55mm, 2mm }
42
43    __0: vec @(x, y)
44    __1: vec .(rx, ry)
45    rect __0 . w
46}
47
48frame outline {
49    table
50        { x0, y0, x1 }
51        { -1.85mm+0.8mm/2, y1-11.45mm, x0+11.95mm }
52
53    set clear = 0.3mm+w/2
54
55    table
56        { x, y, dx, dy }
57        { x0, clear, 0mm, 6.85mm-1.5mm/2-2*clear }
58        { x0, y1, 0mm, 8.35mm+1mm/2+clear-y1 }
59        { x0, y1, x1-x0-1mm-clear, 0mm }
60        { x1, clear, 0mm, 7.5mm-1.4mm/2-2*clear }
61
62    table
63        { ey, sy }
64        { y1-15.6mm, 15.6mm-11.45mm-clear }
65
66    __0: vec @(x, y)
67    __1: vec .(dx, dy)
68    line __0 . w
69    __2: vec @(x0, ey)
70    __3: vec .(x1-x0, 0mm)
71    line __2 . w
72    __4: vec .(0mm, sy)
73    line __3 . w
74    __5: vec __2(0mm, sy)
75    line __2 . w
76    __6: vec @(x0, y0)
77}
78
79package "8:10-SOCKET-RA-PUSH-PULL"
80unit mm
81
82table
83    { px, py, e }
84    { 0.7mm, 1.75mm, 1.1mm }
85
86set y1 = 10.95mm-1.5mm/2
87
88set w = 5mil
89
90frame pins @
91frame shield @
92frame switch @
93frame keepout @
94frame outline @
95measx outline.__2 >> outline.__3 -1mm
96measy outline.__6 >> outline.__0 1mm
97measy outline.__2 >> outline.__0 2mm
98

Archive Download this file

Branches:
master



interactive