2009-09-13 12:58:30 +03:00
|
|
|
/*
|
|
|
|
* layer.h - PCB layers on a pad
|
|
|
|
*
|
2011-01-18 02:30:57 +02:00
|
|
|
* Written 2009-2011 by Werner Almesberger
|
|
|
|
* Copyright 2009-2011 by Werner Almesberger
|
2009-09-13 12:58:30 +03:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LAYER_H
|
|
|
|
#define LAYER_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
Added relaxation of pad overlap checking. Not GUI-settable yet.
- README, fpd.l, fpd.y: added directives "allow touch" and "allow overlap" to
make overlap checking more permissive
- dump.c (dump_allow, dump): generate "allow" directive
- obj.h, obj.c (allow_overlap): added global variable for strictness of overlap
checking
- overlap.h, overlap.c (overlap, ...), layer.h, layer.c (refine_layers):
strictness of overlap checking is passed as an argument
- hole.c (check_through_hole), layer.h, layer.c (refine_copper), obj.c
(instantiate): updated callers of "overlap" to provide "allow" argument
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5974 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-08-09 07:16:37 +03:00
|
|
|
#include "overlap.h"
|
|
|
|
|
2009-09-13 12:58:30 +03:00
|
|
|
|
|
|
|
typedef uint32_t layer_type;
|
|
|
|
|
|
|
|
|
|
|
|
enum kicad_layer {
|
|
|
|
layer_bottom, /* "copper" */
|
|
|
|
layer_l15,
|
|
|
|
layer_l14,
|
|
|
|
layer_l13,
|
|
|
|
layer_l12,
|
|
|
|
layer_l11,
|
|
|
|
layer_l10,
|
|
|
|
layer_l9,
|
|
|
|
layer_l8,
|
|
|
|
layer_l7,
|
|
|
|
layer_l6,
|
|
|
|
layer_l5,
|
|
|
|
layer_l4,
|
|
|
|
layer_l3,
|
|
|
|
layer_l2,
|
|
|
|
layer_top, /* "component" */
|
|
|
|
layer_glue_bottom, /* adhesive, copper side */
|
|
|
|
layer_glue_top, /* adhesive, component side */
|
|
|
|
layer_paste_bottom, /* solder paste */
|
|
|
|
layer_paste_top,
|
|
|
|
layer_silk_bottom, /* silk screen */
|
|
|
|
layer_silk_top,
|
|
|
|
layer_mask_bottom, /* solder mask */
|
|
|
|
layer_mask_top,
|
|
|
|
layer_draw, /* general drawing */
|
|
|
|
layer_comment,
|
|
|
|
layer_eco1,
|
|
|
|
layer_eco2,
|
|
|
|
layer_edge, /* edge */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
enum pad_type {
|
|
|
|
pt_normal, /* copper and solder mask */
|
|
|
|
pt_bare, /* only copper (and finish) */
|
2011-01-18 02:30:57 +02:00
|
|
|
pt_trace, /* only copper, without solder mask opening */
|
2009-09-13 12:58:30 +03:00
|
|
|
pt_paste, /* only solder paste */
|
|
|
|
pt_mask, /* only solder mask */
|
|
|
|
pt_n
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* pad_type_to_layers returns the initial set of layers. This set can then be
|
|
|
|
* modified by overlaying other pads. For display purposes, we translate back
|
|
|
|
* to the effective pad type with layers_to_pad_type.
|
|
|
|
*
|
|
|
|
* What this basically means is that pt_normal becomes pt_bare if its solder
|
|
|
|
* paste mask has been removed.
|
|
|
|
*/
|
|
|
|
|
|
|
|
layer_type pad_type_to_layers(enum pad_type type);
|
|
|
|
enum pad_type layers_to_pad_type(layer_type layers);
|
|
|
|
|
2010-04-25 18:27:27 +03:00
|
|
|
layer_type mech_hole_layers(void);
|
|
|
|
|
Added relaxation of pad overlap checking. Not GUI-settable yet.
- README, fpd.l, fpd.y: added directives "allow touch" and "allow overlap" to
make overlap checking more permissive
- dump.c (dump_allow, dump): generate "allow" directive
- obj.h, obj.c (allow_overlap): added global variable for strictness of overlap
checking
- overlap.h, overlap.c (overlap, ...), layer.h, layer.c (refine_layers):
strictness of overlap checking is passed as an argument
- hole.c (check_through_hole), layer.h, layer.c (refine_copper), obj.c
(instantiate): updated callers of "overlap" to provide "allow" argument
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5974 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-08-09 07:16:37 +03:00
|
|
|
int refine_layers(enum allow_overlap allow);
|
2009-09-13 14:11:03 +03:00
|
|
|
|
2009-09-13 12:58:30 +03:00
|
|
|
#endif /* !LAYER_H */
|