MP3-capable chair with sensor-embedded weight scale.

Dependencies:   HysteresisIn LCD SDFileSystem VS1053 mbed

Revision:
0:0451ba2f1062
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/defs.h	Fri Dec 20 21:35:07 2013 +0000
@@ -0,0 +1,36 @@
+#ifndef ISU_PROJECT_DEFS_H_
+#define ISU_PROJECT_DEFS_H_
+
+// Input thresholds
+#define HIGH_TO_LOW        0.25
+#define LOW_TO_HIGH        0.75
+
+// Delay count until settling
+#define SETTLING_COUNT        5
+
+// Polling interval (second)
+#define POLL_INTERVAL_SEC  0.50
+
+// Block size of read/write (byte)
+#define BLOCK_SIZE         1024
+
+typedef enum {
+    CANCELING = -1,
+    STOPPING  = -2,
+    READY     =  0,
+    PLAYING1  =  1,
+    PLAYING2  =  2,
+    PLAYING3  =  3,
+    PLAYING4  =  4
+} State;
+
+typedef enum {
+    STOP_REQUEST  = -1,
+    NONE          =  0,
+    PLAY1_REQUEST =  1,
+    PLAY2_REQUEST =  2,
+    PLAY3_REQUEST =  3,
+    PLAY4_REQUEST =  4
+} Request;
+
+#endif