summaryrefslogtreecommitdiff
path: root/include/pad_shapes.h
diff options
context:
space:
mode:
authorsaurabhb172020-02-26 16:20:48 +0530
committerGitHub2020-02-26 16:20:48 +0530
commitb77f5d9d8097c38159c6f60917995d6af13bbe1c (patch)
tree1392c90227aeea231c1d86371131e04c40382918 /include/pad_shapes.h
parentdadc4d490966a24efe15b5cc533ef8695986048a (diff)
parent003d02608917e7a69d1a98438837e94ccf68352a (diff)
downloadKiCad-eSim-b77f5d9d8097c38159c6f60917995d6af13bbe1c.tar.gz
KiCad-eSim-b77f5d9d8097c38159c6f60917995d6af13bbe1c.tar.bz2
KiCad-eSim-b77f5d9d8097c38159c6f60917995d6af13bbe1c.zip
Merge pull request #4 from FOSSEE/develop
merging dev into master
Diffstat (limited to 'include/pad_shapes.h')
-rw-r--r--include/pad_shapes.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/include/pad_shapes.h b/include/pad_shapes.h
new file mode 100644
index 0000000..9dd5e5d
--- /dev/null
+++ b/include/pad_shapes.h
@@ -0,0 +1,55 @@
+/******************/
+/* pad_shapes.h */
+/******************/
+
+#ifndef PAD_SHAPES_H_
+#define PAD_SHAPES_H_
+
+/**
+ * Enum PAD_SHAPE_T
+ * is the set of pad shapes, used with D_PAD::{Set,Get}Shape()
+ */
+enum PAD_SHAPE_T
+{
+ PAD_SHAPE_CIRCLE,
+ PAD_CIRCLE = PAD_SHAPE_CIRCLE,
+ PAD_SHAPE_RECT,
+ PAD_RECT = PAD_SHAPE_RECT,
+ PAD_SHAPE_OVAL,
+ PAD_OVAL = PAD_SHAPE_OVAL,
+ PAD_SHAPE_TRAPEZOID,
+ PAD_TRAPEZOID = PAD_SHAPE_TRAPEZOID
+};
+
+/**
+ * Enum PAD_DRILL_SHAPE_T
+ * is the set of pad drill shapes, used with D_PAD::{Set,Get}DrillShape()
+ * The double name is for convenience of Python devs
+ */
+enum PAD_DRILL_SHAPE_T
+{
+ PAD_DRILL_SHAPE_CIRCLE,
+ PAD_DRILL_SHAPE_OBLONG,
+};
+
+
+/**
+ * Enum PAD_ATTR_T
+ * is the set of pad shapes, used with D_PAD::{Set,Get}Attribute()
+ * The double name is for convenience of Python devs
+ */
+enum PAD_ATTR_T
+{
+ PAD_ATTRIB_STANDARD, ///< Usual pad
+ PAD_STANDARD = PAD_ATTRIB_STANDARD,
+ PAD_ATTRIB_SMD, ///< Smd pad, appears on the solder paste layer (default)
+ PAD_SMD = PAD_ATTRIB_SMD,
+ PAD_ATTRIB_CONN, ///< Like smd, does not appear on the solder paste layer (default)
+ PAD_CONN = PAD_ATTRIB_CONN,
+ PAD_ATTRIB_HOLE_NOT_PLATED, ///< like PAD_STANDARD, but not plated
+ ///< mechanical use only, no connection allowed
+ PAD_HOLE_NOT_PLATED = PAD_ATTRIB_HOLE_NOT_PLATED
+};
+
+
+#endif // PAD_SHAPES_H_