FreeCalypso > hg > ueda-linux
annotate pads2gpcb/struct.h @ 142:7bdce91da1a5
unet-excise utility added
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 19 Sep 2020 22:50:24 +0000 |
parents | a7f0e9bb3fb7 |
children |
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 |
69
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
11 struct coord_pair { |
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
12 long x; |
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
13 long y; |
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
14 }; |
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
15 |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 struct footprint_pad { |
69
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
17 struct coord_pair end1; |
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
18 struct coord_pair end2; |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 long thickness; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 long clearance; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 long mask; |
40
1c37bec20596
pads2gpcb: slowly working on the decal processing logic
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
38
diff
changeset
|
22 struct pad_shape_info shape; |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 }; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 |
50
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
25 struct element_line { |
69
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
26 struct coord_pair end1; |
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
27 struct coord_pair end2; |
50
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
28 long thickness; |
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 |
c9acfeed99e6
pads2gpcb: data structures for footprint silk support
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
46
diff
changeset
|
31 struct element_arc { |
69
a7f0e9bb3fb7
pads2gpcb: struct coord_pair introduced
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
65
diff
changeset
|
32 struct coord_pair centre; |
50
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; |
63
455a0051f9d2
pads2gpcb: PARTTYPE parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
50
diff
changeset
|
68 struct part_decal *decals[MAX_DECALS_PER_PART_TYPE]; |
455a0051f9d2
pads2gpcb: PARTTYPE parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
50
diff
changeset
|
69 int num_alpha_pins; |
38
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
70 char **alpha_pins; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
71 struct part_type *next; |
aa0539cc3d41
pads2gpcb project started, skeleton compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
72 }; |
65
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
73 |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
74 struct part_instance { |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
75 char *name; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
76 char *newname; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
77 struct part_type *type; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
78 struct part_decal *decal; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
79 long mark_x; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
80 long mark_y; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
81 int ori; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
82 int onbottom; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
83 struct footprint_body *body; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
84 struct part_instance *next; |
2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
63
diff
changeset
|
85 }; |