FreeCalypso > hg > ueda-linux
diff pads2gpcb/struct.h @ 38:aa0539cc3d41
pads2gpcb project started, skeleton compiles
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 11 Jan 2016 04:56:51 +0000 |
parents | |
children | 1c37bec20596 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pads2gpcb/struct.h Mon Jan 11 04:56:51 2016 +0000 @@ -0,0 +1,39 @@ +struct footprint_pad { + long x1; + long y1; + long x2; + long y2; + long thickness; + long clearance; + long mask; + int is_square; +}; + +struct footprint_body { + size_t copysize; + int src_units; + int npins; + struct footprint_pad *pins; + long mark_x; + long mark_y; + long refdes_x; + long refdes_y; + long refdes_dir; + long refdes_scale; +}; + +struct part_decal { + char *name; + struct footprint_body *fpbody; + struct part_decal *next; +}; + +#define MAX_DECALS_PER_PART_TYPE 16 + +struct part_type { + char *name; + int ndecals; + struct part_decals *decals[MAX_DECALS_PER_PART_TYPE]; + char **alpha_pins; + struct part_type *next; +};