SCP1000 Library

Dependents:   SCP1000Example 0sample_SCP1000_USB SCP1000_Fastsensing

Revision:
2:4c2784b363ad
Parent:
0:23fab9b42ad4
Child:
3:8edd2b18c755
--- a/SCP1000.h	Wed Feb 02 09:09:52 2011 +0000
+++ b/SCP1000.h	Fri Feb 04 11:56:49 2011 +0000
@@ -6,18 +6,19 @@
 /**
  * SCP1000 Pressure/Temperature sensor
  */
- 
-enum OperationMode {
-    CANCEL = 0x00,
-    HIGH_SPEED_MODE = 0x09,
-    HIGH_RESOLUTION_MODE = 0x0A,
-    ULTRA_LOW_POWER_MODE = 0x0B,
-    LOW_POWER = 0x0C,
-    SELF_TEST = 0x0F,
-};
+
 
 class SCP1000 {
 public:
+    enum OperationMode {
+        CANCEL = 0x00,
+        HIGH_SPEED_MODE = 0x09,
+        HIGH_RESOLUTION_MODE = 0x0A,
+        ULTRA_LOW_POWER_MODE = 0x0B,
+        LOW_POWER = 0x0C,
+        SELF_TEST = 0x0F,
+    };
+    
     /**
     * Constructor
     *
@@ -64,9 +65,9 @@
 
     /**
      * Read pressure
-     *     
+     *
      * @param waitForDataReady if true, waits until data becomes ready to read
-     *     
+     *
      * @returns Pressure in hectopascal
      */
     float readPressure(bool waitForDataReady = false);