Date:2012-06-11 06:00:03 (7 years 3 months ago)
Author:Adam Wang
Commit:dc51a1b9389a5dc08f92671ffc4dd47957d278b0
Message:renamed scj368r1.fpd -> phonejack.fpd: phonejack-${size}-${N}

Files: modules/INFO (1 diff)
modules/phonejack.fpd (1 diff)
modules/scj368r1.fpd (1 diff)

Change Details

modules/INFO
185185#
186186
187187# 3.5mm audio stereo phone jack
188F: scj368r1
189# From TI:
188F: phonejack
189#
190# phonejack-${size}-${N}
191# From SCPRE:
190192#
191# - the SCJ368R1NUS0B00G data sheet, drawing
193# - phonejack-3.5-5, the SCJ368R1NUS0B00G data sheet, drawing
192194# http://downloads.qi-hardware.com/hardware/milkymist_one/datasheet/Audio/SCJ368R1NUS0B00G.pdf
193195#
194196
modules/phonejack.fpd
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
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
modules/scj368r1.fpd
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
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 __3(-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 "SCJ368R1"
43unit mm
44
45set roundx = 0.6mm
46
47set roundy = 2mm
48
49set ratio = 1.8
50
51set rty = 4.9mm
52
53set rby = 8.2mm-rty
54
55set fx = 4mm
56
57set rx = 14mm
58
59set fy = 6mm
60
61set w = 5mil
62
63set diff = 0.85mm
64
65frame pads @
66frame outline @
67measx pad.__1 -> pad.__0 -roundy/2
68measx pad.__3 -> pad.__2 0.5mm
69measy pad.__1 -> pad.__0 roundx
70measy pad.__2 -> pad.__3 ratio*roundx+1mm
71measy outline.__1 >> outline.__0 0.5mm
72measx outline.__1 >> outline.__0 rby+rty+3mm
73meas outline.__6 >> outline.__5 0.5mm
74meas outline.__3 >> outline.__5 -0.5mm
75measy outline.__2 >> outline.__0 fx+0.3mm
76measy outline.__2 >> pads.__0 fx+1.2mm+1mm
77measy outline.__7 >> outline.__2 1mm
78measx outline.__0 << pads.__0 rty
79measx pads.__0 >> outline.__0 rty+1.8mm
80measx outline.__7 >> outline.__0 rty+2.5mm
81measx outline.__8 >> outline.__0 rty+1mm
82measx outline.__0 >> outline.__9 -2.2mm

Archive Download the corresponding diff file

Branches:
master



interactive