MP3-capable chair with sensor-embedded weight scale.

Dependencies:   HysteresisIn LCD SDFileSystem VS1053 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers defs.h Source File

defs.h

00001 #ifndef ISU_PROJECT_DEFS_H_
00002 #define ISU_PROJECT_DEFS_H_
00003 
00004 // Input thresholds
00005 #define HIGH_TO_LOW        0.25
00006 #define LOW_TO_HIGH        0.75
00007 
00008 // Delay count until settling
00009 #define SETTLING_COUNT        5
00010 
00011 // Polling interval (second)
00012 #define POLL_INTERVAL_SEC  0.50
00013 
00014 // Block size of read/write (byte)
00015 #define BLOCK_SIZE         1024
00016 
00017 typedef enum {
00018     CANCELING = -1,
00019     STOPPING  = -2,
00020     READY     =  0,
00021     PLAYING1  =  1,
00022     PLAYING2  =  2,
00023     PLAYING3  =  3,
00024     PLAYING4  =  4
00025 } State;
00026 
00027 typedef enum {
00028     STOP_REQUEST  = -1,
00029     NONE          =  0,
00030     PLAY1_REQUEST =  1,
00031     PLAY2_REQUEST =  2,
00032     PLAY3_REQUEST =  3,
00033     PLAY4_REQUEST =  4
00034 } Request;
00035 
00036 #endif