Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
e3b63f83
Commit
e3b63f83
authored
May 28, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c w patch, plus some attempt to move towards C++, removed some capitalized local variables
parent
1acc3813
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
318 additions
and
165 deletions
+318
-165
build_BOM.cpp
eeschema/build_BOM.cpp
+308
-159
netlist.h
eeschema/netlist.h
+10
-6
No files found.
eeschema/build_BOM.cpp
View file @
e3b63f83
This diff is collapsed.
Click to expand it.
eeschema/netlist.h
View file @
e3b63f83
...
@@ -14,8 +14,9 @@
...
@@ -14,8 +14,9 @@
#define ISBUS 1
#define ISBUS 1
#define CUSTOMPANEL_COUNTMAX 8 // Max number of netlist plugins
#define CUSTOMPANEL_COUNTMAX 8 // Max number of netlist plugins
/* Id to select netlist type */
/* Id to select netlist type */
typedef
enu
m
{
enum
TypeNetFor
m
{
NET_TYPE_UNINIT
=
0
,
NET_TYPE_UNINIT
=
0
,
NET_TYPE_PCBNEW
,
NET_TYPE_PCBNEW
,
NET_TYPE_ORCADPCB2
,
NET_TYPE_ORCADPCB2
,
...
@@ -27,7 +28,7 @@ typedef enum {
...
@@ -27,7 +28,7 @@ typedef enum {
* is the last id for user netlist format
* is the last id for user netlist format
*/
*/
NET_TYPE_CUSTOM_MAX
=
NET_TYPE_CUSTOM1
+
CUSTOMPANEL_COUNTMAX
-
1
NET_TYPE_CUSTOM_MAX
=
NET_TYPE_CUSTOM1
+
CUSTOMPANEL_COUNTMAX
-
1
}
TypeNetForm
;
};
/* Max pin number per component and footprint */
/* Max pin number per component and footprint */
...
@@ -90,23 +91,26 @@ public:
...
@@ -90,23 +91,26 @@ public:
int
GetNet
()
const
{
return
m_NetCode
;
}
int
GetNet
()
const
{
return
m_NetCode
;
}
};
};
/* Structures pour memo et liste des elements */
/* Structures pour memo et liste des elements */
typedef
struct
ListLabel
struct
ListLabel
{
{
int
m_LabelType
;
int
m_LabelType
;
void
*
m_Label
;
void
*
m_Label
;
char
m_SheetPath
[
256
];
char
m_SheetPath
[
256
];
}
ListLabel
;
};
// Used to create lists of components BOM, netlist generation)
// Used to create lists of components BOM, netlist generation)
typedef
struct
ListComponent
struct
ListComponent
{
{
SCH_COMPONENT
*
m_Comp
;
// pointer on the component in schematic
SCH_COMPONENT
*
m_Comp
;
// pointer on the component in schematic
char
m_Ref
[
32
];
// component reference
char
m_Ref
[
32
];
// component reference
int
m_Unit
;
// Unit value, for multiple parts per package
int
m_Unit
;
// Unit value, for multiple parts per package
//have to store it here since the object references will be duplicated.
//have to store it here since the object references will be duplicated.
DrawSheetPath
m_SheetList
;
//composed of UIDs
DrawSheetPath
m_SheetList
;
//composed of UIDs
}
ListComponent
;
};
/* Structure decrivant 1 composant de la schematique (for annotation ) */
/* Structure decrivant 1 composant de la schematique (for annotation ) */
struct
CmpListStruct
struct
CmpListStruct
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment