summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/msp430fr5994lp/driver/dmx1.h (renamed from include/arch/msp430fr5994lp/driver/dmx.h)11
-rw-r--r--include/arch/msp430fr5994lp/driver/dmx2.h21
-rw-r--r--include/arch/msp430fr5994lp/driver/dmx3.h21
3 files changed, 48 insertions, 5 deletions
diff --git a/include/arch/msp430fr5994lp/driver/dmx.h b/include/arch/msp430fr5994lp/driver/dmx1.h
index d3fff46..2f738b8 100644
--- a/include/arch/msp430fr5994lp/driver/dmx.h
+++ b/include/arch/msp430fr5994lp/driver/dmx1.h
@@ -4,17 +4,18 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-class DMX {
+class DMX1 {
private:
- DMX(const DMX &copy);
+ DMX1(const DMX1 &copy);
public:
- unsigned char frames[16];
+ static unsigned char const num_frames = 32;
+ unsigned char frames[num_frames];
- DMX() {}
+ DMX1() {}
void setup();
void write();
};
-extern DMX dmx;
+extern DMX1 dmx1;
diff --git a/include/arch/msp430fr5994lp/driver/dmx2.h b/include/arch/msp430fr5994lp/driver/dmx2.h
new file mode 100644
index 0000000..1c8cd67
--- /dev/null
+++ b/include/arch/msp430fr5994lp/driver/dmx2.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2022 Birte Kristina Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+class DMX2 {
+ private:
+ DMX2(const DMX2 &copy);
+
+ public:
+ static unsigned char const num_frames = 32;
+ unsigned char frames[num_frames];
+
+ DMX2() {}
+
+ void setup();
+ void write();
+};
+
+extern DMX2 dmx2;
diff --git a/include/arch/msp430fr5994lp/driver/dmx3.h b/include/arch/msp430fr5994lp/driver/dmx3.h
new file mode 100644
index 0000000..c8541bf
--- /dev/null
+++ b/include/arch/msp430fr5994lp/driver/dmx3.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2022 Birte Kristina Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+class DMX3 {
+ private:
+ DMX3(const DMX3 &copy);
+
+ public:
+ static unsigned char const num_frames = 32;
+ unsigned char frames[num_frames];
+
+ DMX3() {}
+
+ void setup();
+ void write();
+};
+
+extern DMX3 dmx3;