FreeCalypso > hg > ueda-linux
annotate pads2gpcb/struct.h @ 51:f2bcf69fce63
pads2gpcb: -s option to enable footprint silk processing
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 30 Jan 2016 21:32:18 +0000 |
parents | c9acfeed99e6 |
children | 455a0051f9d2 |
rev | line source |
---|---|
40
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
1 struct pad_shape_info { |
43
4a50888d09ce
pads2gpcb: handle error cases when the default pad is defined, but failed
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
40
diff
changeset
|
2 int defined; |
40
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
3 int valid; |
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
4 int rounded; |
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
5 int elongated; |
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
6 long short_dim; |
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
7 long long_dim; |
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
8 int angle; |
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
9 }; |
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
10 |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 struct footprint_pad { |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 long x1; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 long y1; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 long x2; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 long y2; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 long thickness; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 long clearance; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 long mask; |
40
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
19 struct pad_shape_info shape; |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 }; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 |
50
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
22 struct element_line { |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
23 long x1; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
24 long y1; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
25 long x2; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
26 long y2; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
27 long thickness; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
28 }; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
29 |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
30 struct element_arc { |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
31 long centre_x; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
32 long centre_y; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
33 long width; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
34 long height; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
35 int start_angle; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
36 int delta_angle; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
37 long thickness; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
38 }; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
39 |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
40 struct footprint_body { |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
41 int src_units; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
42 int npins; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 struct footprint_pad *pins; |
40
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
44 struct pad_shape_info default_pad; |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
45 long mark_x; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
46 long mark_y; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
47 long refdes_x; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 long refdes_y; |
46
c81aba92cb5e
pads2gpcb: generic element writing implemented
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
43
diff
changeset
|
49 int refdes_dir; |
c81aba92cb5e
pads2gpcb: generic element writing implemented
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
43
diff
changeset
|
50 int refdes_scale; |
50
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
51 struct element_line *silk_lines; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
52 struct element_arc *silk_arcs; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
53 int num_silk_lines; |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
54 int num_silk_arcs; |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
55 }; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
56 |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
57 struct part_decal { |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
58 char *name; |
40
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
59 struct footprint_body *body; |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
60 struct part_decal *next; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
61 }; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
62 |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
63 #define MAX_DECALS_PER_PART_TYPE 16 |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
64 |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
65 struct part_type { |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
66 char *name; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
67 int ndecals; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
68 struct part_decals *decals[MAX_DECALS_PER_PART_TYPE]; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
69 char **alpha_pins; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
70 struct part_type *next; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
71 }; |