Root/modules/usb_a_rcpt_smt.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    table
5        { h, w }
6        { 2.82mm, 0.8mm }
7
8    __0: vec @(w/2, h/2)
9    __1: vec @(-w/2, -h/2)
10    pad "$name" . __0
11}
12
13frame pads {
14    table
15        { name, x }
16        { 1, -3.5mm }
17        { 2, -1mm }
18        { 3, 1mm }
19        { 4, 3.5mm }
20
21    __0: vec @(0mm, A)
22    __1: vec .(x, 0mm)
23    frame pad .
24}
25
26frame shield {
27    table
28        { name, x }
29        { 5, -B/2 }
30        { 6, B/2 }
31
32    set d = 2.3mm
33
34    set ratio = 2
35
36    __0: vec @(x, 0mm)
37    __1: vec .(d/2, d/2)
38    __2: vec __0(d/2*ratio, d/2*ratio)
39    __3: vec __0(-d/2, -d/2)
40    hole . __1
41    __4: vec __0(-d/2*ratio, -d/2*ratio)
42    rpad "$name" . __2
43}
44
45frame corner {
46    table
47        { dx }
48        { -1 }
49        { 1 }
50
51    __0: vec @(dx*13.9mm/2, 14.15mm-10.3mm)
52    __1: vec .(-dx*1mm, 0mm)
53    line __0 . w
54    __2: vec __0(0mm, -1mm)
55    line __0 . w
56}
57
58frame edge {
59    __0: vec @(0mm, -10.3mm)
60    __1: vec .(mouth/2, 0mm)
61    __2: vec __0(-mouth/2, 0mm)
62    line . __1 w
63}
64
65package "USB-A-RCPT-SMT"
66unit auto
67
68table
69    { A, B }
70    { 3.71mm, 13.14mm }
71
72set mouth = 14.5mm
73
74set w = 5mil
75
76frame edge @
77frame pads @
78frame shield @
79frame corner @
80measx pads.__1 >> pads.__1 3mm
81measx pads.__1 -> pads.__1 2.5mm
82measx pad.__1 -> pad.__0 3mm
83measy pad.__1 -> pad.__0 0.5mm
84measx shield.__0 >> shield.__0 0mm
85measy edge.__1 >> shield.__0 -2.32mm
86measy pads.__0 << shield.__0 -3mm
87measx edge.__2 >> edge.__1 1mm
88measx corner.__0 >> corner.__0 4mm
89measy edge.__2 -> corner.__0 2mm
90

Archive Download this file

Branches:
master



interactive