MP3-capable chair with sensor-embedded weight scale.

Dependencies:   HysteresisIn LCD SDFileSystem VS1053 mbed

defs.h

Committer:
kayekss
Date:
2013-12-20
Revision:
0:0451ba2f1062

File content as of revision 0:0451ba2f1062:

#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