mbed MPL115A1 (Barometric Pressure Sensor) Library

Dependents:   MPL115A1_HelloWorld

Revision:
1:b2adf1b62898
Parent:
0:f8ee2a5e377a
--- a/MPL115A1.h	Tue Apr 17 07:44:48 2012 +0000
+++ b/MPL115A1.h	Tue Apr 17 15:35:24 2012 +0000
@@ -55,8 +55,15 @@
     //DigitalOut sdn; // shutdown pin, high=on, low=off
     
 public:
+    /** Create a barometer object connected to the SPI bus and specified chip select pin
+    *
+    * @param spi SPI master object
+    * @param ncs chip select pin
+    */
     MPL115A1(SPI& spi, PinName ncs);
+    /** start measurement, read registers, calculate and return pressure */
     float readPressure();
+    /** start measurement, read registers, calculate and return temperature */
     float readTemperature();
 
 private: