/* MACHINE-GENERATED ! */

frame outline {
	__0: vec @(-D/2, -E/2)
	__1: vec @(D/2, E/2)
	rect __0 . 0.05mm
}

frame pads {
	set e = 0.8mm

	set e1 = 0.9mm

	set L = 0.3mm

	set b = 0.2mm

	set row_pitch = E/2-L/2

	table
	    { pad, x, y }
	    { 1, -e-e1, row_pitch }
	    { 2, -e, row_pitch }
	    { 3, 0mm, row_pitch }
	    { 4, e, row_pitch }
	    { 5, e+e1, row_pitch }
	    { 6, e/2+e1, -row_pitch }
	    { 7, e/2, -row_pitch }
	    { 8, -e/2, -row_pitch }
	    { 9, -e/2-e1, -row_pitch }

	__0: vec @(x, y)
	__1: vec .(-b/2, -L/2)
	__2: vec __0(b/2, L/2)
	pad "$pad" __1 .
}

package "uDFN-9"
unit mm

set E = 1mm

set D = 3.8mm

frame pads @
frame outline @
measx pads.__1 -> pads.__2 0.5mm
measx pads.__0 -> pads.__0 0.3mm
measy pads.__1 -> pads.__2 1mm
measy outline.__1 >> outline.__0 1mm
measx outline.__0 >> outline.__1 -1mm
meas pads.__0 -> pads.__0 -1mm
