summaryrefslogtreecommitdiff
path: root/include/driver/mmsubstate.h
diff options
context:
space:
mode:
authorLennart <lekaiser@uos.de>2020-07-25 20:50:23 +0200
committerLennart <lekaiser@uos.de>2020-07-25 20:50:23 +0200
commit714e5788be7b89f937fe8dbf270b8035c4f7d436 (patch)
treee05ae1a2b421840847ae28d053a26d8538fe89c1 /include/driver/mmsubstate.h
parent5c4045862bf55be0b8dc755ac3d5c5bd24b5fedf (diff)
parentd0ea0a521a582549dfd9a98b47e7c12d8bcd0de6 (diff)
Merge branch 'master' into state-duration-timers
Diffstat (limited to 'include/driver/mmsubstate.h')
-rw-r--r--include/driver/mmsubstate.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/driver/mmsubstate.h b/include/driver/mmsubstate.h
new file mode 100644
index 0000000..3338dbc
--- /dev/null
+++ b/include/driver/mmsubstate.h
@@ -0,0 +1,24 @@
+#ifndef MMSUBSTATE_H
+#define MMSUBSTATE_H
+
+class MicroMoodySubstate {
+ private:
+ MicroMoodySubstate(const MicroMoodySubstate &copy);
+
+ unsigned char const address;
+ unsigned char txbuf[3];
+
+ public:
+ MicroMoodySubstate(unsigned char const addr) : address(addr) {}
+
+ void sleep();
+ void noSubstates(unsigned char power1, unsigned char power2);
+ void twoSubstates(unsigned char switchDutarion, unsigned char power);
+ void fourSubstates(unsigned char switchDutarion, unsigned char power);
+ void eightSubstates(unsigned char switchDutarion, unsigned char power);
+ void setSubstates(unsigned char substateCount, unsigned char switchDuration, unsigned char power);
+};
+
+extern MicroMoodySubstate moody;
+
+#endif