SCP1000-D01 MEMS pressure sensor library

Revision:
3:29c98bdee20b
Parent:
2:076ba33b1895
Child:
4:d509ab38e2b5
--- a/scp1000.h	Mon Sep 27 09:13:32 2010 +0000
+++ b/scp1000.h	Mon Sep 27 11:43:27 2010 +0000
@@ -36,14 +36,7 @@
 * This means that the sensor can be read at a maximum rate of 1.8Hz.
 */
 class SCP1000{
-public:
-
-    typedef enum SCPModes{HIGHRES,
-                    HIGHSPEED,
-                    ULTRALOWPOWER,
-                    LOWPOWER,
-                    POWERDOWN}SCPMode;
-                    
+public:               
     /**
     *Constructor 
     * 
@@ -53,12 +46,9 @@
     */
     SCP1000(PinName mosi, PinName miso, PinName sck, PinName CSB);
 
-    
-    void SetMode(SCPMode mode);
-    
     /**
     *Read the current Pressure.
-    *This blocks until the sensor has compelted a reading
+    *This blocks until the sensor has completed a reading
     * 
     * @returns The pressure in pascals
     */
@@ -74,7 +64,6 @@
     
 
 private:
-    SCPMode _mode;
     /**
     * Method which blocks until the sensor is ready to be read.
     * Returns 1 when successful.
@@ -83,6 +72,8 @@
     //Interfaces
     SPI _spi;
     DigitalOut _CSB;
+    
+    //Pins that woudl be required to use SCP1000 in different modes
    // DigitalIn _DRDY;    //Interrupt data ready - also need to be able to attach a function to this class
    // DigitalOut _TRIG;   //Trigger        
    // DigitalOut _PD;     //Power Down