1# -*- m4 -*- 2# 3# COPYRIGHT 4# 5# PCB, interactive printed circuit board design 6# Copyright (C) 2003, 2004 Dan McMahill 7# 8# This program is free software; you can redistribute it and/or modify 9# it under the terms of the GNU General Public License as published by 10# the Free Software Foundation; either version 2 of the License, or 11# (at your option) any later version. 12# 13# This program is distributed in the hope that it will be useful, 14# but WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16# GNU General Public License for more details. 17# 18# You should have received a copy of the GNU General Public License along 19# with this program; if not, write to the Free Software Foundation, Inc., 20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 21# 22# 23# Amphenol Connectors 24 25 26# ARFX1229 SMA Connector 27# 5.08 mm (200 mil) outer pin spacing 28# 1.70 mm (67 mil, #51 drill) hole sizes 29 30define(`PKG_AMPHENOL_ARFX1229', 31 `define(`PAD_SIZE', `100') 32 define(`HOLE_SIZE', `67') 33 define(`CPAD_SIZE', `100') 34 define(`CHOLE_SIZE', `67') 35 define(`PAD_SPACE', `200') 36 define(`CENTER', `eval(PAD_SPACE/2)') 37 define(`SILK', `70') 38 define(`XMIN', `eval(-1*SILK)') 39 define(`XMAX', `eval(PAD_SPACE+SILK)') 40 define(`YMIN', `eval(-1*SILK)') 41 define(`YMAX', `eval(PAD_SPACE+SILK)') 42Element(0x00 "$1" "`$2'" "$3" eval(XMIN+20) eval(YMAX+20) 0 100 0x00) 43( 44 45 Pin(CENTER CENTER CPAD_SIZE CHOLE_SIZE "1" 0x01) 46 Pin(0 0 PAD_SIZE HOLE_SIZE "2" 0x01) 47 Pin(0 PAD_SPACE PAD_SIZE HOLE_SIZE "3" 0x01) 48 Pin(PAD_SPACE 0 PAD_SIZE HOLE_SIZE "4" 0x01) 49 Pin(PAD_SPACE PAD_SPACE PAD_SIZE HOLE_SIZE "5" 0x01) 50 51 # silk screen 52 # ends 53 ElementLine(XMIN YMIN XMIN YMAX 10) 54 ElementLine(XMAX YMAX XMAX YMIN 10) 55 ElementLine(XMIN YMIN XMAX YMIN 10) 56 ElementLine(XMAX YMAX XMIN YMAX 10) 57 Mark(CENTER CENTER) 58)') 59 60# XXX once we get some sort of annotation layer in PCB, the right 61# angle connectors should have an annotation showing where the connector 62# really goes to. Same for a keep out layer. 63define(`PKG_AMPHENOL_ARFX1230',`PKG_AMPHENOL_ARFX1229(`$1', `$2', `$3')') 64define(`PKG_AMPHENOL_ARFX1231',`PKG_AMPHENOL_ARFX1229(`$1', `$2', `$3')') 65define(`PKG_AMPHENOL_ARFX1232',`PKG_AMPHENOL_ARFX1229(`$1', `$2', `$3')') 66 67