00547d73a99886bc1e2cee4ab6b134aab75b7502
[hw/altusmetrum] / packages / v-bite.5c
1 /*
2  * Copyright © 2015 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 2 of the License.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write to the Free Software Foundation, Inc.,
15  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
16  */
17
18 load "footprint.5c"
19 import Footprint;
20
21 /* Bomar Inteconnect Products, Inc V-Bite footprint.
22  *
23  * This footprint covers their BNC, TNC, F and N connectors
24  */
25
26 real pin_drill = 2.2;
27 real pin_y = 5.1;
28 real pin_x = 5.9;
29 real pin_copper = 0.2;
30 real pin_clear = 0.01 * 2.0 * 25.4;
31
32 real gnd_width = 8.0;
33 real gnd_height = 3.5;
34
35 real center_width = 8.0;
36 real center_height = 2.0;
37
38 element_start("v-bite");
39
40 pad_mm_options(gnd_width / 2, -pin_y, gnd_width, gnd_height, "GND", "2", "square,nopaste");
41 pad_mm_options(gnd_width / 2, -pin_y, gnd_width, gnd_height, "GND", "2", "onsolder,square,nopaste");
42 pin_mm_clear(gnd_width - pin_x, -pin_y, pin_drill, pin_copper, pin_clear, "GND", "2");
43
44 pad_mm_options(gnd_width / 2, pin_y, gnd_width, gnd_height, "GND", "2", "square,nopaste");
45 pad_mm_options(gnd_width / 2, pin_y, gnd_width, gnd_height, "GND", "2", "onsolder,square,nopaste");
46 pin_mm_clear(gnd_width -pin_x, pin_y, pin_drill, pin_copper, pin_clear, "GND", "2");
47
48 pad_mm_options(center_width / 2, 0, center_width, center_height,"1", "1", "square,nopaste");
49
50 element_end();